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

Only require Shader capability if unavoidable #2141

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Aug 30, 2023

Requiring the Shader capability for any module that uses llvm.bitreverse is problematic for OpenCL execution environments. Only require the Shader capability if we cannot use the BitInstructions capability.

Fixes #2139

Requiring the `Shader` capability for any module that uses
`llvm.bitreverse` is problematic for OpenCL execution environments.
Only require the `Shader` capability if we cannot use the
`BitInstructions` capability.

Fixes KhronosGroup#2139
@MrSidims MrSidims merged commit 8701279 into KhronosGroup:main Aug 31, 2023
8 checks passed
@svenvh svenvh deleted the bitrev-caps branch August 31, 2023 14:12
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.

For OpBitReverse, Shader capability is used even if SPV_KHR_bit_instructions is enabled
2 participants