i965: Fix GS push inputs with enhanced layouts.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 14 Nov 2016 23:59:57 +0000 (15:59 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Nov 2016 20:30:25 +0000 (12:30 -0800)
commitc4be6e0b8d91746eccf334b9e20861af4036d06a
tree3b8285b3bb10ec7f93ec73035e9601ffa26c53d7
parent45aee6be027805a6e51f2da7e9b7c954135f549d
i965: Fix GS push inputs with enhanced layouts.

We weren't taking first_component into account when handling GS push
inputs.  We hardly ever push GS inputs, so this was not caught by
existing tests.  When I started using component qualifiers for the
gl_ClipDistance arrays, glsl-1.50-transform-feedback-type-and-size
started catching this.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp