ANGLE_metal_shared_event_sync: Control signaling external events

It was assumed that the external MTLSharedEvent passed to eglCreateSync
should be signaled by the GL. This change adds
EGL_SYNC_METAL_SHARED_EVENT_SIGNALED_ANGLE, which when passed as the
value for EGL_SYNC_CONDITION during eglCreateSync, changes the behavior
to not insert a fence command into the command stream.

Test: angle_end2end_tests --gtest_filter=EGLSyncTestMetalSharedEvent.AngleMetalSharedEventSync_WaitSync_ExternallySignaled
Bug: angleproject:8064
Change-Id: Ia1b8615b976f293d411b7d2be506b0ac87d64dee
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4307152
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
This commit is contained in:
Dan Glastonbury
2023-03-06 17:59:43 +11:00
committed by Angle LUCI CQ
parent b78a0c4982
commit aa5b97de88
13 changed files with 192 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
{
"scripts/egl_angle_ext.xml":
"9fbe802e21374f4c0bff6f7a68bb928c",
"bee532d3939bddbb2bb823645e2a5ab9",
"scripts/gen_proc_table.py":
"073351265b085943f816498cecaa281c",
"scripts/gl_angle_ext.xml":