st/glsl_to_nir: fix edgeflag passthrough
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 25 Jun 2017 16:13:39 +0000 (18:13 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:27:12 +0000 (12:27 +0200)
commitc2065ed687dd714240928827f620852e37f7dffc
tree2c1ed39c316b15f88eccf77af4e19bea1ee91806
parent8a4cd79d0049f98d1c0aff7a77aca73647e3f647
st/glsl_to_nir: fix edgeflag passthrough

We have to mark the additional shader input as used, otherwise it will
be eliminated, and we have to setup its index correctly.

This is a bit of a hack, but so is everything surrounding edgeflag
passthrough.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_program.c