Skip to content

Commit a107648

Browse files
HuYuxinAndroid (Google) Code Review
authored andcommitted
Merge "Add VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT to FP16 surface" into main
2 parents 01411e4 + f768e04 commit a107648

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vulkan/libvulkan/swapchain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
#include "vulkan/vulkan_core.h"
1718
#define ATRACE_TAG ATRACE_TAG_GRAPHICS
1819

1920
#include <aidl/android/hardware/graphics/common/Dataspace.h>
@@ -789,6 +790,9 @@ VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev,
789790
all_formats.emplace_back(
790791
VkSurfaceFormatKHR{VK_FORMAT_R16G16B16A16_SFLOAT,
791792
VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT});
793+
all_formats.emplace_back(
794+
VkSurfaceFormatKHR{VK_FORMAT_R16G16B16A16_SFLOAT,
795+
VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT});
792796
}
793797
}
794798

0 commit comments

Comments
 (0)