v3d: Use nir_remove_unused_io_vars to handle binner shader output DCE
authorEric Anholt <eric@anholt.net>
Wed, 26 Sep 2018 16:22:51 +0000 (09:22 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Oct 2018 17:46:52 +0000 (10:46 -0700)
commitcc54e1acf91dfefb17a7a43166aff9d0d8532879
treeba7c8b77f184e70a747349f127cef39949f90c12
parentc152c79d5ee59cc8b3936e5b31f8b4203327bc2e
v3d: Use nir_remove_unused_io_vars to handle binner shader output DCE

We were doing this late after nir_lower_io, but we can just reuse the core
code.  By doing it at this stage, we won't even set up the VS attributes
as inputs, reducing our VPM size.
src/broadcom/compiler/v3d_nir_lower_io.c
src/broadcom/compiler/vir.c
src/gallium/drivers/v3d/v3d_program.c