Repository navigation
[SPIR-V] Add VulkanMemoryModelDeviceScope - #6186
Merged
Natalie Chouinard (sudonatalie) merged 2 commits intoJan 29, 2024
Merged
Conversation
Natalie Chouinard (sudonatalie)
requested review from
Nathan Gauër (Keenuts) and
Cassandra Beckley (cassiebeckley)
January 23, 2024 18:05
Contributor
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
When the Vulkan memory model is declared and any instruction uses the Device scope, then the VulkanMemoryModelDeviceScope capability must also be declared. Fixes microsoft#6066
Natalie Chouinard (sudonatalie)
force-pushed
the
issue-6066
branch
from
January 23, 2024 18:08
bf39978 to
68f3f1a
Compare
Nathan Gauër (Keenuts)
left a comment
Collaborator
There was a problem hiding this comment.
Should this be handled using the capability trimming pass?
We haven't done a bulk cleanup, but now seems this can be handled the following way:
- add the capability support in SPIRV-Tools
- add the capability unconditionally in CapabilityVisitor.cpp:855
Contributor
|
Using the capability trimming pass here seems like a good idea to me as well. |
Collaborator
Author
|
Fair enough, adding it to SPIRV-Tools here: KhronosGroup/SPIRV-Tools#5544 |
Natalie Chouinard (sudonatalie)
marked this pull request as draft
January 25, 2024 16:48
Collaborator
Author
|
Updated and ready for re-review |
Natalie Chouinard (sudonatalie)
marked this pull request as ready for review
January 25, 2024 19:37
Cassandra Beckley (cassiebeckley)
approved these changes
Jan 26, 2024
Nathan Gauër (Keenuts)
approved these changes
Jan 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The VulkanMemoryModelDeviceScope capability is now covered by the SPIRV-Tools capability trimming pass, so it should be added here unconditionally now.
Fixes #6066