From: Chad Versace Date: Mon, 28 Sep 2015 17:52:11 +0000 (-0700) Subject: vk: Advertise that depthstencil formats support sampling X-Git-Tag: android-x86-6.0-r1~2228^2~1333 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c15ce5c8341251e02794d2cae7ac95e561398e9a;p=android-x86%2Fexternal-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 */