Repository navigation
docs/design.md: shader_profile counts the full corpus at 516 mnemonics, 202 for 99% - #8105
Open
evilclanker9000 wants to merge 1 commit into
Open
evilclanker9000 wants to merge 1 commit into
evilclanker9000 wants to merge 1 commit into
Conversation
…s, 202 for 99% The note quoted an earlier run (551 distinct mnemonics, 204 for 99%) that predated the filter for assembler directives and comments. Recounted over all 26,503 listings of a 1.0.2.1 copy with python -I tools/shader_profile.py <work>/shaders/dxbc/disasm: 516 distinct mnemonics, 202 cover 99% of the 44,360,715 instructions, and the tool reads only instruction lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: EGEN-SHADERPROFILE-RECOUNT
What and why
docs/design.md's "Other prepared pieces" bullet fortools/shader_profile.pyquoted an earlier corpus census(551 distinct mnemonics, 204 accounting for 99% of instructions) and added that those counts predated the filter for
assembler directives and comments. That leaves what the tool reports today unstated. I recounted over the whole
corpus of a local 1.0.2.1 copy and the bullet now gives the current numbers and why directives and comments are not
among them.
Tested
Over the 26,503 listings:
516 distinct mnemonics,202 mnemonics cover 99% of all instructions, 44,360,715instructions in total, and 0 LLVM "invalid instruction encoding" warnings. Counts only, no shader content.
Docs checks with this change:
test_docs_cli_flagsandtest_docs_linksare already red onmainfor items with their own fixes in review(
docs/embedded_shaders.mdspirv-opt flags andruntime/README.md's lost fence in #7879; the RX 9070 GRE link in#7532), none of which this change touches.
No GPU is needed (CPU only), and the corpus was read from my own copy; no game data is in this PR.
Notes
instead of keeping two counts.
AI-assisted.