[Mesa-dev] [PATCH v4 09/14] st/mesa: add mapping for SYSTEM_VALUE_LOCAL_GROUP_SIZE
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Oct 5 18:48:14 UTC 2016
gl_LocalGroupSizeARB can be translated into TGSI_SEMANTIC_BLOCK_SIZE
which represents the block size in threads.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
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 bb88196..f869892 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.10.0
More information about the mesa-dev
mailing list