From 80906a12d98740bd838f4b4c1cfc9931e4e59322 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 5 Sep 2019 11:25:07 -0400 Subject: [PATCH] freedreno/a2xx: ir2: update register state in scalar insert Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- src/gallium/drivers/freedreno/a2xx/ir2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/freedreno/a2xx/ir2.c b/src/gallium/drivers/freedreno/a2xx/ir2.c index 89ac21a81e1..2d542485c80 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2.c @@ -133,6 +133,12 @@ insert(struct ir2_context *ctx, unsigned block_idx, unsigned reg_idx, sched = s; } *comp = ffs(mask) - 1; + + if (sched) { + for (s = sched; s != &ctx->instr_sched[ctx->instr_sched_count]; s++) + s->reg_state[reg_idx/8] |= 1 << (*comp+reg_idx%8*4); + } + return sched; } -- 2.30.2