v3d: Only look up the 3rd texture gather offset for non-arrays.
authorEric Anholt <eric@anholt.net>
Fri, 12 Apr 2019 16:38:03 +0000 (09:38 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Apr 2019 19:07:59 +0000 (12:07 -0700)
commit1bc71e8b655f2f02b3e3a0af34c7cad12b9cb83d
treeb9d82ae5d688b7abe3cad43fff2c63ffddc06e13
parenta0dae78e720c980a311c6c3cfd8ddcef70102bfe
v3d: Only look up the 3rd texture gather offset for non-arrays.

Fixes assertion failures in the CTS since Karol's cleanup when NIR started
noticing that we were reading an invalid component.

Fixes: 5450f1c9fb09 ("v3d: prefer using nir_src_comp_as_int over nir_src_as_const_value")
src/broadcom/compiler/v3d40_tex.c