From 44dd7dcd2fb0d59cf33bad5313bd45b583002ae4 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 15 Jan 2018 14:58:41 -0500 Subject: freedreno/ir3: avoid some spurious sync bits Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_legalize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c index b4d5db58ccb..9d443d72c33 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c @@ -116,6 +116,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) */ if (regmask_get(&needs_ss, reg)) { n->flags |= IR3_INSTR_SS; + regmask_init(&needs_ss_war); regmask_init(&needs_ss); } @@ -137,7 +138,8 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) reg = n->regs[0]; if (regmask_get(&needs_ss_war, reg)) { n->flags |= IR3_INSTR_SS; - regmask_init(&needs_ss_war); // ??? I assume? + regmask_init(&needs_ss_war); + regmask_init(&needs_ss); } if (last_rel && (reg->num == regid(REG_A0, 0))) { -- cgit v1.2.3