summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-09-30 20:02:37 -0400
committerEmil Velikov <emil.l.velikov@gmail.com>2014-10-29 17:44:21 +0000
commit1acdeab8a43b669b927262070b533250c9e1aeaf (patch)
tree972e77ff86f396a03962797601659a6541a959fa /src
parent64e4ac780e9f3c64bb6c87ff4eeace04b7918e72 (diff)
freedreno/ir3: shadow comes before array
Experimentally, this makes *ArrayShadow tex-miplevel-selection tests pass. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> (cherry picked from commit 5bba74c64b30390114c105d58792301a222b0cdc)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
index ba6afa4a556..38ac22a00db 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
@@ -1170,10 +1170,10 @@ fill_tex_info(struct ir3_compile_context *ctx,
info->order[arg] = pos++;
if (tgt->dims == 1)
info->order[pos++] = -1;
+ if (tgt->shadow)
+ info->order[pos++] = MAX2(arg + tgt->array, 2);
if (tgt->array)
info->order[pos++] = arg++;
- if (tgt->shadow)
- info->order[pos++] = MAX2(arg, 2);
if (info->flags & IR3_INSTR_P)
info->order[pos++] = 3;