nak/sm70: Fix the bit74_75_ar_mod assert

It's used for src2, not src0.

Fixes: 40422927dc ("nak: Pass has_mod to all form of src2 requiring it")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33107>
(cherry picked from commit 47fc468944)
This commit is contained in:
Faith Ekstrand 2025-04-16 17:52:32 -05:00 committed by Eric Engestrom
parent 61b44913f5
commit 5f36e5961e
2 changed files with 2 additions and 2 deletions

View file

@ -2484,7 +2484,7 @@
"description": "nak/sm70: Fix the bit74_75_ar_mod assert",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "40422927dcb1249cdb1444557aca671387140428",
"notes": null

View file

@ -575,7 +575,7 @@ impl SM70Encoder<'_> {
let bit74_75_are_mod = !is_fp16_alu
|| matches!(src1, ALUSrc::None)
|| matches!(src2, ALUSrc::None);
debug_assert!(bit74_75_are_mod || !src0.has_src_mod());
debug_assert!(bit74_75_are_mod || !src2.has_src_mod());
self.encode_alu_src0(&src0, RegFile::GPR, is_fp16_alu);