r300: only run merge_movs pass on R500

This pass currently generates some swizzles that the R300 and R400
hardware can't handle, make it R500 for now.

Fixes: 6c2959c0

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17150>
This commit is contained in:
Pavel Ondračka 2022-06-20 22:17:21 +02:00 committed by Marge Bot
parent b1df00cb79
commit 6cc0a3ed44

View file

@ -979,8 +979,10 @@ void rc_optimize(struct radeon_compiler * c, void *user)
continue;
if (cur->U.I.Opcode == RC_OPCODE_MOV) {
if (merge_movs(c,cur))
continue;
if (c->is_r500) {
if (merge_movs(c, cur))
continue;
}
copy_propagate(c, cur);
/* cur may no longer be part of the program */
}