Skip to content

MSL: Fix generation of the WorkgroupSize built-in.#2491

Merged
HansKristian-Work merged 1 commit into
KhronosGroup:mainfrom
cdavis5e:msl-workgroup-size-fix
Jun 11, 2025
Merged

MSL: Fix generation of the WorkgroupSize built-in.#2491
HansKristian-Work merged 1 commit into
KhronosGroup:mainfrom
cdavis5e:msl-workgroup-size-fix

Conversation

@cdavis5e

Copy link
Copy Markdown
Contributor

Use any existing gl_WorkGroupSize when adding an implicit WorkgroupSize. Make a constant using the LocalSize or LocalSizeId when those execution modes are set. Only when none is present do we add the WorkgroupSize as an input. Of course, since the GLCompute model requires one of the three of constant WorkgroupSize, LocalSize, or LocalSizeId to be present, this shouldn't happen in practice, but I thought I'd handle it properly anyway.

Use any existing `gl_WorkGroupSize` when adding an implicit
`WorkgroupSize`. Make a constant using the `LocalSize` or `LocalSizeId`
when those execution modes are set. Only when none is present do we add
the `WorkgroupSize` as an input. Of course, since the `GLCompute` model
requires one of the three of constant `WorkgroupSize`, `LocalSize`, or
`LocalSizeId` to be present, this shouldn't happen in practice, but I
thought I'd handle it properly anyway.
@HansKristian-Work HansKristian-Work merged commit 464c8ab into KhronosGroup:main Jun 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants