mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
r300/compiler: Don't pair output writes with GPR writes in the scheduler
This commit is contained in:
parent
6fafb6beb7
commit
51fe9994bd
1 changed files with 7 additions and 0 deletions
|
|
@ -511,6 +511,13 @@ static int merge_instructions(struct rc_pair_instruction * rgb, struct rc_pair_i
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Writing output registers in the middle of shaders is slow, so
|
||||
* we don't want to pair output writes with temp writes. */
|
||||
if ((rgb->RGB.OutputWriteMask && !alpha->Alpha.OutputWriteMask)
|
||||
|| (!rgb->RGB.OutputWriteMask && alpha->Alpha.OutputWriteMask)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
memcpy(&backup, rgb, sizeof(struct rc_pair_instruction));
|
||||
|
||||
if (destructive_merge_instructions(rgb, alpha))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue