freedreno/ir3: fix constlen in case of load_uniform_indirect
authorRob Clark <robclark@freedesktop.org>
Wed, 24 Jun 2015 22:57:22 +0000 (18:57 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 30 Jun 2015 16:13:44 +0000 (12:13 -0400)
commit01b5f1336330f1c0f937fb08a444efc593b43435
treea7fbd374d3ac5b7d10eaa208df2d8187c559e3b6
parent9350ea6979c48772e1fb55d4f1c7c5a3cfa987b0
freedreno/ir3: fix constlen in case of load_uniform_indirect

We can't rely on what we get from the assembler if we have indirect
addressing of constant file, since the assembler doesn't know the array
index.  This got lost in the transition to NIR.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c