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

opt: add PhysicalStorageBufferAddresses to trim #5476

Merged

Conversation

Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Nov 14, 2023

The PhysicalStorageBufferAddresses capability can now be trimmed. From the spec, it seems any instruction enabled by this required some operand to have the PhysicalStorageBuffer storage class. This means checking the storage class is enough.

Now, because the pass uses the grammar, we don't need to add any new logic.\

Fixes #5425

The PhysicalStorageBufferAddresses capability can now be
trimmed. From the spec, it seems any instruction enabled by this
required some operand to have the PhysicalStorageBuffer storage class.
This means checking the storage class is enough.

Now, because the pass uses the grammar, we don't need to add any
new logic.

Signed-off-by: Nathan Gauër <[email protected]>
@s-perron s-perron merged commit f43c464 into KhronosGroup:main Nov 14, 2023
4 checks passed
sajjadmirzanv pushed a commit to sajjadmirzanv/SPIRV-Tools that referenced this pull request Nov 15, 2023
The PhysicalStorageBufferAddresses capability can now be
trimmed. From the spec, it seems any instruction enabled by this
required some operand to have the PhysicalStorageBuffer storage class.
This means checking the storage class is enough.

Now, because the pass uses the grammar, we don't need to add any
new logic.

Signed-off-by: Nathan Gauër <[email protected]>
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.

Strip unused capabilities (i.e. Float64, PhysicalStorageBuffer)
3 participants