[Mesa-dev] [PATCH 01/12] anv/image: Add support for the new depth/stencil layouts
Jason Ekstrand
jason at jlekstrand.net
Fri Sep 15 16:01:40 UTC 2017
---
src/intel/vulkan/anv_image.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 492b341..63e507a 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -581,6 +581,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
assert(!color_aspect);
/* Fall-through */
case VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL:
+ case VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR:
if (anv_can_sample_with_hiz(devinfo, aspects, image->samples))
return ISL_AUX_USAGE_HIZ;
else
@@ -613,6 +614,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
unreachable("Color images are not yet supported.");
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
+ case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR:
assert(!color_aspect);
return ISL_AUX_USAGE_HIZ;
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list