aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-12-29 11:14:07 -0800
committerKristian Høgsberg Kristensen <[email protected]>2015-12-29 12:15:01 -0800
commit55ca5b0e74dff2b2f7df57af332b73e2a1b7d081 (patch)
tree95bfdb30d09827cc8903aa4ee9778d246453760e /src/mesa/state_tracker
parent724134f68322087ef88bc590febd0011167ae367 (diff)
mesa/st: Pad out _mesa_sysval_to_semantic for new SYSTEM_VALUE_* enums
GL_ARB_shader_draw_parameters added two new system values. This gets us back to mapping mesa system values to the right TGSI semantics. Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 89ad6cd8c28..5a6be08185f 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -4328,6 +4328,8 @@ const unsigned _mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
TGSI_SEMANTIC_INSTANCEID,
TGSI_SEMANTIC_VERTEXID_NOBASE,
TGSI_SEMANTIC_BASEVERTEX,
+ 0, /* SYSTEM_VALUE_BASE_INSTANCE */
+ 0, /* SYSTEM_VALUE_DRAW_ID */
/* Geometry shader
*/