From af9d65e8b8a6522702770b380e3e3b333587f170 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 26 Mar 2025 17:33:24 -0500 Subject: [PATCH] nak: Fix a SM check for OpPCnt This doens't really fix anything as we don't have any nir_loops on Volta+ but the code was wrong so we should fix it. Fixes: 9bbc6920640b ("nak/nir: Rework CRS handling") Part-of: --- src/nouveau/compiler/nak/from_nir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak/from_nir.rs b/src/nouveau/compiler/nak/from_nir.rs index 15963417453..167f149f768 100644 --- a/src/nouveau/compiler/nak/from_nir.rs +++ b/src/nouveau/compiler/nak/from_nir.rs @@ -3434,7 +3434,7 @@ impl<'a> ShaderFromNir<'a> { b.push_op(phi); } - if self.sm.sm() < 75 && nb.cf_node.prev().is_none() { + if self.sm.sm() < 70 && nb.cf_node.prev().is_none() { if let Some(_) = nb.parent().as_loop() { b.push_op(OpPCnt { target: self.get_block_label(nb),