mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-01 05:48:11 +03:00
Vulkan: EGL's DISPLAY_P3_PASSTHROUGH -> VK's DISPLAY_P3_NONLINEAR
From https://registry.khronos.org/EGL/extensions/EXT/EGL_EXT_gl_colorspace_display_p3_passthrough.txt If its value is EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT, then a non-linear, sRGB encoded Display-P3 color space is assumed Bug: b/289125521 Test: cvd start Test: cts -m CtsViewTestCases -t android.view.cts.TextureViewTest#testGetBitmap_8888_PassthroughP3 Change-Id: I07c77c86bbc0d82923ad7435cd2a5558770cd2e3 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4673910 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Chris Forbes <chrisforbes@google.com> Commit-Queue: Jason Macnak <natsu@google.com>
This commit is contained in:
committed by
Angle LUCI CQ
parent
a4c283be74
commit
8138ae9b1f
@@ -189,11 +189,11 @@ VkColorSpaceKHR MapEglColorSpaceToVkColorSpace(RendererVk *renderer, EGLenum EGL
|
||||
return VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
||||
case EGL_GL_COLORSPACE_LINEAR:
|
||||
case EGL_GL_COLORSPACE_SRGB_KHR:
|
||||
case EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT:
|
||||
return VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
||||
case EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT:
|
||||
return VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT;
|
||||
case EGL_GL_COLORSPACE_DISPLAY_P3_EXT:
|
||||
case EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT:
|
||||
return VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT;
|
||||
case EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT:
|
||||
return VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT;
|
||||
|
||||
Reference in New Issue
Block a user