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

Fix SPIR-V remapper not remapping OpExtInst instruction set IDs #2665

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

JustSid
Copy link
Contributor

@JustSid JustSid commented Jun 12, 2021

SPIR-V Remapper doesn't properly remap the instruction set ID, instead it'll just jump over it. This can be easily triggered by a shader that uses debug printf and then running SPIR-V remapper with MAP_FUNCS. This change simply calls the ID function on the instruction set ID as well, then jumps over the known literal.

@greg-lunarg greg-lunarg added the kokoro:run Trigger Google bot runs label Jun 14, 2021
@kokoro-team kokoro-team removed the kokoro:run Trigger Google bot runs label Jun 14, 2021
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. Good catch! Thanks for the fix!

@greg-lunarg greg-lunarg merged commit b848fd6 into KhronosGroup:master Jun 14, 2021
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.

3 participants