v3dv: fix texture_size()
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 24 May 2021 09:20:50 +0000 (11:20 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 May 2021 09:12:35 +0000 (09:12 +0000)
commit8e3179545eb42d9973d2630b008df44206b3229e
tree7a93196860b98a51eef86b77611e93c67007fc37
parent32abeac8a8b1ed3c18b9ddde21c5fe8e8211b148
v3dv: fix texture_size()

The uniform data for the texture size as produced by the compiler
contains the texture index directly and is not packed with
v3d_unit_data_create, so using v3d_unit_data_get_unit is not
correct.

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