From e78bd48b9c87bb67e329d62539a4384c5342d27b Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 8 Sep 2016 21:35:36 +0200 Subject: [PATCH] st/mesa: add mapping for SYSTEM_VALUE_LOCAL_GROUP_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 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: -- 2.30.2