st/nir: Trim out unused VS input variables.
authorEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 00:12:12 +0000 (17:12 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 22 Aug 2016 19:11:05 +0000 (12:11 -0700)
commitd08f09c24e68c048f79500abe7f89e94960b55d2
tree9909ff8779b063a2ffef74b162bf9631b70f1dbf
parent3ef1853f7d75eb5235dc1a425374b67c42a4eb65
st/nir: Trim out unused VS input variables.

If we're going to skip setting up vertex input data in them, we should
probably not leave them as vertex inputs with a driver_location that
happens to alias to something else.

Fixes a regression in glsl-mat-attribute on vc4 when enabling GTN.

v2: Change commit message shortlog, lower the new globals away before
    handing off to the driver.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_glsl_to_nir.cpp