diff options
| author | 2022-08-22 20:37:35 +0000 | |
|---|---|---|
| committer | 2022-08-22 20:37:35 +0000 | |
| commit | 2b03d96b0263c1e86a0e0394cf25b68d5cc77fd9 (patch) | |
| tree | 1e1da0eb9db1ce58a6e08615400bb21aae8da66c | |
| parent | 50bae586e4bd16851277ed5f9fda0f6fc74385c9 (diff) | |
| parent | 0413cc02e33c53aaa74b097ed58b7e5cbded4293 (diff) | |
Merge "Reland "Allow use of PASS_THROUGH colorspace with RGBA8""
| -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 0a337601a6..1815c46f8a 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{ |