Shaders: image stores of some channels, to mip 0, and to integer views #1953
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1955"
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 RaghavVijayanand on 2026-11-25T01:45:13Z.
Three image-store refusals in the translator. Each is its own commit, and each builds and passes tests.
image_store_mip: a level that is a constant 0 stores to the view's own level. A non-zero or computed level is still refused, because it would need a view per level.textureStore.i32. Integer views with no atomic still get a float store; that is documented.Tests: the new
emit/image_store_tests.rs(6 tests) covers:Each program is validated with dxil.dll and run on the default hardware adapter and WARP. Each fix was broken on purpose to confirm a test fails. The test host gains
View::Uint4TextureUav(RGBA32_UINT) beside main'sUint2TextureUav. The integer-store detection also treats main's 64-bit atomics (R32G32_UINT) as proof of an integer view.This PR and #1956 (cube/MSAA) both touch
image()inemit/lower.rs, so merging both needs a small manual merge.Rebased onto current main (
940d32f). On this machine, 5 tests fail on main itself, with or without this change:descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views, the twostride_tests::a_heap_buffer_read_*tests, andsynthetic_tests::gathers_at_a_level_match_the_hardware. Everything else passes, and clippy passes with-D warnings, with and without--all-features.Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T01:45:26Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T02:19:03Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-shader/src/emit/lower.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge candidate) was for an older state ofmain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:14:09Z.
Review: APPROVED
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,cargo test -p victory-shader --locked.144 passed / 0 failed / 2 ignored. Image stores of some channels, to mip 0, and to integer views — partial-channel store lowering.
Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T04:23:40Z.
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
6abd8ff.cargo test --workspace --locked --no-fail-fast-> all green: 0 passed, 0 ignored, 0 failed.Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:00:47Z.
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
6abd8ff.cargo test --workspace --locked --no-fail-fast-> 702 passed, 5 failed, 10 ignored. The failures are the same 5 pre-existing NVIDIA 1M-view-heap-cap failures (also on main; see my reports on #2030 and #1940). Nothing introduced by this PR fails on this machine.Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T11:05:21Z.
Offline measurement on a retail dump
Result: no count change against
main.I merged head
6abd8ff6ontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.
No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by RaghavVijayanand on 2026-11-26T10:42:39Z.
Rebased onto
main63bcca4. Two adjustments for whatmaingained since: the test harness's new zeroing of texture UAVs passes the texture's format tofootprint_as(which this branch made format-aware), and the handle cachesmainadded (entry block, join block) are keyed on both property dwords, as in #1953. Each commit builds. On an RTX 5060 Laptop: the image store/atomic tests pass (7), clippy is clean, and the rest ofvictory-shaderpasses except the three NVIDIA 1M-view-heap-cap tests that fail on unmodifiedmainthere too (stride_testsx2,gathers_at_a_level_match_the_hardware).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.