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:
Alyssa Rosenzweig 2024-02-06 22:18:42 -04:00 committed by Marge Bot
parent 6c5d3fe1b5
commit 589338e8fc

View file

@ -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) {