shader: say which descriptor dword changed after loading and how #131
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/131"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T18:02:56Z.
A refusal split, like #118: it names the form instead of lowering it.
Why. "a descriptor changed after loading" is the largest unclaimed shader refusal in the newest tester log (#123, commit
182c14f): 34 unique compute shaders. The message doesn't say what changed, so there is nothing safe to lower yet. The V# layout (RDNA2 ISA §8.1.5) allows several candidate forms (a base-address offset, a changed num_records, a merged control word), and each needs different host support.What. In
resource.rs, the classifier (Tracer::changed) takes thes_loadof the first loaded dword as the reference. It finds the first dword that is no longer that load's next one and names what made it, after the same prefix so existing tallies still group them:a descriptor changed after loading: dword Nfollowed byis a constant;comes from another load or place in it;masked or merged (s_and, s_or, s_bfi...);added to (s_add, s_sub...);shifted, multiplied or extracted (s_lshl, s_mul, s_bfe...);chosen by a select or a join;is a program input;computed otherwise.The strings are static (
concat!over N = 0..7). There is no panic path: without a reference or a mismatch it falls back to "dword 0 comes from another load". Nothing new is lowered.Tests.
a_descriptor_changed_after_loading_says_which_dword_and_howcheckss_mov s10, 64→ "dword 2 is a constant", ands_add/s_addcons[8:9]→ "dword 0 added to". It fails on main.resource.rstests that asserted the old text. The old exact text appears nowhere else incrates/, Windows-only tests included.victory-shader and victory-gpu tests (arm64), Windows clippy and
cargo xtask policypass. Once a tester log on this commit names the dominant form, I'll lower that one.Update: added a victory-gpu host-path test,
pipeline::changed_descriptor_tests::the_host_refuses_a_descriptor_changed_after_loading_naming_the_dword. It builds the container from the title's compute pieces (compute_container), translates it with the host's own options (native::shaders::translate), and checks the refusal text. On main it fails with the old generic message. Rebased on current main.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:56:17Z.
Review: APPROVED
Reviewed and tested together with the other open PRs on main (macOS x86_64 tests for shader, hle, loader and gpu, the setup shell tests, and Windows clippy). Thanks!