lima/gp: Clean up lima_program_optimize_vs_nir() a little
authorConnor Abbott <cwabbott0@gmail.com>
Sat, 27 Jul 2019 17:38:53 +0000 (19:38 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Sun, 28 Jul 2019 21:38:31 +0000 (23:38 +0200)
commitaf95f80a24360ee30cffb35e386e93e94946204e
tree3602288b712db4cd0e56aea50b07e402126204fd
parentd26d8c5617491bb9ade6db77dd9cb3a1c594ec2e
lima/gp: Clean up lima_program_optimize_vs_nir() a little

Remove an unnecessary nir_lower_regs_to_ssa as that should be done by
the state tracker, and add a missing DCE pass after running copy
propagation in order to remove the dead copies. This shouldn't fix
anything but the second part will reduce shader sizes.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/lima_program.c