mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nak: Implement b2i32
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
05ba3f8144
commit
cf533663c1
1 changed files with 7 additions and 0 deletions
|
|
@ -98,6 +98,13 @@ impl<'a> ShaderFromNir<'a> {
|
|||
srcs: [Src::new_zero(), Src::new_imm_u32(0x3f800000)],
|
||||
})));
|
||||
}
|
||||
nir_op_b2i32 => {
|
||||
self.instrs.push(Instr::new(Op::Sel(OpSel {
|
||||
dst: dst,
|
||||
cond: srcs[0].not(),
|
||||
srcs: [Src::new_zero(), Src::new_imm_u32(1)],
|
||||
})));
|
||||
}
|
||||
nir_op_bcsel => {
|
||||
self.instrs
|
||||
.push(Instr::new_sel(dst, srcs[0], srcs[1], srcs[2]));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue