freedreno/ir3: shadow comes before array

Experimentally, this makes *ArrayShadow tex-miplevel-selection tests
pass.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Ilia Mirkin 2014-09-30 20:02:37 -04:00 committed by Rob Clark
parent 81b34e4461
commit 5bba74c64b

View file

@ -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;