[Mesa-dev] [PATCH 14/20] pan/midgard: Set mask for lowered read-hazard moves
Alyssa Rosenzweig
alyssa.rosenzweig at collabora.com
Fri Aug 16 15:35:54 UTC 2019
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 <alyssa.rosenzweig at collabora.com>
---
src/panfrost/midgard/midgard_ra.c | 1 +
1 file changed, 1 insertion(+)
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);
}
--
2.23.0.rc1
More information about the mesa-dev
mailing list