anv_get_isl_format: Support depth+stencil aspect value
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jan 2016 22:12:22 +0000 (14:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 00:08:05 +0000 (16:08 -0800)
You just get the depth format in this case.

src/vulkan/anv_formats.c

index 9f522ee7b91be0fd1732e043b6c1d0670cb25adc..88c72f5325102ebd1b0d642a32fba1fe6173d3a1 100644 (file)
@@ -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: