aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-11-24 20:52:20 +0100
committerEmil Velikov <[email protected]>2018-11-26 15:37:02 +0000
commit02566b97258d12a045f2de0b2d6ef7bf05ae1ceb (patch)
tree859914f9b8438ce2d05ac29c98c40ecc90fd769a
parent825cb768602235a9bbe4d0597aba69830f4efe9a (diff)
radv: Fix opaque metadata descriptor last layer.
We used the layer count which results in an off by one error. Not sure this really affects anything. Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver" Reviewed-by: Dave Airlie <[email protected]> (cherry picked from commit 3c96a1e3a97ba89dad803e7be8f9e3d4f6516fa3)
-rw-r--r--src/amd/vulkan/radv_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 64346aa340f..a0fa0506350 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -691,7 +691,7 @@ radv_query_opaque_metadata(struct radv_device *device,
si_make_texture_descriptor(device, image, false,
(VkImageViewType)image->type, image->vk_format,
&fixedmapping, 0, image->info.levels - 1, 0,
- image->info.array_size,
+ image->info.array_size - 1,
image->info.width, image->info.height,
image->info.depth,
desc, NULL);