Skip to content

Conversation

@bob80905
Copy link
Collaborator

@bob80905 bob80905 commented Sep 9, 2023

There was a recent spec change on work-graphs that disallows the existence of node + compute attributes on shader declarations. Because of this old behavior, a lot of code worked around the possibility that 2 shader attributes could exist for one declaration. With this old behavior disallowed, we no longer need to account for this possibility. The PR now adds a diagnostic preventing multiple attributes from existing. It will also change all the tests that worked with shaders with multiple shader attributes, and either remove them, or update them so that only one attribute is used.
Fixes #5601

Copy link
Collaborator

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

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

Looks good. We already have a comment suggesting this be done earlier and there are some pending efforts in that direction

@bob80905 bob80905 merged commit 816bc8c into microsoft:staging-sm-6.8 Sep 12, 2023
bob80905 added a commit that referenced this pull request Sep 15, 2023
#5679 removed some code in the CodeGen pass that allowed node + compute, and some tests were updated. In this follow up PR, code is changed in the Sema pass that used to allow validation exemptions for node + compute. The appropriate tests were updated. This is an improvement to #5601 Fixes #5601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants