Skip to content

Commit d3ff521

Browse files
committed
Add VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT to FP16 surface
Test: atest --verbose CtsViewTestCases:android.view.cts.TextureViewTest#testGetBitmap_FP16_PassthroughP3 Bug: b/322044839 Change-Id: Ic1dfec7ea8d128881077a3c00f7454230f15f3a3
1 parent 5e95a70 commit d3ff521

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vulkan/libvulkan/swapchain.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,
786786
all_formats.emplace_back(
787787
VkSurfaceFormatKHR{VK_FORMAT_R16G16B16A16_SFLOAT,
788788
VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT});
789+
all_formats.emplace_back(
790+
VkSurfaceFormatKHR{VK_FORMAT_R16G16B16A16_SFLOAT,
791+
VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT});
789792
}
790793
}
791794

0 commit comments

Comments
 (0)