GPU: a list that binds no view heap gets ours before the root signature (#2894) #2894

Open
BastienRodz wants to merge 2 commits from upstream-pr/2896 into main
BastienRodz commented 2026-11-25 23:18:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-25T23:18:54Z.


Stacked on #2882. The first commit (00d163a) is #2882; this PR's change is the second (fbf3a5b). Without #2882, a list that binds no heap of either kind would want [usize::MAX, usize::MAX], the lost-state marker #2882 separates SAMPLERS_OURS from. Merge #2882 first.

What's wrong

Every root signature the host makes indexes both heaps directly (pipeline/host.rs). SM 6.6 Dynamic Resources: "SetDescriptorHeaps must be called, passing the corresponding heaps, before a call to SetGraphicsRootSignature or SetComputeRootSignature that uses either CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or SAMPLER_HEAP_DIRECTLY_INDEXED flags."

#1778 binds a sampler heap of ours when the title binds none. Its doc comment says "ours for a kind it binds none of", but the view heap was ours only when shaders read title memory or root views. A list that binds no view heap and runs shaders reading only constants wanted [0, SAMPLERS_OURS]. Its root signature was set with no view heap bound: the debug layer's id 1419, whose sampler half removed the device on NVIDIA in #1754.

What the fix does

  • State::wanted gives a list that binds no view heap ours (MEMORY_HEAP), as it already does for samplers.
  • bind_heaps binds our heap whenever it is the one wanted.
  • root_view and the write-mark table already use that heap when the title binds no view heap, so what is bound now matches what they use.

Tests

New draw::tests::a_list_without_a_view_heap_gets_ours checks [0, 0] → [MEMORY_HEAP, SAMPLERS_OURS] and [0, 0x20] → [MEMORY_HEAP, 0x20], and that a title view heap stays. It needs no device.

  • Without the change it fails: left [0, 18446744073709551615].
  • With it, the test passes. a_list_without_a_sampler_heap_gets_ours and #2882's heaps_are_bound_again_after_the_host_state_is_lost pass too.

The draw::, list::, descriptor::, bindless::, twin:: and memory:: tests were run one per process under Wine and vkd3d-proton, against #2882's head and against this one. The results are identical except for the new test (38 ok, 23 failed with it; the failures are the same Wine host failures on both). cargo clippy --workspace --all-targets --locked -- -D warnings is clean.

Executed evidence from the thread:

  • @wilu222 (RTX 5070, Windows 10, VICTORY_D3D12_DEBUG=1): the debug layer's id 1419 shows on main about 4 s after start, and not at all with #2882 and this PR.
  • @andrewpozdnakov7-jpg's GPU readback (a7867ad, not included): with the WARP redistributable d3d10warp.dll 1.0.22, main leaves the output sentinel in place and this PR reads the value. With the system WARP 10.0.19041 and on GitHub's windows-latest, it reads the value on both trees, so the test does not discriminate everywhere.

Not tested

On Windows hardware or in game. How often a title draws with no view heap bound is not measured.

#411 avoids the requirement another way, by deriving the signature's flags from the shaders. If it lands, this becomes unnecessary.

Fixes #2894

No game data. Found and written with AI assistance (Claude Code), reviewed and run locally.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6615760162 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896). Originally posted by [BastienRodz](https://github.com/BastienRodz) on 2026-11-25T23:18:54Z. --- **Stacked on #2882.** The first commit (`00d163a`) is #2882; this PR's change is the second (`fbf3a5b`). Without #2882, a list that binds no heap of either kind would want `[usize::MAX, usize::MAX]`, the lost-state marker #2882 separates `SAMPLERS_OURS` from. Merge #2882 first. ## What's wrong Every root signature the host makes indexes both heaps directly (`pipeline/host.rs`). SM 6.6 Dynamic Resources: "SetDescriptorHeaps must be called, passing the corresponding heaps, before a call to SetGraphicsRootSignature or SetComputeRootSignature that uses either CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or SAMPLER_HEAP_DIRECTLY_INDEXED flags." #1778 binds a sampler heap of ours when the title binds none. Its doc comment says "ours for a kind it binds none of", but the view heap was ours only when shaders read title memory or root views. A list that binds no view heap and runs shaders reading only constants wanted `[0, SAMPLERS_OURS]`. Its root signature was set with no view heap bound: the debug layer's id 1419, whose sampler half removed the device on NVIDIA in #1754. ## What the fix does - `State::wanted` gives a list that binds no view heap ours (`MEMORY_HEAP`), as it already does for samplers. - `bind_heaps` binds our heap whenever it is the one wanted. - `root_view` and the write-mark table already use that heap when the title binds no view heap, so what is bound now matches what they use. ## Tests New `draw::tests::a_list_without_a_view_heap_gets_ours` checks `[0, 0]` → `[MEMORY_HEAP, SAMPLERS_OURS]` and `[0, 0x20]` → `[MEMORY_HEAP, 0x20]`, and that a title view heap stays. It needs no device. - Without the change it fails: left `[0, 18446744073709551615]`. - With it, the test passes. `a_list_without_a_sampler_heap_gets_ours` and #2882's `heaps_are_bound_again_after_the_host_state_is_lost` pass too. The `draw::`, `list::`, `descriptor::`, `bindless::`, `twin::` and `memory::` tests were run one per process under Wine and vkd3d-proton, against #2882's head and against this one. The results are identical except for the new test (38 ok, 23 failed with it; the failures are the same Wine host failures on both). `cargo clippy --workspace --all-targets --locked -- -D warnings` is clean. Executed evidence from the thread: - @wilu222 (RTX 5070, Windows 10, `VICTORY_D3D12_DEBUG=1`): the debug layer's id 1419 shows on `main` about 4 s after start, and not at all with #2882 and this PR. - @andrewpozdnakov7-jpg's GPU readback (a7867ad, not included): with the WARP redistributable `d3d10warp.dll` 1.0.22, `main` leaves the output sentinel in place and this PR reads the value. With the system WARP 10.0.19041 and on GitHub's `windows-latest`, it reads the value on both trees, so the test does not discriminate everywhere. ## Not tested On Windows hardware or in game. How often a title draws with no view heap bound is not measured. #411 avoids the requirement another way, by deriving the signature's flags from the shaders. If it lands, this becomes unnecessary. Fixes #2894 No game data. Found and written with AI assistance (Claude Code), reviewed and run locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fuzeofficlal commented 2026-11-26 00:03:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T23:32:26Z.

Review: COMMENTED


Verified head fbf3a5be (stacked on #2882) cleanly on top of origin/main (842b0cb7) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + D3D12 WARP + VICTORY_D3D12_DEBUG=1).

Code Review

  • Builds cleanly on #2882's sentinel fix (SAMPLERS_OURS = usize::MAX - 1): changing State::wanted to return MEMORY_HEAP when memory_heap || title[0] == 0 and relaxing bind_heaps to bind our view heap whenever want[0] == MEMORY_HEAP ensures SetDescriptorHeaps precedes SetGraphicsRootSignature/SetComputeRootSignature even when a list binds no view heap, and interacts cleanly with State::cut() / host_state_lost().
  • Minor suggestion (non-blocking): a_list_without_a_view_heap_gets_ours currently asserts State::wanted only; an end-to-end test binding a root signature with VICTORY_D3D12_DEBUG=1 on a list with no title view heap would guard the D3D12 call sequence directly. (Also note merge dependency on #2882.)

Local Verification

  • cargo test --locked -p victory-gpu --features diagnostics draw::tests: 22/22 passed on RTX 5090 with VICTORY_D3D12_DEBUG=1 and 22/22 passed on WARP with VICTORY_D3D12_DEBUG=1.
  • cargo clippy --locked -p victory-gpu --tests -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Looks good.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066454485 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#pullrequestreview-6066454485). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-25T23:32:26Z. **Review:** COMMENTED --- Verified head `fbf3a5be` (stacked on `#2882`) cleanly on top of `origin/main` (`842b0cb7`) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + D3D12 WARP + `VICTORY_D3D12_DEBUG=1`). ### Code Review - Builds cleanly on `#2882`'s sentinel fix (`SAMPLERS_OURS = usize::MAX - 1`): changing `State::wanted` to return `MEMORY_HEAP` when `memory_heap || title[0] == 0` and relaxing `bind_heaps` to bind our view heap whenever `want[0] == MEMORY_HEAP` ensures `SetDescriptorHeaps` precedes `SetGraphicsRootSignature`/`SetComputeRootSignature` even when a list binds no view heap, and interacts cleanly with `State::cut()` / `host_state_lost()`. - Minor suggestion (non-blocking): `a_list_without_a_view_heap_gets_ours` currently asserts `State::wanted` only; an end-to-end test binding a root signature with `VICTORY_D3D12_DEBUG=1` on a list with no title view heap would guard the D3D12 call sequence directly. (Also note merge dependency on `#2882`.) ### Local Verification - `cargo test --locked -p victory-gpu --features diagnostics draw::tests`: **22/22 passed** on RTX 5090 with `VICTORY_D3D12_DEBUG=1` and **22/22 passed** on WARP with `VICTORY_D3D12_DEBUG=1`. - `cargo clippy --locked -p victory-gpu --tests -- -D warnings`: clean. - `cargo xtask policy`: `191 files ok`. Looks good.
kotekompotek commented 2026-11-26 00:03:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T23:35:00Z.

Review: COMMENTED


Correct extension of #2882's logic: a list whose shaders read neither title memory nor root views binds no title view heap, but its signature still declares view indexing — binding ours (MEMORY_HEAP) keeps the D3D12 rule that removed devices on NVIDIA (id 1419). Using want[0] == MEMORY_HEAP for the heap insertion is consistent with the new predicate. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066477797 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#pullrequestreview-6066477797). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T23:35:00Z. **Review:** COMMENTED --- Correct extension of #2882's logic: a list whose shaders read neither title memory nor root views binds no title view heap, but its signature still declares view indexing — binding ours (MEMORY_HEAP) keeps the D3D12 rule that removed devices on NVIDIA (id 1419). Using want[0] == MEMORY_HEAP for the heap insertion is consistent with the new predicate. LGTM.
wilu222 commented 2026-11-26 01:03:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wilu222 on 2026-11-26T00:17:07Z.


Tested on Windows 10 22H2 (19045), NVIDIA RTX 5070 (driver 32.0.16.1742), diagnostics build with VICTORY_D3D12_DEBUG=1 (Agility SDK 1.620.2 beside the exe, as Windows 10 needs it).

  • main 842b0cb: the debug layer logs SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED flag. id=1419 once, about 4 s after start, in a 75 s menu run and again in a 240 s run into the world.
  • main + #2882 + #2896 (fbf3a5b): a 60 s menu run logs no 1419.

Not tested: a world run with the two PRs; AMD.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7178595855 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7178595855). Originally posted by [wilu222](https://github.com/wilu222) on 2026-11-26T00:17:07Z. --- Tested on Windows 10 22H2 (19045), NVIDIA RTX 5070 (driver 32.0.16.1742), diagnostics build with `VICTORY_D3D12_DEBUG=1` (Agility SDK 1.620.2 beside the exe, as Windows 10 needs it). - `main` `842b0cb`: the debug layer logs `SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED flag. id=1419` once, about 4 s after start, in a 75 s menu run and again in a 240 s run into the world. - `main` + #2882 + #2896 (`fbf3a5b`): a 60 s menu run logs no 1419. Not tested: a world run with the two PRs; AMD.
andrewpozdnakov7-jpg commented 2026-11-26 01:04:10 +00:00 (Migrated from github.com)

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


I prepared an end-to-end test for the heap-binding review suggestion in a7867ad, directly on fbf3a5befa3e341987fd931b577578b96e576ca8.

The test records D3D12 compute work using VIctory's heap binding and list-cut state. The root signature declares both directly indexed heaps. The shader copies a word from the fallback view heap to a mapped output buffer. The test covers a fresh list and a new segment, both with and without the title-memory flag. It uses the Windows D3D compiler and synthetic inputs.

  • On 63bcca43c6a00a758510398fa43096ce7e4f7df0 the same fixture leaves the output sentinel in place and fails in all six WARP runs. In a separate run, the original title-memory path before a cut reads the right value.
  • On a7867ade65704cd9c203e2f92583af86d7db6d81 all four dispatches read 0x1234abcd in each of the six runs. The full WARP suite passed with 249 tests and one ignored under both debug settings. Strict GPU Clippy in both configurations and asset policy passed.

The local D3D12 debug interface returned DXGI_ERROR_SDK_COMPONENT_MISSING. This result comes from actual shader readback and complements the debug-layer evidence in the thread.

If you take the test, please preserve its Git author on cherry-pick. If you fold it into your commit, please include Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179009352 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7179009352). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T00:41:04Z. --- I prepared an end-to-end test for the heap-binding review suggestion in [a7867ad](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/a7867ade65704cd9c203e2f92583af86d7db6d81), directly on `fbf3a5befa3e341987fd931b577578b96e576ca8`. The test records D3D12 compute work using VIctory's heap binding and list-cut state. The root signature declares both directly indexed heaps. The shader copies a word from the fallback view heap to a mapped output buffer. The test covers a fresh list and a new segment, both with and without the title-memory flag. It uses the Windows D3D compiler and synthetic inputs. - On `63bcca43c6a00a758510398fa43096ce7e4f7df0` the same fixture leaves the output sentinel in place and fails in all six WARP runs. In a separate run, the original title-memory path before a cut reads the right value. - On `a7867ade65704cd9c203e2f92583af86d7db6d81` all four dispatches read `0x1234abcd` in each of the six runs. The full WARP suite passed with 249 tests and one ignored under both debug settings. Strict GPU Clippy in both configurations and asset policy passed. The local D3D12 debug interface returned `DXGI_ERROR_SDK_COMPONENT_MISSING`. This result comes from actual shader readback and complements the debug-layer evidence in the thread. If you take the test, please preserve its Git author on cherry-pick. If you fold it into your commit, please include `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
BastienRodz commented 2026-11-26 01:04:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-26T00:48:22Z.


Thank you for writing this; an executed readback is the right kind of evidence. Before taking it, I ran it on GitHub's windows-latest (WARP) both ways:

So on that WARP the fallback view reads 0x1234abcd even with no heaps bound, and the test doesn't tell the two apart there, unlike your six runs. Under Wine I couldn't run it either: vkd3d-proton refuses a cs_5_1 PSO with a heap-indexed root signature.

Because of that I'm leaving the PR with its unit test and @wilu222's debug-layer runs (id 1419 on main, none with the two PRs). Which WARP (d3d10warp.dll version) or Windows build did yours fail on? If it fails there reliably, it could still go in with a note on where it discriminates.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179131224 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7179131224). Originally posted by [BastienRodz](https://github.com/BastienRodz) on 2026-11-26T00:48:22Z. --- Thank you for writing this; an executed readback is the right kind of evidence. Before taking it, I ran it on GitHub's `windows-latest` (WARP) both ways: - `main` `63bcca4` plus only your test (`tmp/heaps-e2e-neg`): **passes**. https://github.com/BastienRodz/VIctory/actions/runs/45730883196 - this PR plus your test (`tmp/heaps-e2e-fix`): passes. https://github.com/BastienRodz/VIctory/actions/runs/45730879026 So on that WARP the fallback view reads `0x1234abcd` even with no heaps bound, and the test doesn't tell the two apart there, unlike your six runs. Under Wine I couldn't run it either: vkd3d-proton refuses a cs_5_1 PSO with a heap-indexed root signature. Because of that I'm leaving the PR with its unit test and @wilu222's debug-layer runs (id 1419 on `main`, none with the two PRs). Which WARP (`d3d10warp.dll` version) or Windows build did yours fail on? If it fails there reliably, it could still go in with a note on where it discriminates.
andrewpozdnakov7-jpg commented 2026-11-26 02:06:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T01:05:41Z.


I checked the DLLs actually loaded by the test. My failing baseline used the app-local WARP redistributable, d3d10warp.dll 1.0.22.0.20261027.1, with Agility D3D12Core.dll 1.620.2.0.20261106.5.

I repeated the same binaries with that Agility Core and the system d3d10warp.dll 10.0.19041.5794. This reproduces your result. The original test passes on both trees, and a run that requires device creation and prints each readback confirmed 0x1234abcd in all four cases on each tree. With app-local WARP the main fixture instead leaves the sentinel in place, and the patched fixture reads the expected value.

So the difference I reported is specific to the WARP runtime. Your CI result and the debug-layer evidence are consistent with that.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179425828 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7179425828). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T01:05:41Z. --- I checked the DLLs actually loaded by the test. My failing baseline used the app-local WARP redistributable, `d3d10warp.dll` **1.0.22.0.20261027.1**, with Agility `D3D12Core.dll` **1.620.2.0.20261106.5**. I repeated the same binaries with that Agility Core and the system `d3d10warp.dll` **10.0.19041.5794**. This reproduces your result. The original test passes on both trees, and a run that requires device creation and prints each readback confirmed `0x1234abcd` in all four cases on each tree. With app-local WARP the main fixture instead leaves the sentinel in place, and the patched fixture reads the expected value. So the difference I reported is specific to the WARP runtime. Your CI result and the debug-layer evidence are consistent with that.
BastienRodz commented 2026-11-26 02:06:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-26T01:07:44Z.


Thanks for pinning it down. That explains both results: the readback discriminates on the WARP redistributable (1.0.22) and not on the system WARP or windows-latest.

I've added your result, with the versions, to the PR description as executed evidence next to @wilu222's debug-layer runs. I'm keeping the test itself out, since in most runners it would pass on main too.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179460588 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7179460588). Originally posted by [BastienRodz](https://github.com/BastienRodz) on 2026-11-26T01:07:44Z. --- Thanks for pinning it down. That explains both results: the readback discriminates on the WARP redistributable (1.0.22) and not on the system WARP or `windows-latest`. I've added your result, with the versions, to the PR description as executed evidence next to @wilu222's debug-layer runs. I'm keeping the test itself out, since in most runners it would pass on `main` too.
Marvisak commented 2026-11-26 05:04:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T04:28:50Z.


Automated triage for the maintainers.

Merge candidate. State::wanted (draw.rs) now binds our view heap when the title binds none, as it already does for samplers, so heaps are set before a directly indexed root signature (SM 6.6 rule; the debug-layer runs show error 1419 on main and none here). It is stacked on #2882 and includes its commit, which keeps [MEMORY_HEAP, SAMPLERS_OURS] from matching the lost-state marker; #2882 should be merged first, or this one alone in its place.

CI: passing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182631620 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#issuecomment-7182631620). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T04:28:50Z. --- <!-- victory-triage v1 head=26b753276a93dd54b631d48921435096431e07cf verdict=merge-candidate at=2026-11-26T04:28:44Z --> Automated triage for the maintainers. **Merge candidate.** `State::wanted` (`draw.rs`) now binds our view heap when the title binds none, as it already does for samplers, so heaps are set before a directly indexed root signature (SM 6.6 rule; the debug-layer runs show error 1419 on main and none here). It is stacked on #2882 and includes its commit, which keeps `[MEMORY_HEAP, SAMPLERS_OURS]` from matching the lost-state marker; #2882 should be merged first, or this one alone in its place. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Dukestar69 commented 2026-11-26 06:02:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T05:48:50Z.

Review: APPROVED


Tested locally merged onto origin/main (63bcca4) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP):

  • Diff review: Binding MEMORY_HEAP when title[0] == 0 in State::wanted/bind_heaps and shifting SAMPLERS_OURS to usize::MAX - 1 (so [MEMORY_HEAP, SAMPLERS_OURS] cannot collide with host_state_lost's [usize::MAX; 2] sentinel) cleanly fixes #2894 and ensures heaps are always rebound after a segment cut.
  • cargo test -p victory-gpu draw::tests -- --test-threads=1 (RTX 5090 & WARP): 22 passed, 0 failed on both (including heaps_are_bound_again_after_the_host_state_is_lost and a_list_without_a_view_heap_gets_ours).
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

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

<!-- greyfinch-sync:Marvisak/VIctory:review:6069149046 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2896#pullrequestreview-6069149046). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T05:48:50Z. **Review:** APPROVED --- Tested locally merged onto `origin/main` (`63bcca4`) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP): - Diff review: Binding `MEMORY_HEAP` when `title[0] == 0` in `State::wanted`/`bind_heaps` and shifting `SAMPLERS_OURS` to `usize::MAX - 1` (so `[MEMORY_HEAP, SAMPLERS_OURS]` cannot collide with `host_state_lost`'s `[usize::MAX; 2]` sentinel) cleanly fixes #2894 and ensures heaps are always rebound after a segment cut. - `cargo test -p victory-gpu draw::tests -- --test-threads=1` (RTX 5090 & WARP): 22 passed, 0 failed on both (including `heaps_are_bound_again_after_the_host_state_is_lost` and `a_list_without_a_view_heap_gets_ours`). - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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/2896:upstream-pr/2896'
git switch 'upstream-pr/2896'

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/2896'
git switch 'upstream-pr/2896'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2896'
git switch 'upstream-pr/2896'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2896'
git switch 'main'
git merge --squash 'upstream-pr/2896'
git switch 'main'
git merge --ff-only 'upstream-pr/2896'
git switch 'main'
git merge 'upstream-pr/2896'
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!2894
No description provided.