From: Rhys Perry Date: Fri, 21 Feb 2020 12:00:38 +0000 (+0000) Subject: aco: fix carry-out size for wave32 v_add_co_u32_e64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=215df21dea14358cccc1c9d84a186221cf834c7d;p=mesa.git aco: fix carry-out size for wave32 v_add_co_u32_e64 Signed-off-by: Rhys Perry Reviewed-By: Timur Kristóf Fixes: e0bcefc3a0a ('aco/wave32: Use lane mask regclass for exec/vcc.') Part-of: --- diff --git a/src/amd/compiler/aco_builder_h.py b/src/amd/compiler/aco_builder_h.py index 97c03ac8adf..65eee5ebd1d 100644 --- a/src/amd/compiler/aco_builder_h.py +++ b/src/amd/compiler/aco_builder_h.py @@ -392,7 +392,7 @@ public: if (!carry_in.op.isUndefined()) return vop2(aco_opcode::v_addc_co_u32, Definition(dst), hint_vcc(def(lm)), a, b, carry_in); else if (program->chip_class >= GFX10 && carry_out) - return vop3(aco_opcode::v_add_co_u32_e64, Definition(dst), def(s2), a, b); + return vop3(aco_opcode::v_add_co_u32_e64, Definition(dst), def(lm), a, b); else if (program->chip_class < GFX9 || carry_out) return vop2(aco_opcode::v_add_co_u32, Definition(dst), hint_vcc(def(lm)), a, b); else