From 39db9cf0a7478d76405b049466efffdb0b58f465 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 4 Dec 2023 14:57:03 -0600 Subject: [PATCH] nak: Implement b2i64 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 e62759d408a..ad5f46a45f5 100644 --- a/src/nouveau/compiler/nak_from_nir.rs +++ b/src/nouveau/compiler/nak_from_nir.rs @@ -467,6 +467,11 @@ impl<'a> ShaderFromNir<'a> { nir_op_b2b32 | nir_op_b2i8 | nir_op_b2i16 | nir_op_b2i32 => { b.sel(srcs[0].bnot(), 0.into(), 1.into()) } + nir_op_b2i64 => { + let lo = b.sel(srcs[0].bnot(), 0.into(), 1.into()); + let hi = b.copy(0.into()); + [lo[0], hi[0]].into() + } nir_op_b2f32 => { b.sel(srcs[0].bnot(), 0.0_f32.into(), 1.0_f32.into()) }