glsl: Optionally lower TES gl_PatchVerticesIn to a uniform.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 May 2016 03:21:58 +0000 (20:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2016 19:44:09 +0000 (12:44 -0700)
commit0be210513797d3a0245588df915b9510c201bea4
tree11ba21e87e653a08fee8b2432d50bf588dacf2a6
parentd794072b3e1f27b96aaf2c476fcd5dcc5fd9d445
glsl: Optionally lower TES gl_PatchVerticesIn to a uniform.

i965 has no special hardware for this, so we need to pass this value in
as a uniform (unless the TES is linked against a TCS, in which case the
linker can just replace this with a constant).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/linker.cpp
src/mesa/main/mtypes.h
src/mesa/program/prog_statevars.c
src/mesa/program/prog_statevars.h