r300: check for identical saturate mode when merging MOVs

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17560>
This commit is contained in:
Pavel Ondračka 2022-06-22 18:30:06 +02:00
parent 6286e48e5d
commit 2755faf938

View file

@ -953,6 +953,7 @@ static int merge_movs(struct radeon_compiler * c, struct rc_instruction * inst)
if (cur->U.I.Opcode == RC_OPCODE_MOV &&
cur->U.I.DstReg.File == orig_dst_file &&
cur->U.I.DstReg.Index == orig_dst_reg &&
cur->U.I.SaturateMode == inst->U.I.SaturateMode &&
(cur->U.I.DstReg.WriteMask & orig_dst_wmask) == 0) {
/* We can merge the movs if one of them is from inline constant */