Module: Mesa
Branch: main
Commit: ea453b373db0c7b001073312da910c67eaf4e892
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea453b373db0c7b001073312da910c67eaf4e892

Author: Faith Ekstrand <[email protected]>
Date:   Fri Nov 10 14:05:34 2023 -0600

nak: Fix copy-prop for OpPLop3 sources

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26181>

---

 src/nouveau/compiler/nak_opt_copy_prop.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nouveau/compiler/nak_opt_copy_prop.rs 
b/src/nouveau/compiler/nak_opt_copy_prop.rs
index 5b68914f879..e3a34393675 100644
--- a/src/nouveau/compiler/nak_opt_copy_prop.rs
+++ b/src/nouveau/compiler/nak_opt_copy_prop.rs
@@ -389,13 +389,13 @@ impl CopyPropPass {
                                         self.add_copy(
                                             dst,
                                             SrcType::Pred,
-                                            lop.srcs[i],
+                                            lop.srcs[s],
                                         );
                                     } else if op.lut == !LogicOp::SRC_MASKS[s] 
{
                                         self.add_copy(
                                             dst,
                                             SrcType::Pred,
-                                            lop.srcs[i].bnot(),
+                                            lop.srcs[s].bnot(),
                                         );
                                     }
                                 }

Reply via email to