From a9fb7b0280c90b81d7b3c0aaf89953b21e957e44 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 7 Dec 2023 23:36:38 -0600 Subject: [PATCH] nak: Implement b2f64 Part-of: --- src/nouveau/compiler/nak/from_nir.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nouveau/compiler/nak/from_nir.rs b/src/nouveau/compiler/nak/from_nir.rs index 5fb9c280fdf..25855027c8c 100644 --- a/src/nouveau/compiler/nak/from_nir.rs +++ b/src/nouveau/compiler/nak/from_nir.rs @@ -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);