From e287ba95b043fe0500b111e4e5d52f91feae33d5 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 25 Jul 2024 16:45:38 -0500 Subject: [PATCH] nak/sm50: Fix the encoding of ffma with cbuf in src2 Part-of: --- src/nouveau/compiler/nak/sm50.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak/sm50.rs b/src/nouveau/compiler/nak/sm50.rs index a9f56941016..228404b37a2 100644 --- a/src/nouveau/compiler/nak/sm50.rs +++ b/src/nouveau/compiler/nak/sm50.rs @@ -483,7 +483,7 @@ impl SM50Op for OpFFma { e.set_reg_src_ref(39..47, self.srcs[2].src_ref); } SrcRef::CBuf(cb) => { - e.set_opcode(0x4980); + e.set_opcode(0x5180); e.set_src_cb(20..39, cb); e.set_reg_src_ref(39..47, self.srcs[1].src_ref); }