OSDN Git Service

mesa: Add SYSTEM_VALUE_VERTEX_ID_ZERO_BASE
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Jun 2014 01:08:20 +0000 (18:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Sep 2014 18:04:48 +0000 (11:04 -0700)
commit5964a4f344fa4fd631bcccf67c065b9e66b94108
tree71a8e48ae90d5fec9f492910e1dbb5203420113e
parent9afb5ae8cae4460b87a5c03da3955f2e83434430
mesa: Add SYSTEM_VALUE_VERTEX_ID_ZERO_BASE

There exists hardware, such as i965, that does not implement the OpenGL
semantic for gl_VertexID.  Instead, that hardware does not include the
value of basevertex in the gl_VertexID value.
SYSTEM_VALUE_VERTEX_ID_ZERO_BASE is the system value that represents
this semantic.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp