vc4: Move SF removal to a separate peephole pass

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 4 July 2016 18:33 UTC

The DCE pass is going to change significantly to handle control flow, while we don't really need to change it for the SF handling. We also need to add some more SF peephole optimization for SF updates generated by control flow support.

No change on shader-db.

200b4e4 vc4: Move SF removal to a separate peephole pass.
src/gallium/drivers/vc4/Makefile.sources | 1 +
src/gallium/drivers/vc4/vc4_opt_dead_code.c | 17 -----
src/gallium/drivers/vc4/vc4_opt_peephole_sf.c | 82 +++++++++++++++++++++++++
src/gallium/drivers/vc4/vc4_qir.c | 1 +
src/gallium/drivers/vc4/vc4_qir.h | 1 +
5 files changed, 85 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share