diff options
author | Dave Airlie <airlied@redhat.com> | 2016-11-28 07:03:11 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-28 12:56:34 +0000 |
commit | 02fd5a19b7be6fe849b39e36d3b6e5f609927d2f (patch) | |
tree | 67cd77daea2c63c1a00e11b47ffe4ae936b049f0 | |
parent | 87b76f0e058658ffe122b97e8dc7e7dc19d49265 (diff) | |
download | external_mesa3d-02fd5a19b7be6fe849b39e36d3b6e5f609927d2f.zip external_mesa3d-02fd5a19b7be6fe849b39e36d3b6e5f609927d2f.tar.gz external_mesa3d-02fd5a19b7be6fe849b39e36d3b6e5f609927d2f.tar.bz2 |
radv: fix 3D clears with baseMiplevel
This fixes:
dEQP-VK.api.image_clearing.clear_color_image.3d*
These were hitting an assert as the code wasn't taking the
baseMipLevel into account when minify the image depth.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 09c0c17bc3609a5f5d3ba1df26820406ff5449bf)
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 7e3e5f4..a347703 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -998,7 +998,7 @@ radv_cmd_clear_image(struct radv_cmd_buffer *cmd_buffer, const VkImageSubresourceRange *range = &ranges[r]; for (uint32_t l = 0; l < radv_get_levelCount(image, range); ++l) { const uint32_t layer_count = image->type == VK_IMAGE_TYPE_3D ? - radv_minify(image->extent.depth, l) : + radv_minify(image->extent.depth, range->baseMipLevel + l) : radv_get_layerCount(image, range); for (uint32_t s = 0; s < layer_count; ++s) { struct radv_image_view iview; |