diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-09-27 20:18:16 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-09-30 08:40:13 -0400 |
commit | 1409af9fc758b88601ceb02a1abf3cd263a224a2 (patch) | |
tree | 444a55dec91f766104f04bc8e21963db4293bac9 /src/panfrost/midgard/midgard_opt_perspective.c | |
parent | e9571b53e1b2d7dfa8cff5281890d6111c28fb74 (diff) |
pan/midgard: Add distance metric to choose_instruction
We require chosen instructions to be "close", to avoid ballooning
register pressure. This is a kludge that will go away once we have
proper liveness tracking in the scheduler, but for now it prevents a lot
of needless spilling.
v2: Lower threshold to 6 (from 8). Schedule is hurt, but a few shaders
that spilled excessively are fixed.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Derp
Diffstat (limited to 'src/panfrost/midgard/midgard_opt_perspective.c')
0 files changed, 0 insertions, 0 deletions