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@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7642>
This commit is contained in:
Dave Airlie
2020-11-09 09:29:27 +10:00
parent 2dd3fde56d
commit 671c850310

View File

@@ -915,6 +915,7 @@ vtn_get_builtin_location(struct vtn_builder *b,
set_mode_system_value(b, mode); set_mode_system_value(b, mode);
break; break;
case SpvBuiltInWorkgroupSize: case SpvBuiltInWorkgroupSize:
case SpvBuiltInEnqueuedWorkgroupSize:
*location = SYSTEM_VALUE_LOCAL_GROUP_SIZE; *location = SYSTEM_VALUE_LOCAL_GROUP_SIZE;
set_mode_system_value(b, mode); set_mode_system_value(b, mode);
break; break;