mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
pan/bi: Default csel to "!= 0" mode
This way we always have regular csel conditions instead of a weird .always special case for 3-src CSEL mode. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
This commit is contained in:
parent
46f526eb1e
commit
5cdc31abd6
1 changed files with 5 additions and 0 deletions
|
|
@ -595,6 +595,11 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
|
|||
}
|
||||
|
||||
if (alu.type == BI_CSEL) {
|
||||
/* Default to csel3 */
|
||||
alu.csel_cond = BI_COND_NE;
|
||||
alu.src[3] = BIR_INDEX_ZERO;
|
||||
alu.src_types[3] = alu.src_types[0];
|
||||
|
||||
bi_fuse_csel_cond(&alu, instr->src[0],
|
||||
&constants_left, &constant_shift);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue