From c15ce5c8341251e02794d2cae7ac95e561398e9a Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 28 Sep 2015 10:52:11 -0700 Subject: vk: Advertise that depthstencil formats support sampling Let vkGetPhysicalDeviceFormatProperties() set VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT for tiled depthstencil images. --- src/vulkan/anv_formats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 3ec2c7774aa..2c3487c18cc 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -267,6 +267,7 @@ VkResult anv_GetPhysicalDeviceFormatProperties( uint32_t linear = 0, tiled = 0; if (anv_format_is_depth_or_stencil(format)) { + tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; } else { /* The surface_formats table only contains color formats */ -- cgit v1.2.3