summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-01 14:12:22 -0800
committerJason Ekstrand <[email protected]>2016-01-04 16:08:05 -0800
commitceb05131daffea3de2777cfb22a9be2dc53d88cd (patch)
tree310340153d64376cf605d0daa5c18fdb317c23c3 /src
parenta7cc12910d1963d21fda8165ce790c4cb4241fba (diff)
anv_get_isl_format: Support depth+stencil aspect value
You just get the depth format in this case.
Diffstat (limited to 'src')
-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 9f522ee7b91..88c72f53251 100644
--- a/src/vulkan/anv_formats.c
+++ b/src/vulkan/anv_formats.c
@@ -246,6 +246,7 @@ anv_get_isl_format(VkFormat format, VkImageAspectFlags aspect,
case VK_IMAGE_ASPECT_COLOR_BIT:
return anv_fmt->surface_format;
case VK_IMAGE_ASPECT_DEPTH_BIT:
+ case (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT):
assert(anv_fmt->depth_format != 0);
return anv_fmt->surface_format;
case VK_IMAGE_ASPECT_STENCIL_BIT: