mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
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:
parent
b1df00cb79
commit
6cc0a3ed44
1 changed files with 4 additions and 2 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue