vc4: Fix inverted priority of instructions for QPU scheduling.
authorEric Anholt <eric@anholt.net>
Wed, 3 Dec 2014 00:31:29 +0000 (16:31 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 5 Dec 2014 18:43:14 +0000 (10:43 -0800)
commit042962df2d058c4dd4e45b7deaa3b4519141758e
treeaa90563a96c5fec696ee809836f9b02704177179
parentbd4057a5d74fd12222801c55ee98346af9c1095d
vc4: Fix inverted priority of instructions for QPU scheduling.

We were scheduling TLB operations as early as possible, and texture setup
as late as possible.  When I introduced prioritization, I visually
inspected that an independent operation got moved above texture results
collection, which tricked me into thinking it was working (but it was just
because texture setup was being pushed late).

total instructions in shared programs: 57651 -> 57486 (-0.29%)
instructions in affected programs:     18532 -> 18367 (-0.89%)
src/gallium/drivers/vc4/vc4_qpu_schedule.c