-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync MTLDevices between ANGLE/Metal and Dawn.
Depends on enga's: https://dawn-review.googlesource.com/c/dawn/+/106760 Use new primitives in Dawn, and the EGL_ANGLE_metal_shared_event_sync extension in ANGLE's Metal backend, to use MTLSharedEvents for synchronization between these two unrelated MTLDevices. Update EGL bindings to version 1.5 to pick up needed eglCreateSync; eglCreateSyncKHR's signature does not work for EGL_ANGLE_metal_shared_event_sync. (Needs EGLAttrib, not EGLint.) Also expose eglCopyMetalSharedEventANGLE. (Could rewrite this code to manually instantiate and wrap a singleton MTLSharedEvent.) Fixes the flickering in the test case attached to the bug. Need to figure out how to catch this bug in an automated test case. Bug: b/252731382 Change-Id: Ib5d4deeba867139af12c79ecfe364da6d7338564 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3995503 Reviewed-by: ccameron chromium <ccameron@chromium.org> Commit-Queue: Kenneth Russell <kbr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1068955}
- Loading branch information
1 parent
bfe23fc
commit 57b2ff7
Showing
18 changed files
with
918 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.