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/+/34048
Tested-by: Alexis Hétu <sugoi@google.com>
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
diff --git a/src/WSI/VkSurfaceKHR.cpp b/src/WSI/VkSurfaceKHR.cpp
index 92fd426..f704ceb 100644
--- a/src/WSI/VkSurfaceKHR.cpp
+++ b/src/WSI/VkSurfaceKHR.cpp
@@ -24,6 +24,7 @@
 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[] =