Add EGL_ANGLE_wait_until_work_scheduled extension

We're changing eglReleaseTexImage so it calls
flushCommandBuffer(mtl::NoWait) instead of
flushCommandBuffer(mtl::WaitUntilScheduled)
and then adding an extension to allow us to
WaitUntilScheduled.

This is because Chrome calls eglReleaseTexImage for
every canvas and having it WaitUntilScheduled per call
is very slow. So instead we'll call eglWaitUntilWorkScheduledANGLE
once which will effectively wait just once.

Bug: angleproject:7890
Change-Id: I87bc9f9a1a7f4a0f99d93736cc3083799e76afeb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4109311
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
This commit is contained in:
Gregg Tavares
2022-12-14 14:13:39 -08:00
committed by Angle LUCI CQ
parent 275ee1abe5
commit be9e8e7b03
51 changed files with 340 additions and 48 deletions

View File

@@ -4,7 +4,7 @@
"scripts/gl_angle_ext.xml":
"d82fab64415e4d276ce0e67d82cb9445",
"scripts/registry_xml.py":
"4837b4beda7a0e2698e2be7e8e74fd88",
"7ea33c284f984c6d8f9d5d279e6eebd7",
"src/common/gl_enum_utils_autogen.cpp":
"b6a290a462be967cc520e5575c6f209d",
"src/common/gl_enum_utils_autogen.h":