-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the CullPrimitiveEXT VUID's #2475
Fix the CullPrimitiveEXT VUID's #2475
Conversation
0ce6b9b
to
370033f
Compare
370033f
to
35c1e28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I don't think this is correct. When CullPrimitiveEXT is part of a Block, it must be a plain bool, but if it's declared as a standalone OpVariable, i.e. not in a Block, it must be an array of booleans, so I think this VUID needs to cover both cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not correct I think as stated above.
GLSL spec has folowing definition
Then the array validation rule will applly to all the other builtins like PrimitiveId , Layer etc? Because currently none of the other builtins have such a validation rule |
We will then probably need new VUID's for each of the above builtins. Kindly review these three new VUID's for CullPrimitiveEXT, i can replicate it for all the other builtins:
|
35c1e28
to
e6e4c04
Compare
@HansKristian-Work can you review the new VUID's. Based on how they look, I will add VUID's for other builtins defined in gl_MeshPerPrimitiveEXT |
e6e4c04
to
95ed035
Compare
8ec7cfe
to
5f463a6
Compare
@HansKristian-Work i have updated VUID's for all the relevant builtins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some micronits but should be fine.
8cd14f1
to
2e0f3dd
Compare
@dgkoch @HansKristian-Work kindly approve the changes if everything looks fine |
be used as part of a structure or as a array of boolean. Corresponding VUID changes are also needed for PrimitiveID, Layer, ViewPortIndex, PrimitiveShadingRateEXT
Update the validation rules. Your comments look good. I will add it for rest of the builtins Co-authored-by: Hans-Kristian Arntzen <[email protected]>
…storage qualifier Update the VUID's for builtins Layer, PrimitiveId, PrimitiveShadingRateKHR, ViewPortIndex similar to CullPrimitiveEXT as they can be part of a block or can be individual arrays for MeshEXT execution model
2e0f3dd
to
8f41092
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll still need to be signed off in the working group though.
LGTM again. Signing off as requested on the maint call. |
The CI failure is not this branch's doing so merging this. |
Fixes bug https://gitlab.khronos.org/vulkan/vulkan/-/issues/3296