From: Chad Versace Date: Mon, 28 Sep 2015 17:52:11 +0000 (-0700) Subject: vk: Advertise that depthstencil formats support sampling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c15ce5c8341251e02794d2cae7ac95e561398e9a;p=mesa.git vk: Advertise that depthstencil formats support sampling Let vkGetPhysicalDeviceFormatProperties() set VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT for tiled depthstencil images. --- 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 */