glsl: Mark gl_ViewportIndex and gl_Layer varyings as flat.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Oct 2015 07:14:13 +0000 (00:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Oct 2015 05:05:08 +0000 (22:05 -0700)
commitb3d19d20f27c9169641051ac6f855481e58623b3
treee765fabe1787e0dfed9dc9ad2b18f977c47dee0d
parentb94cdcdada251bb8e866cb7af0f2ff222b55a918
glsl: Mark gl_ViewportIndex and gl_Layer varyings as flat.

Integer varyings need to be flat qualified - all others were already.
I think we just missed this.  Presumably some hardware passes this via
sideband and ignores attribute interpolation, so no one has noticed.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/glsl/builtin_variables.cpp