mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
agx: sink wait_pix
No reason not to, noticed when poking at the earlier parts of the series. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
6c5d3fe1b5
commit
589338e8fc
1 changed files with 6 additions and 0 deletions
|
|
@ -179,6 +179,12 @@ choose_instr(struct sched_ctx *s)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Heuristic: sink wait_pix to increase parallelism. Since wait_pix does
|
||||
* not read or write registers, this has no effect on pressure.
|
||||
*/
|
||||
if (n->instr->op == AGX_OPCODE_WAIT_PIX)
|
||||
return n;
|
||||
|
||||
int32_t delta = calculate_pressure_delta(n->instr, s->live);
|
||||
|
||||
if (delta < min_delta) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue