Commit f3dce112 by Alexis Hetu Committed by Alexis Hétu

Fix for rendering being too dark

Using a non SRGB format with VK_COLOR_SPACE_SRGB_NONLINEAR_KHR yields a resulting image in the wrong color space. Making sure a surface format where format and color space are both SRGB fixes the issue. Bug b/137088174 Change-Id: I934e6b60afe5f65d22832162e48aecef773627e8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34048Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 28ae0a4b
......@@ -24,6 +24,7 @@ namespace
static const VkSurfaceFormatKHR surfaceFormats[] =
{
{VK_FORMAT_B8G8R8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR},
{VK_FORMAT_B8G8R8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR},
};
static const VkPresentModeKHR presentModes[] =
......
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