v3dv: take memory format from appropriate miplevel for image load/store
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 2 Mar 2020 09:13:14 +0000 (10:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commit6a909387c2a61cd473dc139e53dbf938c3848272
tree1249cf2edd8f63a0f3974260f11a95caa1591174
parent5d1089b88dfbcd241527170b49b7a0608c24e97c
v3dv: take memory format from appropriate miplevel for image load/store

We were storing the format of the base miplevel in the image view and
we were typically using that instead of the taking the format from
the appropriate image slice. This was a problem when loading or storing
a miplevel other than the base which happened to have a different format.

This also removed the tiling field from the image view to avoid repeating
the same mistake in the future.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c
src/broadcom/vulkan/v3dv_image.c
src/broadcom/vulkan/v3dv_meta_clear.c
src/broadcom/vulkan/v3dv_private.h