Module: Mesa
Branch: staging/22.2
Commit: 398d92646a91acd3bf21408774697c38d5bf0280
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=398d92646a91acd3bf21408774697c38d5bf0280

Author: Rhys Perry <[email protected]>
Date:   Fri Aug  5 16:35:42 2022 +0100

aco: add SCC clobber in build_cube_select

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Reviewed-by: Georg Lehmann <[email protected]>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17991>
(cherry picked from commit 290df958703a30cb6d69aff2f8899a06a098ce20)

---

 .pick_status.json                              | 2 +-
 src/amd/compiler/aco_instruction_selection.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 7d8026a4c1e..d8be8f31a9d 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -1399,7 +1399,7 @@
         "description": "aco: add SCC clobber in build_cube_select",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
diff --git a/src/amd/compiler/aco_instruction_selection.cpp 
b/src/amd/compiler/aco_instruction_selection.cpp
index f5fa1825bca..ae06e107f20 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -9299,7 +9299,7 @@ build_cube_select(isel_context* ctx, Temp ma, Temp id, 
Temp deriv, Temp* out_ma,
 
    Temp is_ma_z = bld.vopc(aco_opcode::v_cmp_le_f32, bld.def(bld.lm), four, 
id);
    Temp is_ma_y = bld.vopc(aco_opcode::v_cmp_le_f32, bld.def(bld.lm), two, id);
-   is_ma_y = bld.sop2(Builder::s_andn2, bld.def(bld.lm), is_ma_y, is_ma_z);
+   is_ma_y = bld.sop2(Builder::s_andn2, bld.def(bld.lm), bld.def(s1, scc), 
is_ma_y, is_ma_z);
    Temp is_not_ma_x =
       bld.sop2(aco_opcode::s_or_b64, bld.def(bld.lm), bld.def(s1, scc), 
is_ma_z, is_ma_y);
 

Reply via email to