radv: fix 3D clears with baseMiplevel
authorDave Airlie <airlied@redhat.com>
Mon, 28 Nov 2016 07:03:11 +0000 (07:03 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Nov 2016 07:10:12 +0000 (07:10 +0000)
commit09c0c17bc3609a5f5d3ba1df26820406ff5449bf
tree415f06c3b13fb9a363c00a0b1fe64cea33c035f2
parent020978af12ef6d598bc5efeae3704c0eb8cdafd2
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>
src/amd/vulkan/radv_meta_clear.c