summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-09-28 10:52:11 -0700
committerChad Versace <[email protected]>2015-09-28 11:53:39 -0700
commitc15ce5c8341251e02794d2cae7ac95e561398e9a (patch)
tree3b07844450eae819aba4b257d2ef944251024e78
parent4e48f94469b37efc333dbc3271fe075bed3ba625 (diff)
vk: Advertise that depthstencil formats support sampling
Let vkGetPhysicalDeviceFormatProperties() set VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT for tiled depthstencil images.
-rw-r--r--src/vulkan/anv_formats.c1
1 files changed, 1 insertions, 0 deletions
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 */