From 2bd71dd0f0f96a42c8491bc13b8dfdbc641efc2f Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 10 Apr 2023 17:23:23 -0500 Subject: [PATCH] nak: Print names of missing instructions Part-of: --- src/nouveau/compiler/nak_from_nir.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nouveau/compiler/nak_from_nir.rs b/src/nouveau/compiler/nak_from_nir.rs index 39de0989087..909cd5c542d 100644 --- a/src/nouveau/compiler/nak_from_nir.rs +++ b/src/nouveau/compiler/nak_from_nir.rs @@ -379,7 +379,7 @@ impl<'a> ShaderFromNir<'a> { srcs[1], )); } - _ => panic!("Unsupported ALU instruction"), + _ => panic!("Unsupported ALU instruction: {}", alu.info().name()), } } @@ -489,7 +489,10 @@ impl<'a> ShaderFromNir<'a> { self.instrs.push(Instr::new_ast(addr, data, vtx, offset)) } } - _ => panic!("Unsupported intrinsic instruction"), + _ => panic!( + "Unsupported intrinsic instruction: {}", + intrin.info().name() + ), } }