Skip to content
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

Avoid duplicate BuiltIn variables for ray tracing matrices (fix #2921) #2955

Merged

Conversation

andfau-arm
Copy link
Contributor

Fixes an issue where invalid SPIR-V was generated when gl_ObjectToWorldEXT and gl_ObjectToWorld3x4EXT, or gl_WorldToObjectEXT and gl_WorldToObject3x4EXT, were used in the same shader. The SPIR-V specification requires that there be at most one OpVariable decorated with a given BuiltIn value.

@CLAassistant
Copy link

CLAassistant commented May 30, 2022

CLA assistant check
All committers have signed the CLA.

…osGroup#2921)

Fixes an issue where invalid SPIR-V was generated when
gl_ObjectToWorldEXT and gl_ObjectToWorld3x4EXT, or
gl_WorldToObjectEXT and gl_WorldToObject3x4EXT, were used in the same
shader. The SPIR-V specification requires that there be at most one
OpVariable decorated with a given BuiltIn value.
@andfau-arm andfau-arm force-pushed the duplicate-builtin-clash branch from 258607e to 6cdae46 Compare June 1, 2022 08:43
@andfau-arm
Copy link
Contributor Author

I think the CI failure is because there isn't a hashing function for spv::BuiltIn. I've changed it to cast to uint32_t first, hopefully that fixes it.

@greg-lunarg greg-lunarg added the kokoro:run Trigger Google bot runs label Jun 1, 2022
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Jun 1, 2022
Copy link
Contributor

@greg-lunarg greg-lunarg left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix.

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.

4 participants