OSDN Git Service

glsl: Optionally lower TCS gl_PatchVerticesIn to a uniform.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 May 2016 03:21:58 +0000 (20:21 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 17 Jun 2016 13:28:44 +0000 (14:28 +0100)
commit286ed3aff064768a816edc6d31ebede8c47b6e52
treec41e1e908026c686b6449797757960e57629b579
parentbaa6ef4ed08ca8eb23a5368ab6f8ceb5e8c9c3d5
glsl: Optionally lower TCS gl_PatchVerticesIn to a uniform.

i965 has no special hardware for this, so the best way to implement
this is to pass it in via a uniform.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 2b867264d2cce59bd65bd3599ff0e3c5439bc9d4)
src/compiler/glsl/builtin_variables.cpp
src/mesa/main/mtypes.h
src/mesa/program/prog_statevars.c
src/mesa/program/prog_statevars.h