summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-01-15 14:58:41 -0500
committerRob Clark <[email protected]>2018-02-10 14:54:58 -0500
commit44dd7dcd2fb0d59cf33bad5313bd45b583002ae4 (patch)
treeac34c9ee9048d0ceb015d7172ce5f408ae1b1faa
parent069c0ac62520ef06ec6b8c8f67f364d5be9cbc9a (diff)
freedreno/ir3: avoid some spurious sync bits
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_legalize.c4
1 files changed, 3 insertions, 1 deletions
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))) {