Mesa (master): spirv/cl: add enqueued workgroup size.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 16 19:55:35 UTC 2020


Module: Mesa
Branch: master
Commit: 671c850310523bba93f1ff18739ca69a62f8c63a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=671c850310523bba93f1ff18739ca69a62f8c63a

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Nov  9 09:29:27 2020 +1000

spirv/cl: add enqueued workgroup size.

Unless the non uniform work group extension is supported, this
just aliases workgroupsize, so just do that for now.

Fixes:
CL CTS basic enqueued_local_size

Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7642>

---

 src/compiler/spirv/vtn_variables.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 168d0e5156f..a5f74679c16 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -915,6 +915,7 @@ vtn_get_builtin_location(struct vtn_builder *b,
       set_mode_system_value(b, mode);
       break;
    case SpvBuiltInWorkgroupSize:
+   case SpvBuiltInEnqueuedWorkgroupSize:
       *location = SYSTEM_VALUE_LOCAL_GROUP_SIZE;
       set_mode_system_value(b, mode);
       break;



More information about the mesa-commit mailing list