gallium/ttn: Convert inputs and outputs to derefs of variables.
authorEric Anholt <eric@anholt.net>
Tue, 18 Sep 2018 22:53:54 +0000 (15:53 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Oct 2018 00:16:43 +0000 (17:16 -0700)
commitdda1ae9b3cb9ea39c9435fba01c6c31a99c4d35e
tree6d57a596152835d5b68e3cad5148ba410bdec659
parentda15a0d88ea1a29968ee624186d895fe5ff0f574
gallium/ttn: Convert inputs and outputs to derefs of variables.

This means that TTN shaders more closely resemble GTN shaders: they have
inputs and outputs as variable derefs, with the variables having their
.driver_location already set up for you.

This will be useful for v3d to do input variable DCE in NIR, which we
can't do when the TTN shaders never have a pre-nir_lower_io stage.

Acked-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/drivers/freedreno/ir3/ir3_shader.c
src/gallium/drivers/v3d/v3d_program.c
src/gallium/drivers/vc4/vc4_program.c