Module: Mesa Branch: main Commit: ed03696ed9d83332427f3584d122f91b635a522f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed03696ed9d83332427f3584d122f91b635a522f
Author: Georg Lehmann <[email protected]> Date: Mon Mar 27 23:32:54 2023 +0200 aco/ir: fix copy paste bug in convert_to_SDWA Reviewed-by: Rhys Perry <[email protected]> Fixes: 60cd3ba39f1 ("aco: copy abs/neg with assignment") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22154> --- src/amd/compiler/aco_ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index 3655ffb0487..99779305ef5 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -305,7 +305,7 @@ convert_to_SDWA(amd_gfx_level gfx_level, aco_ptr<Instruction>& instr) if (tmp->isVOP3()) { VALU_instruction& vop3 = tmp->valu(); sdwa.neg = vop3.neg; - sdwa.abs = vop3.neg; + sdwa.abs = vop3.abs; sdwa.omod = vop3.omod; sdwa.clamp = vop3.clamp; }
