Commit 065f8dc3 by Tim Van Patten Committed by Commit Bot

Vulkan: Set appropriate GL conformant bit for returned configs

The Khronos conformance tests only test configs that have the conformant bit set. ANGLE is currently targetting OpenGL ES 2.0 conformance, so this change is setting the EGL_OPENGL_ES2_BIT bit to indicate this. ES 2.0 conformance reporting is being restricted by ANGLE_VULKAN_CONFORMANT_CONFIGS_ONLY for official builds, but ES 3.0 conformance will be reported for builds without ANGLE_VULKAN_CONFORMANT_CONFIGS_ONLY enabled. Bug: angleproject:3374 Test: CQ Dry Run Change-Id: Ie31f63c3ea3b7bddfceec80ebc28f079ffd363df Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1564717Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Tim Van Patten <timvp@google.com>
parent 8f0210f7
...@@ -265,7 +265,7 @@ egl::Config GenerateDefaultConfig(const RendererVk *renderer, ...@@ -265,7 +265,7 @@ egl::Config GenerateDefaultConfig(const RendererVk *renderer,
config.bindToTextureRGBA = colorFormat.format == GL_RGBA || colorFormat.format == GL_BGRA_EXT; config.bindToTextureRGBA = colorFormat.format == GL_RGBA || colorFormat.format == GL_BGRA_EXT;
config.colorBufferType = EGL_RGB_BUFFER; config.colorBufferType = EGL_RGB_BUFFER;
config.configCaveat = EGL_NONE; config.configCaveat = EGL_NONE;
config.conformant = 0; config.conformant = es2Support | es3Support;
config.depthSize = depthStencilFormat.depthBits; config.depthSize = depthStencilFormat.depthBits;
config.stencilSize = depthStencilFormat.stencilBits; config.stencilSize = depthStencilFormat.stencilBits;
config.level = 0; config.level = 0;
......
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