Skip to content

[SPIRV] Fix declaration order of values in decorations#7672

Merged
s-perron merged 1 commit intomicrosoft:mainfrom
s-perron:smoke-test
Jul 29, 2025
Merged

[SPIRV] Fix declaration order of values in decorations#7672
s-perron merged 1 commit intomicrosoft:mainfrom
s-perron:smoke-test

Conversation

@s-perron
Copy link
Collaborator

@s-perron s-perron commented Jul 28, 2025

The value that decorates another value must be declared before the value
it decorates. See KhronosGroup/SPIRV-Tools#6227.

The value that decorates another value, but be declared before the value
it decorates. See KhronosGroup/SPIRV-Tools#6227.

// Output the decorations for the type first. This will create other values
// that are on the decorations, and they must appear before the type.
emitDecorationsForNodePayloadArrayTypes(npaType, id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose this was moved for the same reason? But no test change seem related to the node payload?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it is. Some tests failed validation with the latest spirv-tools without this. This change will be tested once we update spirv-tools. I want it to be a separate change in case there is a regression. It will be easier to identify what caused the change.

@s-perron s-perron merged commit 143da22 into microsoft:main Jul 29, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Jul 29, 2025
@s-perron s-perron deleted the smoke-test branch July 29, 2025 18:14
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.

2 participants