summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_image.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-05 13:17:39 -0700
committerChad Versace <[email protected]>2015-10-05 13:18:44 -0700
commit4ffb4549e0aa139c908afd3c1b05e9a3ca6acf40 (patch)
tree4c89ab51a303bdcba2203e65197c1d5273d5d069 /src/vulkan/anv_image.c
parent35302240632aadd95ef97169a6013f088e9e1f17 (diff)
vk/image: Document a Vulkan spec requirement for depthstencil
The Vulkan spec (git a511ba2) requires support for some combined depth stencil formats.
Diffstat (limited to 'src/vulkan/anv_image.c')
-rw-r--r--src/vulkan/anv_image.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c
index 2045aa27219..43245297f0e 100644
--- a/src/vulkan/anv_image.c
+++ b/src/vulkan/anv_image.c
@@ -546,9 +546,11 @@ anv_image_get_surface_for_aspect_mask(struct anv_image *image, VkImageAspectFlag
anv_finishme("stencil image views");
return &image->stencil_surface;
case VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT:
- /* FINISHME: Support combined depthstencil aspect. Does the Vulkan spec
- * allow is to reject it? Until we support it, filter out the stencil
- * aspect and use only the depth aspect.
+ /* FINISHME: The Vulkan spec (git a511ba2) requires support for combined
+ * depth stencil formats. Specifically, it states:
+ *
+ * At least one of ename:VK_FORMAT_D24_UNORM_S8_UINT or
+ * ename:VK_FORMAT_D32_SFLOAT_S8_UINT must be supported.
*/
anv_finishme("combined depthstencil aspect");
assert(image->format->depth_format);