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

Allow spirv-opt print-all to show pretty IDs #4888

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Aug 9, 2022

Disassembler was called with non-default params, loosing FRIENDLY_NAMES.
This commit changes the call options to allow the spirv-opt to show
friendly names instead of raw-ids. Might be more helpful when reading
the SPIRV-opt output.

Fixes #4882

Signed-off-by: Nathan Gauër brioche@google.com

Disassembler was called with non-default params, loosing FRIENDLY_NAMES.
This commit changes the call options to allow the spirv-opt to show
friendly names instead of raw-ids. Might be more helpful when reading
the SPIRV-opt output.

Fixes KhronosGroup#4882

Signed-off-by: Nathan Gauër <brioche@google.com>
@Keenuts Keenuts requested a review from s-perron August 9, 2022 16:20
@Keenuts
Copy link
Contributor Author

Keenuts commented Aug 9, 2022

Not sure if the raw-ids are useful to some. Maybe this should be a different option?

Copy link
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

I prefer the "friendly" names as well. We can go with it. If someone complains, we can add an option to do both.

@s-perron s-perron merged commit 0ebcdc4 into KhronosGroup:master Aug 9, 2022
@Keenuts Keenuts deleted the fix-4882 branch August 10, 2022 09:09
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.

spirv-opt - allow friendly name output with --print-all
2 participants