radv: fix depth transitions with layerCount = VK_REMAINING_ARRAY_LAYERS
authorPierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Fri, 6 Jan 2017 20:57:17 +0000 (12:57 -0800)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 7 Jan 2017 00:26:08 +0000 (01:26 +0100)
commitf6d3af2af6fd27c5d4e4ecfe369ca805b74fcc9c
tree5258ebdecec43550fe53214002bb8b7030eadd92
parente6ae19944d977dc91bc45adff679337182c20683
radv: fix depth transitions with layerCount = VK_REMAINING_ARRAY_LAYERS

Interpreting layerCount literally would try to create billions of image
views in radv_process_depth_image_inplace().

Signed-off-by: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_decompress.c