diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-11-24 20:52:20 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-11-26 09:29:39 +0100 |
commit | 3c96a1e3a97ba89dad803e7be8f9e3d4f6516fa3 (patch) | |
tree | 6304ae1d9c68fcae02b423674c20e025c4f31e17 /src/amd/vulkan/radv_image.c | |
parent | ff466c2d48c611d05ee400c814d0da171a6cbce2 (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]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 7492bf48b51..f0b1d31c5bd 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); |