diff options
author | Jason Ekstrand <[email protected]> | 2017-04-28 06:10:29 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-09-20 17:21:06 -0700 |
commit | 28911156711c661d42807aaaf89e33eeba53537e (patch) | |
tree | f67757008b7196e304b1dcb1bdfe72b1455ad348 /src | |
parent | 3a5b69c09ba355c616c274b0c7f5aba3bd21fd54 (diff) |
anv/image: Add support for the new depth/stencil layouts
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 559e50da9a2..bebc1c0c433 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -639,6 +639,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 @@ -671,6 +672,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; |