Read PSV0 wave lane bounds when selecting the guest wave size #65
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!65
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/65/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?
@philip-roy-jones on GitHub · 2026-11-21 22:16 UTC · original
fix/psv-wave-size-metadata→main· +127 −6 · 13 files · 1 commits · closed without mergingLibrary / area:
tombox-xshadershader metadataExports changed (exports.txt rows): None
Source of the behaviour: Microsoft's PSVRuntimeInfo0 layout, DXC writer for compute shaders and HLSL wave size range specification.
On
0fc7295, extraction discarded both lane bounds. A syntheticds_appendprogram without a wave64-specific instruction passed the translator's wave32-only check even when PSV0 required 64 lanes. The reader now retains the bounds,xshaderreports them, and the existing width check selects among the permitted RDNA2 widths. When both widths are allowed, the instruction-based decision still applies.I compiled empty compute shaders with DXC 1.8.2502.11 and used their unmodified PSV0 chunks with the same synthetic guest ISA. DXC and the updated reader agreed.
WaveSize(64)WaveSize(32)WaveSize(32,64)orWaveSize(32,64,64)WaveSize(64,128)Verification
cargo test --locked -p tombox-xshader --no-fail-faston Windows/WARP gave 134 passed, 0 failed, 12 ignored on0fc7295and 136 passed, 0 failed, 12 ignored on1d6b5a4.cargo test --locked -p tombox-xshader --test syntheticpassed 9/9 upstream and 11/11 on the branch. A translation-only replay of the new regression failed on upstream because fixed 64 was accepted, and passed on this branch.cargo check --locked -p d3d12_xs --testspassed with the updated fixture.In a temporary merge with #56, I retained this branch's metadata check and #56's refusal message at their one overlapping guard. The two PSV regressions and all four focused GDS tests passed together. A separate clean merge with #62 at
d5f5881passed both PSV regressions and its lane-numbering test. That PR's new lane operations can useex.guest_wave_size(&insns)?for the same metadata-aware decision.cargo test -p tombox-xshaderpassesNo game or console files and no binaries included
No fake success; anything not possible is left
missingwith a notePull request closed