v3d/tex: only look up the 2nd texture gather offset for 1d non-arrays
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 28 Apr 2020 22:33:47 +0000 (00:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 May 2020 23:52:46 +0000 (23:52 +0000)
commit50c2c76ea31edf987594e8b811b7d62be71f5a33
tree36fc25eabaaad69f2537b36dc259a3a22ca17e7d
parentad8c5bba0a44774477a1b26523a14e8679521fc3
v3d/tex: only look up the 2nd texture gather offset for 1d non-arrays

Commit 1bc71e8b655f2f02b3e3a0af34c7cad12b9cb83d already did that for
the 3rd offset, but it also needs to do it for the 2nd (to handle 1d
array).

Fixes assertion failures with Vulkan CTS tests using 1darray
targets. Seems that there isn't too many 1darray tests on OpenGL CTS,
and OpenGL-ES don't support 1d arrays, but the same problem could
arise eventually on OpenGL.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4962>
src/broadcom/compiler/v3d40_tex.c