diff options
| author | 2022-07-27 04:54:48 +0000 | |
|---|---|---|
| committer | 2022-07-27 04:57:55 +0000 | |
| commit | 0413cc02e33c53aaa74b097ed58b7e5cbded4293 (patch) | |
| tree | 015e71c3b47bee50ea729c92444c3738f4cc9db7 | |
| parent | f9a9b903a95b7630d57375667a1f3e6ccfa21f0a (diff) | |
Reland "Allow use of PASS_THROUGH colorspace with RGBA8"
The other parts of the fix have landed:
- aosp/2155840
- aosp/2162752
Bug: 238720540
Test: run the affected game
Change-Id: Id2db27a918c83a47bdd62f2ba31c200559d88d43
| -rw-r--r-- | vulkan/libvulkan/swapchain.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp index f86600569b..eb669c0b8c 100644 --- a/vulkan/libvulkan/swapchain.cpp +++ b/vulkan/libvulkan/swapchain.cpp @@ -763,7 +763,11 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev, // We must support R8G8B8A8 std::vector<VkSurfaceFormatKHR> all_formats = { {VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR}, - {VK_FORMAT_R8G8B8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR}}; + {VK_FORMAT_R8G8B8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR}, + // Also allow to use PASS_THROUGH + HAL_DATASPACE_ARBITRARY + {VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_PASS_THROUGH_EXT}, + {VK_FORMAT_R8G8B8A8_SRGB, VK_COLOR_SPACE_PASS_THROUGH_EXT}, + }; if (colorspace_ext) { all_formats.emplace_back(VkSurfaceFormatKHR{ |