mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
i965/gs: Add dummy source to prepare_channel_masks instruction.
The generator uses its destination as a source implicitly, which breaks some assumptions in dead code elimination. Giving the instruction a source allows us to reason about it better.
This commit is contained in:
parent
d877c643be
commit
4dcfb92417
1 changed files with 2 additions and 1 deletions
|
|
@ -408,7 +408,8 @@ vec4_gs_visitor::emit_control_data_bits()
|
|||
src_reg channel_mask(this, glsl_type::uint_type);
|
||||
inst = emit(SHL(dst_reg(channel_mask), one, channel));
|
||||
inst->force_writemask_all = true;
|
||||
emit(GS_OPCODE_PREPARE_CHANNEL_MASKS, dst_reg(channel_mask));
|
||||
emit(GS_OPCODE_PREPARE_CHANNEL_MASKS, dst_reg(channel_mask),
|
||||
channel_mask);
|
||||
emit(GS_OPCODE_SET_CHANNEL_MASKS, mrf_reg, channel_mask);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue