xshader: check a scalar load’s declared stride against the bound view #379
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!379
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/379/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?
@morethansilicon on GitHub · 2026-11-25 00:46 UTC · original
test/376-structured-view-stride→main· +30 −0 · 1 files · 1 commits · closed without mergingAdds regression coverage for the CI guard proposed in #376. A synthetic pixel shader reads byte offset
0x24through UAV slot 1. The test translates that shader and uses the existing declaration parser and comparator to check its output against independently specified view strides. A 16-byte view must match. A 64-byte view must produce the exact 64-versus-16 stride diagnostic.This checks the declarations before GPU execution. In the hardware experiment, WARP and the RTX 4070 Laptop GPU both returned the expected word even with the mismatched view. The test covers that blind spot. The translator’s fallback stride inference remains a separate part of #376.
Validation
mixed_tabletests passed in an isolated Linux build with the unrelated Windows-onlypack_keymodule excluded. Changing the translator to emit 64 bytes caused the new test to fail on the 16-byte control. Restoring the translator made it pass.cargo check --locked -p tombox-xshader --target x86_64-pc-windows-msvc --test mixed_tableand the repository PR gate passed locally.Pull request closed