From 5e90ed79f670cc1c5c12c8b733d4591af0acb5ab Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 16 Sep 2014 15:58:32 -0700 Subject: vc4: Add support for reordering the uniform stream after optimization. This allows for introducing dead code eliminating of uniforms, copy propagation of uniforms, and instruction rescheduling between instructions that both read uniforms. --- src/gallium/drivers/vc4/vc4_program.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/vc4/vc4_program.c') diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 539fede50a1..c6603767b5e 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1440,6 +1440,7 @@ vc4_shader_tgsi_to_qir(struct vc4_compiled_shader *shader, enum qstage stage, fprintf(stderr, "QIR:\n"); qir_dump(c); } + qir_reorder_uniforms(c); vc4_generate_code(c); if (vc4_debug & VC4_DEBUG_SHADERDB) { -- cgit v1.2.3