CLI: report all varying descriptor-word opcodes in translation refusals #672
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!672
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/672/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MichaelSmithAI on GitHub · 2026-11-24 06:31 UTC · original
MichaelSmithAI:feature/computed-descriptor-report→main· +194 −14 · 4 files · 5 commits · closed without mergingThe census in #566 leaves 38 shaders at the same refusal when a descriptor read from the first lane depends on computed vector registers. This opt-in CLI report lets testers see which operations account for those shaders before choosing another compiler change. It incorporates the review on the contributor's fork.
The prerequisite #566 has merged into main. The Files changed tab now shows the diagnostic, its regression test, the CLI option and the README usage.
Run
victory translate <local-path> --descriptor-failureson the same inputs as the census. Each row gives a program count, the first varying word's defining opcode, the opcode or source category for every varying word in descriptor order, and the source class of every descriptor word. The scan deduplicates inputs and records at most one refusal per program. The output contains aggregate categories only. This mode stops after resource tracking.A source-built shader computes two separate descriptor words with OR and XOR. The regression checks both opcode positions, the six other word sources and the same refusal with diagnostics disabled. After merging main at
ffe310e, the Linux shader library suite passed 97 tests with one ignored. Windows-target workspace Clippy passed with all targets and features using the pure Rust BLAKE3 backend. The asset policy passed for 154 files. The actual 38-program distribution awaits a tester with the local inputs.AI assistance was used for implementation and verification.
@MichaelSmithAI on GitHub · 2026-11-24 08:58 UTC · original
Thanks @LAKSHYA-cmd-tech and @catminou4 for running the report and tests on Windows and macOS, and for documenting the extra macOS build dependency.
@ErRusso on GitHub · 2026-11-24 11:23 UTC · original
Audit: ✅ Looks good — verified & tested
Reviewed this PR as part of an audit of mergeable PRs.
apps/victory/src/translate.rs+crates/victory-shader/src/resource.rs(+183/-5). Adds--descriptor-failuresflag tovictory translatethat aggregatesDescriptorFailurerecords by opcode, varying opcode sequence, and descriptor-word source category — containing no program code, registers, or addresses. Useful for identifying shaders blocked by computed per-lane descriptors without the noise of full translation failure output.main.cargo test -p victory-shader -- resource::tests→ 30/30 passed including the newcomputed_descriptor_failure_reports_only_opcode_and_word_sourceswhich validates that syntheticv_or_b32/v_xor_b32instructions produce correctly categorizedDescriptorFailureentries.DescriptorFailurestruct deliberately leaks no code bytes, register numbers, or addresses — just&'static strcategories.descriptor_word_source()maps each word to one of"constant","input","phi","scalar-load","global-load","buffer-load","lds-read","computed". Good.count | opcode | varying_opcodes | sources— clean and useful for triaging.No issues found.
@Marvisak on GitHub · 2026-11-25 00:27 UTC · original
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.the same opt-in CLI breakdown of 'a descriptor read from the first lane of computed VGPRs' (small argument changes, README section); that class went 38 -> 0 on the title's programs in main, so the report has nothing to show.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed