GPU: retain immutable march UAVs for replayable command lists #64

Closed
github-bot wants to merge 1 commit from github-bot/gh-64 into main AGit
Owner

@⁠steven-seagull27 on GitHub · 2026-11-27 05:30 UTC · original
steven-seagull27:fix/immutable-march-views-main → main · +272 −55 · 4 files · 1 commits · closed without merging

This follows #58. The march clamp assigns UAV descriptors from a 4,096-slot ring. A closed command list can still be submitted or replayed after that ring wraps. With two lists, request 4,097 reused the first list's exact CPU and GPU descriptor handles on both the RTX 5080 and built-in WARP. The control stopped before overwriting the outstanding descriptor. Reproduction and prior results

Each host texture now creates one immutable mip-zero march UAV on first use. The command list retains that exact host texture and its descriptor heap until reset. The regression submits two interleaved command lists and replays the earlier one after resetting the other.

On the original patch 717edbf9, the RTX 5080 and Windows' built-in WARP each matched 256/256 RGBA16F components across four generated 4 × 4 images. On the rebased commit fabedd22, I verified the descriptor creation, binding and resource-retention functions still match the tested versions. The native regression is byte-identical and the asset-policy check passed.

cargo test --locked -p victory-gpu --lib --features diagnostics resource::march_view_tests::march_views_are_immutable_across_interleaved_lists_and_reset -- --exact --nocapture

AI-assisted. All textures and command lists in the regression are generated.

**@⁠steven-seagull27** on GitHub · 2026-11-27 05:30 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/64) `steven-seagull27:fix/immutable-march-views-main` → `main` · +272 −55 · 4 files · 1 commits · closed without merging This follows #58. The march clamp assigns UAV descriptors from a 4,096-slot ring. A closed command list can still be submitted or replayed after that ring wraps. With two lists, request 4,097 reused the first list's exact CPU and GPU descriptor handles on both the RTX 5080 and built-in WARP. The control stopped before overwriting the outstanding descriptor. [Reproduction and prior results](https://git.gtahub.st/github/DoubleGhosty--cool_fox/pulls/58) Each host texture now creates one immutable mip-zero march UAV on first use. The command list retains that exact host texture and its descriptor heap until reset. The regression submits two interleaved command lists and replays the earlier one after resetting the other. On the [original patch `717edbf9`](https://github.com/steven-seagull27/cool_fox/commit/717edbf90a2169b872b0899f0cb928c839aca8df), the RTX 5080 and Windows' built-in WARP each matched **256/256 RGBA16F components** across four generated 4 × 4 images. On the rebased commit `fabedd22`, I verified the descriptor creation, binding and resource-retention functions still match the tested versions. The native regression is byte-identical and the asset-policy check passed. ```powershell cargo test --locked -p victory-gpu --lib --features diagnostics resource::march_view_tests::march_views_are_immutable_across_interleaved_lists_and_reset -- --exact --nocapture ``` AI-assisted. All textures and command lists in the regression are generated.
(cherry picked from commit 717edbf90a2169b872b0899f0cb928c839aca8df)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 06:08:16 +00:00
github-bot closed this pull request 2026-11-27 08:56:28 +00:00
Author
Owner

@⁠DoubleGhosty on GitHub · 2026-11-27 08:53 UTC · original

Cherry-picked into main as 2511e6f0. Thanks!

**@⁠DoubleGhosty** on GitHub · 2026-11-27 08:53 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/64#issuecomment-7214047632) Cherry-picked into main as 2511e6f0. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.