freedreno/ir3: add no-copy-propagate fallback step
authorRob Clark <robclark@freedesktop.org>
Sat, 6 Sep 2014 16:45:17 +0000 (12:45 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 9 Sep 2014 23:42:18 +0000 (19:42 -0400)
commitfd4884e9291cd941c31e9ed7858a42bec2f1eca8
tree85e8b300e6642a2386ceb16bbf253ff8431f386c
parente387fdd2351b87f1614cebdc87a4b2aa3af8c3f6
freedreno/ir3: add no-copy-propagate fallback step

Most of the things the new compiler still has trouble with basically
amount to cp stage removing too many copies.  But without the cp stage,
the shaders the new compiler produces are still better (perf and
correctness) than the old compiler.  So a simple thing to do until I
have more time to work on it is first trying falling back to new
compiler without cp, before finally falling back to old compiler.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler.c
src/gallium/drivers/freedreno/ir3/ir3_compiler.h
src/gallium/drivers/freedreno/ir3/ir3_shader.c