Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport to 17] [SPIR-V 1.2] SPIRVReader: Support LocalSizeHintId #2921

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Dec 11, 2024

If there is no OpExecutionMode .. LocalSizeHint in the input, see if there is an OpExecutionModeId .. LocalSizeHintId and take the value for the work_group_size_hint metadata from the referenced constants instead.

Once LocalSizeHintId has been translated to LLVM IR, it is indistinguishable from a (non-ID) LocalSizeHint execution mode.

(cherry picked from commit 420f5dd)

…hronosGroup#2907)

If there is no `OpExecutionMode .. LocalSizeHint` in the input, see if
there is an `OpExecutionModeId .. LocalSizeHintId` and take the value
for the `work_group_size_hint` metadata from the referenced constants
instead.

Once `LocalSizeHintId` has been translated to LLVM IR, it is
indistinguishable from a (non-ID) `LocalSizeHint` execution mode.

(cherry picked from commit 420f5dd)
@svenvh svenvh merged commit 17092f0 into KhronosGroup:llvm_release_170 Dec 16, 2024
9 checks passed
@svenvh svenvh deleted the backport-to-17 branch December 16, 2024 10:44
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.

1 participant