Skip to content

opt: Add VulkanMemoryModelDeviceScope to trim - #5544

Merged
sudonatalie merged 3 commits into
KhronosGroup:mainfrom
sudonatalie:vulkan-device-scope-cap
Jan 25, 2024
Merged

sudonatalie merged 3 commits into
KhronosGroup:mainfrom
sudonatalie:vulkan-device-scope-cap

Conversation

@sudonatalie

Copy link
Copy Markdown
Collaborator

Add the VulkanMemoryModelDeviceScope capability to the capability trimming pass. According the the spec, "If the Vulkan memory model is declared and any instruction uses Device scope, the VulkanMemoryModelDeviceScope capability must be declared." Since this case, based on the type of an operand, is not covered by the JSON grammar, it is added explicitly.

Add the VulkanMemoryModelDeviceScope capability to the capability
trimming pass. According the the spec, "If the Vulkan memory model is
declared and any instruction uses Device scope, the
VulkanMemoryModelDeviceScope capability must be declared." Since this
case, based on the type of an operand, is not covered by the JSON
grammar, it is added explicitly.

@Keenuts Keenuts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some nits, otherwise LGTM

Comment thread source/opt/ir_context.h Resolved
@sudonatalie
sudonatalie enabled auto-merge (squash) January 25, 2024 18:27

@Keenuts Keenuts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@sudonatalie
sudonatalie merged commit 0045b01 into KhronosGroup:main Jan 25, 2024
@sudonatalie
sudonatalie deleted the vulkan-device-scope-cap branch January 25, 2024 19:24
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.

2 participants