diff options
author | 2022-07-19 01:29:07 +0000 | |
---|---|---|
committer | 2022-07-19 01:29:07 +0000 | |
commit | 6c02fe366df32ff36d93fb72f0dfbc8b34d6e3ea (patch) | |
tree | 01b3e98c5e938bb39ae81dc30eaf4d21513b66e5 | |
parent | 90149456d2fca81e049835a6e3a78ed1ed389fc9 (diff) | |
parent | 69b3717bf63182104f788f8007c56742a5c4d17e (diff) |
Allow use of PASS_THROUGH colorspace with RGBA8 am: e29191c756 am: a122b75961 am: 69b3717bf6
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2157379
Change-Id: I80a97aa9b9eacac51a9508f61e9a60e022c5d63a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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 48d6fd0bd5..fdff33a33b 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{ |