shader: lower partial-channel typed and _d16_hi buffer stores #238
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!238
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-238"
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?
@Texbirds on GitHub · 2026-12-01 00:15 UTC · original
Texbirds:pr/typed-buffer-stores→main· +528 −14 · 3 files · 47 commits · closed without mergingPort of Marvisak/VIctory#3377 adapted to FoxHound's raw-view structured buffer lowering.
Summary
buffer_store_format_{x,xy,xyz},buffer_store_format_d16_{x,xy,xyz},buffer_store_format_d16_hi_x) via guarded load-modify-store (bufferLoad+bufferStorewith mask0xFandTYPED_UAV_LOADS).VIEW_INTEGER(self.integer_view(src)?) to use an integer handle(10 | u, 0x405)for integer views and float handle(10 | u, 0x409)for float views so untouched channels are preserved bit-exact (including NaN-shaped integer bit patterns)._d16_hihigh-half extraction forbuffer_store_byte_d16_hi,buffer_store_short_d16_hi, andbuffer_store_format_d16_hi_x, and refuses non-zerosoffset/ base offsets on typed stores.narrowpath untouched.Testing
cargo run --locked -p xtask -- policy(291 files ok)cargo clippy --locked -p victory-shader --tests -- -D warnings(0 warnings)cargo test --locked -p victory-shader -- buffer_store: 4/4 passed (DXIL validation + RTX 3080 Ti & D3D12 WARP execution covering float/uint partial typed stores,d16_hi_x, and dword-straddlingshort_d16_hi)@readmet3xt-lab on GitHub · 2026-12-01 01:34 UTC · original
Thanks. This is on hold, not rejected. What it needs before it can go in:
emit/lower.rshas also changed);Every translator change makes all users translate their shaders again once, so we collect translator PRs into one release; the next one is being tested now, and this would be for the one after. In code and comments, please name title shaders by their 16-digit hash, not by name.
Main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), so a follow-up has to start from the current main, or this branch be rebased onto it.
@readmet3xt-lab on GitHub · 2026-12-01 01:35 UTC · original
One more note: GitHub closed this pull request by itself when main's history was rewritten, and it cannot be reopened. That is not a rejection. The points above still apply; please open a new pull request from the current main when you have them.
Pull request closed