diff options
author | Eric Anholt <[email protected]> | 2014-09-16 15:58:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-17 14:21:24 -0700 |
commit | 5e90ed79f670cc1c5c12c8b733d4591af0acb5ab (patch) | |
tree | 125bb68594ede6c772cb47a9c3d87f8af2f08414 /src/gallium/drivers/vc4/vc4_program.c | |
parent | b0256fb75f40a4e428366fcc69ebee47970fd01d (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |