OSDN Git Service

vc4: Make SF be a flag on the QIR instructions.
authorEric Anholt <eric@anholt.net>
Thu, 12 Feb 2015 22:17:21 +0000 (14:17 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 13 Feb 2015 00:33:16 +0000 (16:33 -0800)
commit3f1e1287fd960966eee8b12a75c8a8f62e11cdd2
tree9415b611ac95698b0d383b6565ac36a34178d358
parent4413861dd835cf8b9143f3032b670635bd217bf6
vc4: Make SF be a flag on the QIR instructions.

Right now the places that used to emit a mov.sf just put the SF on the
previous instruction when it generated the source of the SF value.  Even
without optimization to push the sf up further (and kill thus potentially
kill more MOVs), this gets us:

total uniforms in shared programs: 13455 -> 13457 (0.01%)
uniforms in affected programs:     3 -> 5 (66.67%)
total instructions in shared programs: 40296 -> 40198 (-0.24%)
instructions in affected programs:     12595 -> 12497 (-0.78%)
src/gallium/drivers/vc4/vc4_opt_algebraic.c
src/gallium/drivers/vc4/vc4_opt_cse.c
src/gallium/drivers/vc4/vc4_opt_dead_code.c
src/gallium/drivers/vc4/vc4_opt_vpm_writes.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/drivers/vc4/vc4_qpu_emit.c