st/mesa: add mapping for SYSTEM_VALUE_LOCAL_GROUP_SIZE
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 8 Sep 2016 19:35:36 +0000 (21:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Oct 2016 22:18:57 +0000 (00:18 +0200)
gl_LocalGroupSizeARB can be translated into TGSI_SEMANTIC_BLOCK_SIZE
which represents the block size in threads.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index bb88196780e6ee01dfa65e15f779591075f812ac..f8698929d4af29df4bbfc241c4c06d89331818c5 100644 (file)
@@ -5284,6 +5284,8 @@ _mesa_sysval_to_semantic(unsigned sysval)
       return TGSI_SEMANTIC_BLOCK_ID;
    case SYSTEM_VALUE_NUM_WORK_GROUPS:
       return TGSI_SEMANTIC_GRID_SIZE;
+   case SYSTEM_VALUE_LOCAL_GROUP_SIZE:
+      return TGSI_SEMANTIC_BLOCK_SIZE;
 
    /* Unhandled */
    case SYSTEM_VALUE_LOCAL_INVOCATION_INDEX: