mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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: 5450f1c9fb ("v3d: prefer using nir_src_comp_as_int over nir_src_as_const_value")
This commit is contained in:
parent
a0dae78e72
commit
1bc71e8b65
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ v3d40_vir_emit_tex(struct v3d_compile *c, nir_tex_instr *instr)
|
|||
if (instr->coord_components >= 2)
|
||||
p2_unpacked.offset_t =
|
||||
nir_src_comp_as_int(instr->src[i].src, 1);
|
||||
if (instr->coord_components >= 3)
|
||||
if (non_array_components >= 3)
|
||||
p2_unpacked.offset_r =
|
||||
nir_src_comp_as_int(instr->src[i].src, 2);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue