v3dv: TFU destination must be UIF
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 15 Mar 2022 07:37:44 +0000 (08:37 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Mar 2022 13:17:58 +0000 (13:17 +0000)
commit397f4963ed00d99c8bda18b17ca93dc4ecc6e202
tree551eee2a8f174b9e80f908ff679c465ed9a64a77
parent9e20d6878550ccfdafc9c27b5888ac4e13d1ec44
v3dv: TFU destination must be UIF

We had some code that considered the possibility that the destination
might be linear when configuring TFU jobs, but we never actually allow
for this to happen since we avoid hitting these paths in that case, as
the TFU always produces UIF results. Instead, add an assert when
producing the TFU packet to ensure we are expecting a UIF result.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15342>
src/broadcom/vulkan/v3dv_meta_copy.c
src/broadcom/vulkan/v3dvx_meta_common.c