Skip to content

[SPIR-V] Add VulkanMemoryModelDeviceScope - #6186

Merged
Natalie Chouinard (sudonatalie) merged 2 commits into
microsoft:mainfrom
sudonatalie:issue-6066
Jan 29, 2024
Merged

Natalie Chouinard (sudonatalie) merged 2 commits into
microsoft:mainfrom
sudonatalie:issue-6066

Conversation

@sudonatalie

@sudonatalie Natalie Chouinard (sudonatalie) commented Jan 23, 2024 •

Copy link
Copy Markdown
Collaborator

The VulkanMemoryModelDeviceScope capability is now covered by the SPIRV-Tools capability trimming pass, so it should be added here unconditionally now.

Fixes #6066

@github-actions

github-actions Bot commented Jan 23, 2024 •

Copy link
Copy Markdown
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

@Keenuts Nathan Gauër (Keenuts) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@cassiebeckley

Copy link
Copy Markdown
Contributor

Using the capability trimming pass here seems like a good idea to me as well.

@sudonatalie

Copy link
Copy Markdown
Collaborator Author

Fair enough, adding it to SPIRV-Tools here: KhronosGroup/SPIRV-Tools#5544
and I'll update this PR after it lands.

@sudonatalie
Natalie Chouinard (sudonatalie) marked this pull request as draft January 25, 2024 16:48
@sudonatalie

Copy link
Copy Markdown
Collaborator Author

Updated and ready for re-review

@sudonatalie
Natalie Chouinard (sudonatalie) marked this pull request as ready for review January 25, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Missing VulkanMemoryModelDeviceScopeKHR Capability when using wave intrinsics

3 participants