v3dv: fix clearing of 3D images
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 25 Mar 2020 07:57:12 +0000 (08:57 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commit010589a699da1637c8985ce34900f5b1cc1d12e5
tree9a4d3cda0f7dff7264389514de71ecdfefe632ee
parent3faa7db05332395097ea5dcccfc0d044cbf74101
v3dv: fix clearing of 3D images

We were not considering that the depth of the image is minified according
to its miplevel. For some reason this only seemed to show up for tiled
images.

Fixes (except a1r5g5b5 format):
dEQP-VK.api.image_clearing.core.clear_color_image.3d.optimal.*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_meta_copy.c