[Mesa-dev] [PATCH] mesa/st: Pad out _mesa_sysval_to_semantic for new SYSTEM_VALUE_* enums

Kristian Høgsberg krh at bitplanet.net
Tue Dec 29 11:17:44 PST 2015


From: Kristian Høgsberg Kristensen <krh at bitplanet.net>

GL_ARB_shader_draw_parameters added two new system values.  This gets us
back to mapping mesa system values to the right TGSI semantics.

Cc: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 89ad6cd..5a6be08 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
     */
-- 
2.5.0



More information about the mesa-dev mailing list