GPU: keep CPU descriptor slots until recording consumes them #2842

Open
andrewpozdnakov7-jpg wants to merge 2 commits from upstream-pr/2844 into main
andrewpozdnakov7-jpg commented 2026-11-25 22:02:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T22:02:53Z.


CPU-only descriptors are read when the command list records the bind or clear. The global descriptor rings can wrap between creating a view and recording it, so another recording thread can substitute a different texture into the pending command.

Keep a slot reserved until its recording call returns. Render-target binds hold each slot through OMSetRenderTargets. Render-target, depth, and unordered-access clears hold their CPU descriptor through the clear call. If all pooled slots are busy, a short-lived CPU-only heap lets recording continue.

The same two-texture WARP scenario on 5c7489f leaves the left pixel black and clears the right pixel red. With this change the left pixel is red and the right pixel stays blue. Six paired runs across both D3D12 debug settings. The full serial GPU suite passed 242 tests with one ignored in each setting. Strict GPU Clippy in both feature configurations and asset policy passed.

CPU descriptor recording specification · Coordination claim

Please retain my Git author on cherry-pick or rebase. If you fold the fix or test into another commit, please add this trailer.

Co-authored-by: andrewpozdnakov7-jpg [email protected]

AI-assisted with Codex. Synthetic textures on Windows/WARP.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5499938116 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-25T22:02:53Z. --- CPU-only descriptors are read when the command list records the bind or clear. The global descriptor rings can wrap between creating a view and recording it, so another recording thread can substitute a different texture into the pending command. Keep a slot reserved until its recording call returns. Render-target binds hold each slot through `OMSetRenderTargets`. Render-target, depth, and unordered-access clears hold their CPU descriptor through the clear call. If all pooled slots are busy, a short-lived CPU-only heap lets recording continue. The same two-texture WARP scenario on `5c7489f` leaves the left pixel black and clears the right pixel red. With this change the left pixel is red and the right pixel stays blue. Six paired runs across both D3D12 debug settings. The full serial GPU suite passed 242 tests with one ignored in each setting. Strict GPU Clippy in both feature configurations and asset policy passed. [CPU descriptor recording specification](https://microsoft.github.io/DirectX-Specs/d3d/ResourceBinding.html#non-shader-visible-descriptor-heaps) · [Coordination claim](https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7175615994) Please retain my Git author on cherry-pick or rebase. If you fold the fix or test into another commit, please add this trailer. Co-authored-by: andrewpozdnakov7-jpg <[email protected]> AI-assisted with Codex. Synthetic textures on Windows/WARP.
kotekompotek commented 2026-11-25 22:11:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T22:11:39Z.

Review: COMMENTED


Right lifetime fix — a bare CPU handle from the RTV/DSV ring can be recycled by another view before OMSetRenderTargets records it; holding the View guard in scope through the call closes that. The MAX_TARGETS cap also handles >8 target sets gracefully now. Heads-up: this changes the same rtv()/dsv() signatures as #2834 (Option there vs Option here) — whichever lands second needs the other's shape.

<!-- greyfinch-sync:Marvisak/VIctory:review:6065695069 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#pullrequestreview-6065695069). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T22:11:39Z. **Review:** COMMENTED --- Right lifetime fix — a bare CPU handle from the RTV/DSV ring can be recycled by another view before OMSetRenderTargets records it; holding the View guard in scope through the call closes that. The MAX_TARGETS cap also handles >8 target sets gracefully now. Heads-up: this changes the same rtv()/dsv() signatures as #2834 (Option<handle> there vs Option<View> here) — whichever lands second needs the other's shape.
oni-swr commented 2026-11-25 23:06:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T22:27:56Z.


Independent synthetic Windows WARP check for fdc876bb against current main (f3578e38). I confirmed Microsoft Basic Render Driver (vendor 0x1414, device 0x008c, software flag 0x2) with VICTORY_D3D12_WARP=1, diagnostics enabled, and the SDK dxil.dll configured.

  • The two-texture RTV test passed on the PR head and on a clean local merge into current main. After another thread made 1,024 views, the pending clear still changed the left pixel to red and left the right pixel blue.
  • The same test adapted to the old handle API on current main reproduced the bug. Left stayed black and right turned red.
  • I confirmed the overlap with #2834 at 208080e5 using git merge-tree. The combination conflicts in draw.rs, host.rs, and list.rs.

AI-assisted with Codex (gpt-6.2-sol). Claude Code (claude-opus-5-5) prepared the initial WARP guard and comparison worktrees. Synthetic data only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7176395310 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7176395310). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T22:27:56Z. --- <!-- oni-swr warp verification fdc876bb7a570a857d55c1c7399aaa2e018be494 --> Independent synthetic Windows WARP check for `fdc876bb` against current `main` (`f3578e38`). I confirmed Microsoft Basic Render Driver (vendor `0x1414`, device `0x008c`, software flag `0x2`) with `VICTORY_D3D12_WARP=1`, diagnostics enabled, and the SDK `dxil.dll` configured. - The two-texture RTV test passed on the PR head and on a clean local merge into current `main`. After another thread made 1,024 views, the pending clear still changed the left pixel to red and left the right pixel blue. - The same test adapted to the old handle API on current `main` reproduced the bug. Left stayed black and right turned red. - I confirmed the overlap with #2834 at `208080e5` using `git merge-tree`. The combination conflicts in `draw.rs`, `host.rs`, and `list.rs`. AI-assisted with Codex (gpt-6.2-sol). Claude Code (claude-opus-5-5) prepared the initial WARP guard and comparison worktrees. Synthetic data only.
fuzeofficlal commented 2026-11-25 23:06:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T22:34:23Z.


Verified fdc876bb on Windows 11 (RTX 5090 + WARP) against main (f3578e3):

  • cargo xtask policy (190 files ok), cargo clippy --locked -p victory-gpu --all-targets (default & --features diagnostics, 0 warnings).
  • RTX 5090 (--features diagnostics): host::tests 31/31 (including pending_rtv_survives_other_recorders), draw::tests 20/20, list::tests 4/4, queue::tests 5/5 passed.
  • WARP (--features diagnostics, full crate): 242 passed, 0 failed, 1 ignored.
  • Concurrency/lifetime audit looks solid: CpuViews holds its available mutex only around pop/push (never across D3D12 calls), OMSetRenderTargets keeps all slot guards alive until after the D3D12 call returns, and clear paths release slots cleanly on drop.
  • Two small test-coverage nits:
    1. pending_rtv_survives_other_recorders is gated behind #[cfg(feature = "diagnostics")] even though it doesn't use diagnostics-only APIs, so default cargo test skips it.
    2. The for _ in 0..1024 { let _view = host.rtv(...); } loop drops each CpuView immediately on every iteration, exercising serial reuse rather than >1024 live concurrent views hitting the Standalone heap fallback.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7176529393 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7176529393). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T22:34:23Z. --- Verified `fdc876bb` on Windows 11 (RTX 5090 + WARP) against `main` (`f3578e3`): - `cargo xtask policy` (`190 files ok`), `cargo clippy --locked -p victory-gpu --all-targets` (default & `--features diagnostics`, 0 warnings). - RTX 5090 (`--features diagnostics`): `host::tests` 31/31 (including `pending_rtv_survives_other_recorders`), `draw::tests` 20/20, `list::tests` 4/4, `queue::tests` 5/5 passed. - WARP (`--features diagnostics`, full crate): 242 passed, 0 failed, 1 ignored. - Concurrency/lifetime audit looks solid: `CpuViews` holds its `available` mutex only around `pop`/`push` (never across D3D12 calls), `OMSetRenderTargets` keeps all slot guards alive until after the D3D12 call returns, and clear paths release slots cleanly on drop. - Two small test-coverage nits: 1. `pending_rtv_survives_other_recorders` is gated behind `#[cfg(feature = "diagnostics")]` even though it doesn't use diagnostics-only APIs, so default `cargo test` skips it. 2. The `for _ in 0..1024 { let _view = host.rtv(...); }` loop drops each `CpuView` immediately on every iteration, exercising serial reuse rather than >1024 live concurrent views hitting the `Standalone` heap fallback.
andrewpozdnakov7-jpg commented 2026-11-26 02:07:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T02:04:37Z.


I checked the signature overlap with #2834. The verified fork composition includes exact heads fdc876b and 208080e and current main 63bcca43c6a00a758510398fa43096ce7e4f7df0. Both original Git commits are preserved.

The resolution checks the format's attachment permission before reserving a slot. Valid views keep the CpuView guard until the bind or clear has been recorded. The existing depth-bounds fixture uses the guarded handle too.

The two-texture RTV regression, the unsupported attachment format regression, and both depth-bounds tests passed together. Full Windows/WARP GPU diagnostics passed (250 passed, 1 ignored), along with strict GPU Clippy with and without diagnostics and asset policy.

If the combination is taken, please keep the original Git authors. If our change is folded into another commit, please add:

Co-authored-by: andrewpozdnakov7-jpg [email protected]

<!-- greyfinch-sync:Marvisak/VIctory:comment:7180435030 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7180435030). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T02:04:37Z. --- I checked the signature overlap with #2834. The [verified fork composition](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/cc1f95a38238fdfba023901706c091e15cc13f6e) includes exact heads `fdc876b` and `208080e` and current main `63bcca43c6a00a758510398fa43096ce7e4f7df0`. Both original Git commits are preserved. The resolution checks the format's attachment permission before reserving a slot. Valid views keep the `CpuView` guard until the bind or clear has been recorded. The existing depth-bounds fixture uses the guarded handle too. The two-texture RTV regression, the unsupported attachment format regression, and both depth-bounds tests passed together. Full Windows/WARP GPU diagnostics passed (250 passed, 1 ignored), along with strict GPU Clippy with and without diagnostics and asset policy. If the combination is taken, please keep the original Git authors. If our change is folded into another commit, please add: Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
Marvisak commented 2026-11-26 04:06:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T03:25:10Z.


Automated triage for the maintainers.

Merge candidate. Thanks for merging main. render_with_depth_bounds in pipeline/depth_bounds_test.rs now keeps the CpuView from host.dsv(..) alive for the whole function and passes .handle to both calls, and the other rtv/dsv/cpu_view callers in the merged tree keep their guards long enough. The fix itself is unchanged. This still overlaps #2834 in draw.rs/host.rs/list.rs, so whichever lands second needs a small rebase.

CI: passing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181702005 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7181702005). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T03:25:10Z. --- <!-- victory-triage v1 head=48ae0960d1774130d95be1f3ac93322a15301644 verdict=merge-candidate at=2026-11-26T04:23:21Z --> Automated triage for the maintainers. **Merge candidate.** Thanks for merging `main`. `render_with_depth_bounds` in `pipeline/depth_bounds_test.rs` now keeps the `CpuView` from `host.dsv(..)` alive for the whole function and passes `.handle` to both calls, and the other `rtv`/`dsv`/`cpu_view` callers in the merged tree keep their guards long enough. The fix itself is unchanged. This still overlaps #2834 in `draw.rs`/`host.rs`/`list.rs`, so whichever lands second needs a small rebase. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
andrewpozdnakov7-jpg commented 2026-11-26 04:06:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T03:42:22Z.


I merged current main 63bcca4 into this branch in 48ae096. The depth-bounds fixture holds the CpuView while it records both the depth clear and the target bind.

The plain merge failed cargo check -p victory-gpu --tests with two E0308 errors in that fixture. On the updated head, strict GPU Clippy passed in both configurations. The two depth-bounds tests and the recording-race regression pass on Windows/WARP. The actual depth readback for fresh, excluded, included and reset was [0.25, 0.5, 0.25, 0.25]. The full diagnostics suite passed 247 tests with one ignored in both runs. The asset policy passed.

The tested #2834 composition has the same fixture adjustment. Its attachment-guard resolution is available for the merge order the maintainers choose.

Please retain the Git author if you move the fix, or include this trailer if you fold in the patch or regression:

Co-authored-by: andrewpozdnakov7-jpg [email protected]

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181952253 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7181952253). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T03:42:22Z. --- I merged current `main` `63bcca4` into this branch in [48ae096](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/48ae0960d1774130d95be1f3ac93322a15301644). The depth-bounds fixture holds the `CpuView` while it records both the depth clear and the target bind. The plain merge failed `cargo check -p victory-gpu --tests` with two E0308 errors in that fixture. On the updated head, strict GPU Clippy passed in both configurations. The two depth-bounds tests and the recording-race regression pass on Windows/WARP. The actual depth readback for fresh, excluded, included and reset was `[0.25, 0.5, 0.25, 0.25]`. The full diagnostics suite passed 247 tests with one ignored in both runs. The asset policy passed. The [tested #2834 composition](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7180435030) has the same fixture adjustment. Its attachment-guard resolution is available for the merge order the maintainers choose. Please retain the Git author if you move the fix, or include this trailer if you fold in the patch or regression: Co-authored-by: andrewpozdnakov7-jpg <[email protected]> AI-assisted with Codex.
Dukestar69 commented 2026-11-26 09:51:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T09:51:26Z.

Review: APPROVED


Verified on RTX 5090 against origin/main (63bcca4):

  • cargo test -p victory-gpu --lib descriptor:: -- --test-threads=1 --skip dynamic_slots_are_held_until_released: 21/21 passed.
  • cargo test -p victory-gpu --lib draw:: -- --test-threads=1: 20/20 passed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Cleanly keeps CPU descriptor slots alive until command-list recording consumes them.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6071877537 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#pullrequestreview-6071877537). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T09:51:26Z. **Review:** APPROVED --- Verified on RTX 5090 against `origin/main` (`63bcca4`): - `cargo test -p victory-gpu --lib descriptor:: -- --test-threads=1 --skip dynamic_slots_are_held_until_released`: 21/21 passed. - `cargo test -p victory-gpu --lib draw:: -- --test-threads=1`: 20/20 passed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Cleanly keeps CPU descriptor slots alive until command-list recording consumes them. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
fuzeofficlal commented 2026-11-26 10:53:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T10:53:00Z.

Review: APPROVED


Verified 48ae0960 locally on Windows 11 (RTX 5090 and WARP, with VICTORY_D3D12_DEBUG=1):

  • cargo xtask policy and cargo clippy -p victory-gpu --tests -- -D warnings (default and --all-features): clean.
  • host::tests::pending_rtv_survives_other_recorders (--features diagnostics), draw::tests (20/20), pipeline::depth_bounds_test (2/2), and queue::tests (5/5) all passed on RTX 5090, RTX 5090 + VICTORY_D3D12_DEBUG=1, and WARP + VICTORY_D3D12_DEBUG=1.
  • Also checked the >1024 pool-exhaustion standalone heap fallback directly (holding 1,030 live RTVs, recording ClearRenderTargetView with a standalone fallback descriptor, and verifying all 1,024 pooled slots return on drop) under VICTORY_D3D12_DEBUG=1 on both RTX 5090 and WARP.

Lifetimes are held cleanly across every recording site (set_targets, clear_unordered, clear_rtv, clear_dsv, and tests), set_targets properly caps at D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT and only records self.targets/self.depth once the view is created, and clear_unordered acquires cpu_view before taking a dynamic slot. Looks ready to merge.

<!-- greyfinch-sync:Marvisak/VIctory:review:6072838727 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#pullrequestreview-6072838727). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T10:53:00Z. **Review:** APPROVED --- Verified `48ae0960` locally on Windows 11 (RTX 5090 and WARP, with `VICTORY_D3D12_DEBUG=1`): - `cargo xtask policy` and `cargo clippy -p victory-gpu --tests -- -D warnings` (default and `--all-features`): clean. - `host::tests::pending_rtv_survives_other_recorders` (`--features diagnostics`), `draw::tests` (20/20), `pipeline::depth_bounds_test` (2/2), and `queue::tests` (5/5) all passed on RTX 5090, RTX 5090 + `VICTORY_D3D12_DEBUG=1`, and WARP + `VICTORY_D3D12_DEBUG=1`. - Also checked the >1024 pool-exhaustion standalone heap fallback directly (holding 1,030 live RTVs, recording `ClearRenderTargetView` with a standalone fallback descriptor, and verifying all 1,024 pooled slots return on drop) under `VICTORY_D3D12_DEBUG=1` on both RTX 5090 and WARP. Lifetimes are held cleanly across every recording site (`set_targets`, `clear_unordered`, `clear_rtv`, `clear_dsv`, and tests), `set_targets` properly caps at `D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT` and only records `self.targets`/`self.depth` once the view is created, and `clear_unordered` acquires `cpu_view` before taking a dynamic slot. Looks ready to merge.
kilolimaVI commented 2026-11-26 20:55:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-26T20:55:51Z.


NEW-284 verification on current head, Windows 11, toolchain 1.98.1, --test-threads=1. Hardware: AMD Radeon 780M (RDNA3 iGPU). WARP: VICTORY_WARP=1 for victory-shader, VICTORY_D3D12_WARP=1 with --features diagnostics for victory-gpu.

  • cargo test -p victory-shader -p victory-gpu --locked --no-fail-fast: no failures on the 780M; on WARP only the four synthetic_tests failures main 63bcca4 also has (fixed by #2225). victory-gpu on WARP: 247 passed, 0 failed (main: 246).
  • pending_rtv_survives_other_recorders is behind feature = "diagnostics", so the default suite skips it; with --features diagnostics it passes on the 780M and on WARP.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7203216066 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7203216066). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-26T20:55:51Z. --- NEW-284 verification on current head, Windows 11, toolchain 1.98.1, `--test-threads=1`. Hardware: AMD Radeon 780M (RDNA3 iGPU). WARP: `VICTORY_WARP=1` for victory-shader, `VICTORY_D3D12_WARP=1` with `--features diagnostics` for victory-gpu. - `cargo test -p victory-shader -p victory-gpu --locked --no-fail-fast`: no failures on the 780M; on WARP only the four synthetic_tests failures main 63bcca4 also has (fixed by #2225). victory-gpu on WARP: 247 passed, 0 failed (main: 246). - `pending_rtv_survives_other_recorders` is behind `feature = "diagnostics"`, so the default suite skips it; with `--features diagnostics` it passes on the 780M and on WARP. AI-assisted (Claude).
kotekompotek commented 2026-11-27 03:20:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-27T03:20:30Z.


WARP verification of head 48ae0960 (NEW-284 claim: #1633)

Environment: Windows 10 22H2, WARP software adapter (VICTORY_WARP=1 VICTORY_D3D12_WARP=1), rust 1.98.1 msvc. Important local caveat: both adapters on this machine cap at SM 6.2, so SM-6.6 pipeline execution is impossible here for upstream code equally (proven: upstream's own SM-6.6 pipeline tests fail at creation on unmodified main 63bcca43). victory-gpu runs use --features diagnostics — WARP selection is feature-gated there — and --test-threads=1 serial.

victory-gpu: 244 passed / 3 failed / 1 ignored vs baseline 243/3/1 — zero regressions; failure set bit-identical to main.

  • host::tests::pending_rtv_survives_other_recorders: PASS — the real end-to-end scenario (pending RTV surviving a full lap of the old descriptor ring, verified through actual clears and pixel readbacks) executes for real on WARP since it uses plain D3D12 RTV operations, not SM 6.6 pipelines
  • With VICTORY_D3D12_DEBUG=1 (debug layer active): again 244/3/1, new test PASS, zero regressions — matches the author's both-debug-configs claim

Verdict: verification supports — strongest of the three; fully verified end-to-end in both debug configurations.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7208906563 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7208906563). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-27T03:20:30Z. --- **WARP verification of head `48ae0960`** (NEW-284 claim: #1633) Environment: Windows 10 22H2, WARP software adapter (`VICTORY_WARP=1 VICTORY_D3D12_WARP=1`), rust 1.98.1 msvc. Important local caveat: both adapters on this machine cap at **SM 6.2**, so SM-6.6 pipeline execution is impossible here for upstream code equally (proven: upstream's own SM-6.6 pipeline tests fail at creation on unmodified main `63bcca43`). victory-gpu runs use `--features diagnostics` — WARP selection is feature-gated there — and `--test-threads=1` serial. **victory-gpu: 244 passed / 3 failed / 1 ignored vs baseline 243/3/1 — zero regressions; failure set bit-identical to main.** - `host::tests::pending_rtv_survives_other_recorders`: **PASS** — the real end-to-end scenario (pending RTV surviving a full lap of the old descriptor ring, verified through actual clears and pixel readbacks) executes for real on WARP since it uses plain D3D12 RTV operations, not SM 6.6 pipelines - With `VICTORY_D3D12_DEBUG=1` (debug layer active): again 244/3/1, new test PASS, zero regressions — matches the author's both-debug-configs claim Verdict: verification supports — strongest of the three; fully verified end-to-end in both debug configurations.
pes7 commented 2026-11-27 16:37:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pes7 on 2026-11-27T16:37:51Z.


A heads-up from the tested merge set in #3409. This PR still merges cleanly onto main (63bcca4), so there is nothing to rebase now. It does conflict with #450 in draw.rs, host.rs, list.rs and queue.rs (crates/victory-gpu/src/).

Whichever of the two lands second will need a rebase onto the other. #450 is in #3409's set, so this PR is left out of it for now. If you push a version on top of #450 (or say which order you'd prefer), I'll run it through the same build, test and title checks there.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7223485047 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7223485047). Originally posted by [pes7](https://github.com/pes7) on 2026-11-27T16:37:51Z. --- A heads-up from the tested merge set in #3409. This PR still merges cleanly onto `main` (`63bcca4`), so there is nothing to rebase now. It does conflict with #450 in `draw.rs`, `host.rs`, `list.rs` and `queue.rs` (`crates/victory-gpu/src/`). Whichever of the two lands second will need a rebase onto the other. #450 is in #3409's set, so this PR is left out of it for now. If you push a version on top of #450 (or say which order you'd prefer), I'll run it through the same build, test and title checks there.
andrewpozdnakov7-jpg commented 2026-11-27 16:49:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T16:49:19Z.


I resolved the four conflicts in the heads from the merge-set report. The merge commit keeps both original parents, #2844 at 48ae096 and #450 at 6d96d4a, with 63bcca4 in its history. Combined commit 97343c7

The host reserves a CPU descriptor for each live or typed-null RTV until the output-merger bind returns. The typed null occupies its original slot. State transitions and capture track the live textures.

  • The isolated typed-null test kept the live target at slot 1 and read back all 16 expected pixels.
  • The isolated depth-bounds test read [0.25, 0.5, 0.25, 0.25] for the fresh, excluded, included and reset cases.
  • The serial GPU suite passed 249 repository tests with 1 ignored, including the pending-RTV and missing-resource cases. A separate fixture also verified the loaded Agility 1.620.2 and WARP 1.0.22 modules.
  • Strict GPU Clippy passed with default and all features. The asset policy passed.

The combined commit is ready for pes7 to check in the merge set. Maintainers can choose the upstream merge order. Please retain the original Git authors on cherry-pick or rebase. If folding my integration changes into another commit, please use Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

AI-assisted with OpenAI Codex. Synthetic Windows/WARP verification.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7223708527 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7223708527). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T16:49:19Z. --- I resolved the four conflicts in the heads from the merge-set report. The merge commit keeps both original parents, #2844 at `48ae096` and #450 at `6d96d4a`, with `63bcca4` in its history. [Combined commit `97343c7`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/97343c7a78d8aab65529b1d99f6944f5c76769c9) The host reserves a CPU descriptor for each live or typed-null RTV until the output-merger bind returns. The typed null occupies its original slot. State transitions and capture track the live textures. - The isolated typed-null test kept the live target at slot 1 and read back all 16 expected pixels. - The isolated depth-bounds test read `[0.25, 0.5, 0.25, 0.25]` for the fresh, excluded, included and reset cases. - The serial GPU suite passed 249 repository tests with 1 ignored, including the pending-RTV and missing-resource cases. A separate fixture also verified the loaded Agility 1.620.2 and WARP 1.0.22 modules. - Strict GPU Clippy passed with default and all features. The asset policy passed. The combined commit is ready for pes7 to check in the merge set. Maintainers can choose the upstream merge order. Please retain the original Git authors on cherry-pick or rebase. If folding my integration changes into another commit, please use `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`. AI-assisted with OpenAI Codex. Synthetic Windows/WARP verification.
kilolimaVI commented 2026-11-27 17:33:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-27T17:33:25Z.


Hardware run of the combined commit 97343c7 (#2844 + #450), Windows 11, Radeon 780M (RDNA3 iGPU), toolchain 1.98.1:

  • cargo test -p victory-gpu --features diagnostics on the 780M: 249 passed, 0 failed, 1 ignored (the same count as WARP).
  • typed_null_rtv_keeps_the_next_color_slot, pending_rtv_survives_other_recorders, a_missing_resource_has_no_default_view_format: 0/10 failures over 10 runs on the 780M.

Note for anyone re-running: the first two are behind feature = "diagnostics", so a plain cargo test -p victory-gpu on hardware skips them silently.

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7224537296 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2844#issuecomment-7224537296). Originally posted by [kilolimaVI](https://github.com/kilolimaVI) on 2026-11-27T17:33:25Z. --- Hardware run of the combined commit 97343c7 (#2844 + #450), Windows 11, Radeon 780M (RDNA3 iGPU), toolchain 1.98.1: - `cargo test -p victory-gpu --features diagnostics` on the 780M: 249 passed, 0 failed, 1 ignored (the same count as WARP). - `typed_null_rtv_keeps_the_next_color_slot`, `pending_rtv_survives_other_recorders`, `a_missing_resource_has_no_default_view_format`: 0/10 failures over 10 runs on the 780M. Note for anyone re-running: the first two are behind `feature = "diagnostics"`, so a plain `cargo test -p victory-gpu` on hardware skips them silently. AI-assisted (Claude).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2844:upstream-pr/2844'
git switch 'upstream-pr/2844'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2844'
git switch 'upstream-pr/2844'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2844'
git switch 'upstream-pr/2844'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2844'
git switch 'main'
git merge --squash 'upstream-pr/2844'
git switch 'main'
git merge --ff-only 'upstream-pr/2844'
git switch 'main'
git merge 'upstream-pr/2844'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2842
No description provided.