Bug 277134
| Summary: | [GTK][WPE] Use glWaitSync instead of glClientWaitSync in GLFence when possible | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Miguel Gomez <magomez> |
| Component: | WebKitGTK | Assignee: | Miguel Gomez <magomez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Miguel Gomez
There are 2 funcions to wait for a gl fence. One is glClientWaitSync, which blocks until the fence is signalled, and the other is glWaitSync, which doesn't block, but stops the gl command execution of that context until the fence is signalled. The second method renders a better performance in the cases when it can be used.
GLFence only supports glClientWaitSync at the moment. We need to add glWaitSync as well and make the calls to wait to use one method or the other as needed.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Miguel Gomez
Pull request: https://github.com/WebKit/WebKit/pull/31279
Miguel Gomez
Pull request: https://github.com/WebKit/WebKit/pull/31284
EWS
Committed 281396@main (0df52bc9b273): <https://commits.webkit.org/281396@main>
Reviewed commits have been landed. Closing PR #31284 and removing active labels.