summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_ra.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-15 16:29:15 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-19 08:32:17 -0700
commit2bcb3d922600b86818dc03110538460a92fbab6f (patch)
treeca7300ea3843cfe42630ec1f09f36289f4f42d54 /src/panfrost/midgard/midgard_ra.c
parent739e09c2974533a119d341020166e95f4ef0f604 (diff)
pan/midgard: Set mask for lowered read-hazard moves
If we need to lower a move for a read from a vec2 texture coordinate, we shouldn't write zw, even incidentally. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_ra.c')
-rw-r--r--src/panfrost/midgard/midgard_ra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index 5df8ecf0df0..6a417d48c91 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -501,6 +501,7 @@ mir_lower_special_reads(compiler_context *ctx)
} else {
idx = spill_idx++;
m = v_mov(i, blank_alu_src, idx);
+ m.mask = mir_mask_of_read_components(pre_use, i);
mir_insert_instruction_before(pre_use, m);
mir_rewrite_index_src_single(pre_use, i, idx);
}