From: Samuel Pitoiset Date: Thu, 8 Sep 2016 19:35:36 +0000 (+0200) Subject: st/mesa: add mapping for SYSTEM_VALUE_LOCAL_GROUP_SIZE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e78bd48b9c87bb67e329d62539a4384c5342d27b;p=mesa.git st/mesa: add mapping for SYSTEM_VALUE_LOCAL_GROUP_SIZE gl_LocalGroupSizeARB can be translated into TGSI_SEMANTIC_BLOCK_SIZE which represents the block size in threads. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index bb88196780e..f8698929d4a 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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: