ir3/sched: Make collects count against tex/sfu limits
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 23 Apr 2021 11:05:48 +0000 (13:05 +0200)
committerEmma Anholt <emma@anholt.net>
Thu, 10 Jun 2021 19:24:06 +0000 (12:24 -0700)
commitba8efeb7fa4a8a1f9b917b6f5ac7df8c2aace52e
tree43da31a7a5f434ffc4b88a02f6da8f711ad6835b
parent8b15c2f30c40155a56a211c2e1c1b6c5fc0368b9
ir3/sched: Make collects count against tex/sfu limits

In a scenario where there are a lot of texture fetches with constant
coordinates, this prevents the scheduler from scheduling all the setup
instructions after the first group of textures has been scheduled
because they are the only non-syncing thing and scheduling them didn't
decrease tex_delay. Collects with immed/const sources will turn into
moves of those sources, so we should treat them the same.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9842>
src/freedreno/ir3/ir3_sched.c