st/mesa: fix system value to semantic mapping
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 11 Nov 2011 22:18:26 +0000 (23:18 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 14 Nov 2011 17:14:02 +0000 (18:14 +0100)
Broken by addition of SYSTEM_VALUE_VERTEX_ID in
919c53e87a1f6f5322bc1f1486bb3e6b954b00d5.

src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c

index 17b611783a3599eeff4369006377ed36414a03e0..cbb1e51f68a5aafdae343825a2b0cc8a3042f477 100644 (file)
@@ -4015,6 +4015,7 @@ struct st_translate {
 /** Map Mesa's SYSTEM_VALUE_x to TGSI_SEMANTIC_x */
 static unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
    TGSI_SEMANTIC_FACE,
+   TGSI_SEMANTIC_VERTEXID,
    TGSI_SEMANTIC_INSTANCEID
 };
 
index 27ebb1ad7f4d2319b0a81f8ac63ba60dd6acc5f8..ac615343ae3b0d443b07e6d01e22aae226745bb5 100644 (file)
@@ -108,6 +108,7 @@ struct st_translate {
 /** Map Mesa's SYSTEM_VALUE_x to TGSI_SEMANTIC_x */
 static unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = {
    TGSI_SEMANTIC_FACE,
+   TGSI_SEMANTIC_VERTEXID,
    TGSI_SEMANTIC_INSTANCEID
 };