Report compute thread-group dimensions in shader refusals and offline listings #3506
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3506"
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 Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-27T11:16:54Z.
Addresses the missing per-program
numthreadsin item 4 of #3502. A total of 24 threads could mean[4, 2, 3]or[2, 4, 3]. The distinction matters when investigating which programs need 2-D thread-ID tiling.The runtime adds the guest program’s declared
[x, y, z]to its existing one-time compute translation warning, including when the refusal comes from the disk cache.victory translate --listprints those dimensions and the runtime’s 16-character container hash on each compute program’s outcome. This lets a reporter match the offline row to the warning. The default batch summary keeps its existing format.Verification
Used generated shader containers on Windows. The refusal fixture declares
[12, 2, 1]and contains an unsupporteds_trap. Each runtime run issued twoDispatch(1, 1, 1)calls.numthreads=[12, 2, 1]numthreads=[12, 2, 1]Both adapters still dropped the two dispatches as expected. The offline row and runtime warning agreed on
hash=1292b6b95e562fcf. A refusal already cached by the parent build also gained the dimensions. A container whose first selected program was a vertex shader did not pick up a later compute program’s dimensions.On eight generated program rows, the Windows SDK validator accepted five and the translator refused three. The two vertex rows retained their original output. Scanning two compute containers together or separately produced the same hash for each container. The new regression exercises both emission and refusal with trailing data after the DXBC record.
The CLI suite passed 19/19. Strict Clippy passed for the CLI and GPU crates. The full local GPU suite gave the same result on the parent and this branch — 229 passed, one ignored, and two descriptor-heap tests failed (
dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views).AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T11:37:28Z.
Tested
329968e9merged onto our test stack (mainplus the unmerged PRs we need on NVIDIA under Wine, including the wave64 stack #2176 → #2711 → #2925 and #2999). One conflict incrates/victory-gpu/src/pipeline.rs, where our tree had split the same "first supported program" read into a helper; resolved by pointing both callers at yournative_program(). Clippy--workspace --all-targets -D warnings, default and--all-features: clean.Census,
victory translate --list --host-lanes 32-32over the full 1.0.2.1 shader pack (Linux, Wine, run on the CPU):hash=<16 hex> numthreads=[x, y, z]: 2,682 rows, 2,682 distinct hashes. No other stage gets the fields, as described.What it answered for #3502 (item 4): of the 50 programs refused on our base, 25 have 2-D groups, all with an x that is not a multiple of 32 (
[16, 16, 1]×15,[8, 16, 1]×6,[8, 8, 1]×4). Pack-wide, 895 of 2,682 compute programs are multi-dimensional and 869 of those have x not a multiple of 32, which sizes the class #2126 is about.Not covered here: the runtime warning's new field was compiled but not observed in a game run.
AI-assisted (Claude); measured on my machine, no game data shared.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.