Commit 515b0775 by Jonah Ryan-Davis Committed by Commit Bot

Metal: Enable EGL_KHR_surfaceless_context.

Surfaceless contexts are emulated in the frontend so this extension can be enabled for the metal backend. It's needed to run Chrome with ANGLE's metal backend. Bug: angleproject:4847 Change-Id: I3a2f74fd5f2ac75a056c528c8b30ffbd41d73e46 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2332880Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
parent 846cd169
......@@ -256,6 +256,7 @@ void DisplayMtl::generateExtensions(egl::DisplayExtensions *outExtensions) const
{
outExtensions->flexibleSurfaceCompatibility = true;
outExtensions->iosurfaceClientBuffer = true;
outExtensions->surfacelessContext = true;
}
void DisplayMtl::generateCaps(egl::Caps *outCaps) const {}
......
......@@ -271,5 +271,7 @@ TEST_P(EGLSurfacelessContextTest, Switcheroo)
ANGLE_INSTANTIATE_TEST(EGLSurfacelessContextTest,
WithNoFixture(ES2_D3D9()),
WithNoFixture(ES2_D3D11()),
WithNoFixture(ES2_METAL()),
WithNoFixture(ES2_OPENGL()),
WithNoFixture(ES2_OPENGLES()),
WithNoFixture(ES2_VULKAN()));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment