Repository navigation
CLI: report all varying descriptor-word opcodes in translation refusals - #672
MichaelSmithAI wants to merge 5 commits into
Conversation
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. All 99 tests in �ictory-shader and integration tests in �ictory pass cleanly. Opt-in --descriptor-failures CLI report cleanly categorizes varying descriptor-word opcodes without overhead on standard translation.
catminou4
left a comment
There was a problem hiding this comment.
Verified locally on macOS 26 arm64, rustc 1.98.1 (aarch64-apple-darwin, rust-toolchain.toml):
cargo test -p victory-shader --lockedat head d61daaa: 82 passed, 0 failedcargo check -p victory --locked: clean — note main does not compile the app crate on macOS at all (the knownhost_resourcecfg issue in victory-gpu, fixed by #235/#523), so I checked with #235's head merged in locally (uncommitted, only for verification). The translate.rs CLI changes compile and the shader side is fully tested.
Approving.
|
Thanks @LAKSHYA-cmd-tech and @catminou4 for running the report and tests on Windows and macOS, and for documenting the extra macOS build dependency. |
Audit: ✅ Looks good — verified & testedReviewed this PR as part of an audit of mergeable PRs.
No issues found. |
Merged by hand: the tracer gained an address-sum cache and a load-address helper since its base; those are kept beside the new descriptor-failure recorder, and test call sites pass the lanes argument the tracker gained. The PR tip is a merge of upstream main; only its feature change is taken. Applied as the net diff of upstream PR Marvisak#672 (head ad434b4).
factory_methods_reject_null_out_without_leaking counts the scheduler's lanes before and after a refused queue creation. Every test that creates a queue through the factory added or removed a lane in that window, so the assertion failed intermittently when the suite ran in parallel - the gate was observed failing once and then passing five times in a row. The scheduler is process-wide, so the tests that create a queue now hold a module lock, as audio's CONTEXT_TESTS does, and the counting test holds the same one. Twelve tests, one helper. Five consecutive runs of the crate are clean, and the full workspace gate passes: both Clippy commands, 544 passed / 11 ignored / 0 failed, policy 175 files. Also in this change: the emit-dump policy test now passes the descriptor-failures argument that translate::run gained (PR Marvisak#672), and .gitignore excludes the local progress report.
|
Automated triage for the maintainers. Closing because this change is already in 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. |
…view-616-111a GPU: narrow host SRVs of streamed textures to resident mips (Marvisak#616)
The 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.