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: 9bbc692064 ("nak/nir: Rework CRS handling")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34201>
(cherry picked from commit af9d65e8b8)
This commit is contained in:
Faith Ekstrand 2025-03-26 17:33:24 -05:00 committed by Eric Engestrom
parent 829c728e89
commit 4aad059de8
2 changed files with 2 additions and 2 deletions

View file

@ -2394,7 +2394,7 @@
"description": "nak: Fix a SM check for OpPCnt",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9bbc6920640b71503519e513ccb9ce528a16fb8f",
"notes": null

View file

@ -3388,7 +3388,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),