[Mesa-stable] [PATCH 08/13] mesa: Add STATE_BASE_VERTEX

Ian Romanick idr at freedesktop.org
Fri Jun 20 18:00:58 PDT 2014


From: Ian Romanick <ian.d.romanick at intel.com>

This is a "uniform" that represents the basevertex value passed to
glDrawElementsBaseVertex and related functions.  For hardware that does
not implement a hardware register for SYSTEM_VALUE_BASE_VERTEX, passing
the value via a uniform is the only way to implement the functionality.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: "10.2" <mesa-stable at lists.freedesktop.org>
---
 src/mesa/program/prog_statevars.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/program/prog_statevars.h b/src/mesa/program/prog_statevars.h
index 23a9f48..47f7d53 100644
--- a/src/mesa/program/prog_statevars.h
+++ b/src/mesa/program/prog_statevars.h
@@ -130,6 +130,7 @@ typedef enum gl_state_index_ {
    STATE_FB_WPOS_Y_TRANSFORM,   /**< (1, 0, -1, height) if a FBO is bound, (-1, height, 1, 0) otherwise */
    STATE_ROT_MATRIX_0,          /**< ATI_envmap_bumpmap, rot matrix row 0 */
    STATE_ROT_MATRIX_1,          /**< ATI_envmap_bumpmap, rot matrix row 1 */
+   STATE_BASE_VERTEX,           /**< Uniform to implement gl_BaseVertex */
    STATE_INTERNAL_DRIVER	/* first available state index for drivers (must be last) */
 } gl_state_index;
 
-- 
1.8.1.4



More information about the mesa-stable mailing list