nak: Implement b2f64
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26743>
This commit is contained in:
parent
26d649f120
commit
a9fb7b0280
1 changed files with 5 additions and 0 deletions
|
|
@ -519,6 +519,11 @@ impl<'a> ShaderFromNir<'a> {
|
|||
nir_op_b2f32 => {
|
||||
b.sel(srcs[0].bnot(), 0.0_f32.into(), 1.0_f32.into())
|
||||
}
|
||||
nir_op_b2f64 => {
|
||||
let lo = b.copy(0.into());
|
||||
let hi = b.sel(srcs[0].bnot(), 0.into(), 0x3ff00000.into());
|
||||
[lo[0], hi[0]].into()
|
||||
}
|
||||
nir_op_bcsel => b.sel(srcs[0], srcs[1], srcs[2]),
|
||||
nir_op_bit_count => {
|
||||
let dst = b.alloc_ssa(RegFile::GPR, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue