shader: lower an image store that writes only some channels #88
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!88
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-88"
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?
@AeroUp on GitHub · 2026-11-26 14:00 UTC · original
AeroUp:fix/shader-image-packs→main· +155 −13 · 4 files · 1 commits · closed without mergingA compute store whose
dmaskleaves channels out was refused (an image store of some channels is not supported) or wrote only the first channel. This lowers it: the enabled channels are read from the consecutive data registers and placed at their component index,dx.op.textureStorereceives the real mask so the channels it leaves out keep their value, thed16form packs two f16 channels per register keyed by enabled channel, anddmask 0writes nothing.In this game's world load, ~40 of the compute shaders hit this refusal (the largest group after the FSPX ones).
Hand-assembled GFX10 fixtures cover
dmask 0x5(R+B), its d16 form, and 0;cargo test -p victory-shaderis 227 passed, 0 failed.Not duplicated here: typed buffer stores of some channels/at an offset are #56 (merged), and
s_pack_*/s_bitreplicate_b64_b32are #84 (open). Those two I had also written before noticing; only the image-store rule is in this PR.@LakshanSivakumar on GitHub · 2026-11-26 14:55 UTC · original
Thanks for this, and for the world-load numbers. #94 covers the same refusal and keeps the full-texel write the typed-buffer-store path uses (a raw gapped dmask isn't a valid DXIL store mask), so we're landing that one. Closing as a duplicate.
Pull request closed