GPU: a texture the host had no memory for is made again later, not refused for the rest of the run #3274

Open
lerapeurdu62280-debug wants to merge 3 commits from upstream-pr/3276 into main
lerapeurdu62280-debug commented 2026-11-26 15:27:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T15:27:05Z.


What and why

Resource::host stores any failed make_texture as Some(None) ("the host refused it"), and nothing ever clears that: evict only resets Some(Some(t)). So a single transient E_OUTOFMEMORY from CreateCommittedResource (VRAM full while the world streams, mostly on 8-12 GB cards) leaves that title texture without a host texture for the rest of the run, even after evictions have made room.

Change (resource.rs, plus a few lines in descriptor/host.rs and shadow.rs):

  • make_texture notes, in a thread-local, whether its last way (the committed creation) was refused with E_OUTOFMEMORY. Earlier ways (placed, castable) fall through to it, so only the final outcome counts.
  • Resource::host does not store Some(None) for such a refusal. It sets a per-resource refused_until and returns None. Within the wait it returns None at once, with no driver call; the next ask after it tries again.
  • The wait doubles with each refusal for want of memory in a row (500 ms, 1, 2, 4, then 8 s at most) and starts again from 500 ms once the texture is made. The refusal is logged once per texture, when its run of refusals starts (review by @AurumCarlos).
  • Any other refusal (invalid description, etc.) is stored as Some(None) exactly as before.
  • Descriptor side: HostHeap::mirror already makes a draw-read texture slot again when it holds nothing (needs_remake). A slot that shaders only read through the heap is made when its read is marked, and each read is marked once: when mirror leaves a texture slot null for want of memory, it now calls shadow::forget_read, so the next read after the wait is marked and the slot is made (review by @yumaste). Slots left null for other refusals are not re-armed.

This is the same defect a contributor reported on the avatarmanz fork (avatarmanz/VIctory-7900XTX#256, fixed there in avatarmanz/VIctory-7900XTX#293). Here the fix is smaller, thanks to needs_remake. It complements #3266 (backoff on placement-heap growth after OOM): that PR avoids repeating the heap call, this one gives the texture itself a second chance. #1272 (mip-drop on OOM) takes a different, larger route and conflicts with main.

Tested (Windows 10, RX 6600 (RDNA 2, Adrenalin 32.0.21045), Rust 1.98.1)

  • New resource::tests::a_texture_refused_for_want_of_memory_is_made_later: E_OUTOFMEMORY injected into the committed creation (a #[cfg(test)] thread-local; whether the injection was consumed tells whether the host was asked). No driver call within a wait, the second wait twice as long, the texture made after it; E_INVALIDARG stays refused with no further call. RETRY_MS is 100 ms in tests (0.6 s for the test). 5/5 runs. It fails with the retry disabled, and with the doubling disabled.
  • cargo test -p victory-gpu --locked: 229 passed, 3 failed. The 3 (compute_view_marks_rebind_after_depth_twin_conversion, a_texture_written_in_one_format_reads_in_another_through_a_placed_view, depth_bounds_control_a_title_draw) fail the same way on main (63bcca4) on this card.
  • cargo clippy -p victory-gpu --all-targets -D warnings, default and --all-features: clean.
  • Not run in the game, and no real VRAM exhaustion: the failure is injected.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:5512775311 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T15:27:05Z. --- ### What and why `Resource::host` stores any failed `make_texture` as `Some(None)` ("the host refused it"), and nothing ever clears that: `evict` only resets `Some(Some(t))`. So a single transient `E_OUTOFMEMORY` from `CreateCommittedResource` (VRAM full while the world streams, mostly on 8-12 GB cards) leaves that title texture without a host texture **for the rest of the run**, even after evictions have made room. Change (`resource.rs`, plus a few lines in `descriptor/host.rs` and `shadow.rs`): - `make_texture` notes, in a thread-local, whether its last way (the committed creation) was refused with `E_OUTOFMEMORY`. Earlier ways (placed, castable) fall through to it, so only the final outcome counts. - `Resource::host` does not store `Some(None)` for such a refusal. It sets a per-resource `refused_until` and returns `None`. Within the wait it returns `None` at once, with no driver call; the next ask after it tries again. - The wait doubles with each refusal for want of memory in a row (500 ms, 1, 2, 4, then 8 s at most) and starts again from 500 ms once the texture is made. The refusal is logged once per texture, when its run of refusals starts (review by @AurumCarlos). - Any other refusal (invalid description, etc.) is stored as `Some(None)` exactly as before. - Descriptor side: `HostHeap::mirror` already makes a draw-read texture slot again when it holds nothing (`needs_remake`). A slot that shaders only read through the heap is made when its read is marked, and each read is marked once: when `mirror` leaves a texture slot null for want of memory, it now calls `shadow::forget_read`, so the next read after the wait is marked and the slot is made (review by @yumaste). Slots left null for other refusals are not re-armed. This is the same defect a contributor reported on the avatarmanz fork (avatarmanz/VIctory-7900XTX#256, fixed there in avatarmanz/VIctory-7900XTX#293). Here the fix is smaller, thanks to `needs_remake`. It complements #3266 (backoff on placement-heap growth after OOM): that PR avoids repeating the heap call, this one gives the texture itself a second chance. #1272 (mip-drop on OOM) takes a different, larger route and conflicts with `main`. ### Tested (Windows 10, RX 6600 (RDNA 2, Adrenalin 32.0.21045), Rust 1.98.1) - New `resource::tests::a_texture_refused_for_want_of_memory_is_made_later`: `E_OUTOFMEMORY` injected into the committed creation (a `#[cfg(test)]` thread-local; whether the injection was consumed tells whether the host was asked). No driver call within a wait, the second wait twice as long, the texture made after it; `E_INVALIDARG` stays refused with no further call. `RETRY_MS` is 100 ms in tests (0.6 s for the test). 5/5 runs. **It fails with the retry disabled, and with the doubling disabled.** - `cargo test -p victory-gpu --locked`: 229 passed, 3 failed. The 3 (`compute_view_marks_rebind_after_depth_twin_conversion`, `a_texture_written_in_one_format_reads_in_another_through_a_placed_view`, `depth_bounds_control_a_title_draw`) fail the same way on `main` (63bcca4) on this card. - `cargo clippy -p victory-gpu --all-targets -D warnings`, default and `--all-features`: clean. - Not run in the game, and no real VRAM exhaustion: the failure is injected. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
AurumCarlos commented 2026-11-26 15:33:07 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by AurumCarlos on 2026-11-26T15:33:07Z.

Review: COMMENTED


Good fix: an OOM refusal no longer poisons the resource, and other refusals stay Some(None). The flag is cleared before each attempt, so it can't leak between calls.

One thing to bound: a texture that keeps failing is retried every 500 ms for as long as VRAM stays full, and each retry is a CreateCommittedResource plus a warn!("no host texture"). With a few hundred such textures while the world streams, that's a lot of driver calls and log lines per second, exactly when the card is already struggling. Doubling RETRY_MS per consecutive OOM (capped at a few seconds), and/or logging the OOM case once per resource, would keep the second chance without the churn.

Nit: the test sleeps 2 × 600 ms; injecting the clock (or a test-only RETRY_MS) would keep the suite fast.

<!-- greyfinch-sync:Marvisak/VIctory:review:6076824740 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#pullrequestreview-6076824740). Originally posted by [AurumCarlos](https://github.com/AurumCarlos) on 2026-11-26T15:33:07Z. **Review:** COMMENTED --- Good fix: an OOM refusal no longer poisons the resource, and other refusals stay `Some(None)`. The flag is cleared before each attempt, so it can't leak between calls. One thing to bound: a texture that keeps failing is retried every 500 ms for as long as VRAM stays full, and each retry is a `CreateCommittedResource` plus a `warn!("no host texture")`. With a few hundred such textures while the world streams, that's a lot of driver calls and log lines per second, exactly when the card is already struggling. Doubling `RETRY_MS` per consecutive OOM (capped at a few seconds), and/or logging the OOM case once per resource, would keep the second chance without the churn. Nit: the test sleeps 2 × 600 ms; injecting the clock (or a test-only `RETRY_MS`) would keep the suite fast.
Dukestar69 commented 2026-11-26 15:52:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T15:52:18Z.

Review: APPROVED


Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090 + WARP):

  • Distinguishing E_OUTOFMEMORY in make_texture so Resource::host retries with capped exponential backoff (500 ms up to 8 s) instead of permanently caching Some(None) — while still permanently caching non-OOM refusals like E_INVALIDARG — is clean and well-tested.
  • cargo test -p victory-gpu --lib resource:: -- --test-threads=1 (RTX 5090): 19 passed, 0 failed (including a_texture_refused_for_want_of_memory_is_made_later).
  • VICTORY_FORCE_WARP=1 cargo test -p victory-gpu --lib resource::tests::a_texture_refused_for_want_of_memory_is_made_later -- --test-threads=1 (WARP): 1 passed, 0 failed.
  • 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:6077071334 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#pullrequestreview-6077071334). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T15:52:18Z. **Review:** APPROVED --- Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090 + WARP): - Distinguishing `E_OUTOFMEMORY` in `make_texture` so `Resource::host` retries with capped exponential backoff (`500 ms` up to `8 s`) instead of permanently caching `Some(None)` — while still permanently caching non-OOM refusals like `E_INVALIDARG` — is clean and well-tested. - `cargo test -p victory-gpu --lib resource:: -- --test-threads=1` (RTX 5090): 19 passed, 0 failed (including `a_texture_refused_for_want_of_memory_is_made_later`). - `VICTORY_FORCE_WARP=1 cargo test -p victory-gpu --lib resource::tests::a_texture_refused_for_want_of_memory_is_made_later -- --test-threads=1` (WARP): 1 passed, 0 failed. - `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).
yumaste commented 2026-11-26 16:00:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by yumaste on 2026-11-26T16:00:21Z.


I reproduced a gap in the descriptor retry path on this head (698f889), using WARP and the PR's existing FAIL_NEXT hook. If a slot is only read bindlessly, the first read can consume its only notification while the texture is still in backoff.

  1. Mirror an SRV for a synthetic committed D32 texture into a shader-visible heap and inject E_OUTOFMEMORY. The slot is null.
  2. Post a read mark and run shadow::take_reads followed by descriptor::make_read during the cooldown. The first read is seen, but the slot still has no resource.
  3. Expire refused_until, then post another read mark for the same slot. take_reads returns []; the slot stays null. Calling host_heap.mirror(slot, handle, true) explicitly at that point does create the resource and populate the slot.

reads_since clears the mapped marks but intentionally keeps the deduplication state. The null-slot path calls forget_read for a deferred placed view, but not for this already-attempted SRV. Could the failed bindless slots be rearmed or queued for a retry when the OOM wait ends? Keeping this tied to the transient OOM state would preserve the permanent-refusal behavior for other HRESULTs. The regression above does not require a game or real VRAM exhaustion.

I then re-ran the synthetic test with an explicit forget_read(slot) and one collection pass to clear the mark, before simulating the next GPU read. That read was reported and the slot recovered through make_read, without the explicit table read.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7197050560 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7197050560). Originally posted by [yumaste](https://github.com/yumaste) on 2026-11-26T16:00:21Z. --- I reproduced a gap in the descriptor retry path on this head (`698f889`), using WARP and the PR's existing `FAIL_NEXT` hook. If a slot is only read bindlessly, the first read can consume its only notification while the texture is still in backoff. 1. Mirror an SRV for a synthetic committed D32 texture into a shader-visible heap and inject `E_OUTOFMEMORY`. The slot is null. 2. Post a read mark and run `shadow::take_reads` followed by `descriptor::make_read` during the cooldown. The first read is seen, but the slot still has no resource. 3. Expire `refused_until`, then post another read mark for the same slot. `take_reads` returns `[]`; the slot stays null. Calling `host_heap.mirror(slot, handle, true)` explicitly at that point does create the resource and populate the slot. `reads_since` clears the mapped marks but intentionally keeps the deduplication state. The null-slot path calls `forget_read` for a deferred placed view, but not for this already-attempted SRV. Could the failed bindless slots be rearmed or queued for a retry when the OOM wait ends? Keeping this tied to the transient OOM state would preserve the permanent-refusal behavior for other HRESULTs. The regression above does not require a game or real VRAM exhaustion. I then re-ran the synthetic test with an explicit forget_read(slot) and one collection pass to clear the mark, before simulating the next GPU read. That read was reported and the slot recovered through make_read, without the explicit table read.
lerapeurdu62280-debug commented 2026-11-26 16:05:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T15:41:19Z.


Thanks @AurumCarlos, all three taken in 698f889:

  • The wait now doubles with each refusal for want of memory in a row (500 ms, 1 s, 2 s, 4 s, then 8 s at most), and goes back to 500 ms once the texture is made.
  • The OOM case is logged once per texture, when its run of refusals starts. make_texture no longer warns for OOM itself; every other refusal warns as before.
  • RETRY_MS is 100 ms under cfg(test), so the test takes 0.6 s instead of 1.4 s. It now also checks that the second wait is twice as long; it fails with the doubling disabled.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7196614348 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7196614348). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T15:41:19Z. --- Thanks @AurumCarlos, all three taken in 698f889: - The wait now doubles with each refusal for want of memory in a row (500 ms, 1 s, 2 s, 4 s, then 8 s at most), and goes back to 500 ms once the texture is made. - The OOM case is logged once per texture, when its run of refusals starts. `make_texture` no longer warns for OOM itself; every other refusal warns as before. - `RETRY_MS` is 100 ms under `cfg(test)`, so the test takes 0.6 s instead of 1.4 s. It now also checks that the second wait is twice as long; it fails with the doubling disabled.
oni-swr commented 2026-11-26 16:05:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-26T15:44:41Z.


WARP verification report (test report only, no code changes)

  • PR head: 34fb1dc8
  • main: 63bcca43 (control); WARP software adapter forced with VICTORY_WARP=1 VICTORY_D3D12_WARP=1, --features diagnostics, d3d10warp.dll 10.0.26100.9818; dxil.dll 1.8.2502.11 (Windows Kit 10.0.26100.0, via VICTORY_DXIL).
  • Each test run in its own process (--exact), -j 4, synthetic tests only, no game data.
  • New test resource::tests::a_texture_refused_for_want_of_memory_is_made_later: passes on the PR (1 passed, 1.25 s).
  • Control on main: the test needs the failure-injection hook (FAIL_NEXT/RETRY_MS) from this PR, so I added only that hook to main and left out the retry logic. The test fails on main at the first "made later" assertion (E_OUTOFMEMORY: the texture stays refused after the wait). That is a main-plus-hook control, not unmodified main.
  • victory-gpu lib suite: PR 247 passed, 0 failed, 1 ignored; main 246 passed, 0 failed, 1 ignored. No failures on either, so none shared with main.
  • Not tested: physical GPU.

AI use: Claude Code (Claude Sonnet 5.5)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7196690361 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7196690361). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T15:44:41Z. --- WARP verification report (test report only, no code changes) - PR head: `34fb1dc8` - main: `63bcca43` (control); WARP software adapter forced with `VICTORY_WARP=1 VICTORY_D3D12_WARP=1`, `--features diagnostics`, d3d10warp.dll 10.0.26100.9818; dxil.dll 1.8.2502.11 (Windows Kit 10.0.26100.0, via `VICTORY_DXIL`). - Each test run in its own process (`--exact`), `-j 4`, synthetic tests only, no game data. - New test `resource::tests::a_texture_refused_for_want_of_memory_is_made_later`: **passes on the PR** (1 passed, 1.25 s). - Control on main: the test needs the failure-injection hook (`FAIL_NEXT`/`RETRY_MS`) from this PR, so I added only that hook to main and left out the retry logic. The test **fails on main** at the first "made later" assertion (`E_OUTOFMEMORY`: the texture stays refused after the wait). That is a main-plus-hook control, not unmodified main. - `victory-gpu` lib suite: PR 247 passed, 0 failed, 1 ignored; main 246 passed, 0 failed, 1 ignored. No failures on either, so none shared with main. - Not tested: physical GPU. AI use: Claude Code (Claude Sonnet 5.5)
lerapeurdu62280-debug commented 2026-11-26 16:05:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T15:50:52Z.


Thanks @oni-swr. Note that the report is on the first commit (34fb1dc). The review follow-up, 698f889 (the doubling wait, one warning per texture, RETRY_MS = 100 ms under cfg(test)), came after it; the test there takes about 0.6 s, and the CI check passes on it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7196832241 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7196832241). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T15:50:52Z. --- Thanks @oni-swr. Note that the report is on the first commit (34fb1dc). The review follow-up, 698f889 (the doubling wait, one warning per texture, `RETRY_MS` = 100 ms under `cfg(test)`), came after it; the test there takes about 0.6 s, and the CI check passes on it.
lerapeurdu62280-debug commented 2026-11-26 16:15:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T16:15:37Z.


Thanks @yumaste, confirmed and fixed in ddc621b.

Resource::host now notes, per thread, when it gives nothing for want of memory: either refused now, or within the wait that follows. When HostHeap::mirror leaves a texture slot null for that reason, it calls crate::shadow::forget_read(index), as it already does for a placed view it leaves for later. The slot's next read is then marked again, make_read mirrors it (needs_remake sees nothing held), and the texture is made once the wait is over. Slots left null for any other refusal are not re-armed, so the permanent-refusal path is unchanged.

New test a_slot_left_null_for_want_of_memory_is_read_again: an SRV of a committed D32 texture is mirrored with E_OUTOFMEMORY injected. The slot is null and re-armed (shadow::forgotten, a cfg(test) accessor), and after the wait a mirror makes it. With E_INVALIDARG the slot is null and not re-armed. The test fails without the forget_read, and passes on an RX 6600 and on WARP, with the D3D12 debug layer on.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7197402513 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7197402513). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T16:15:37Z. --- Thanks @yumaste, confirmed and fixed in ddc621b. `Resource::host` now notes, per thread, when it gives nothing for want of memory: either refused now, or within the wait that follows. When `HostHeap::mirror` leaves a texture slot null for that reason, it calls `crate::shadow::forget_read(index)`, as it already does for a placed view it leaves for later. The slot's next read is then marked again, `make_read` mirrors it (`needs_remake` sees nothing held), and the texture is made once the wait is over. Slots left null for any other refusal are not re-armed, so the permanent-refusal path is unchanged. New test `a_slot_left_null_for_want_of_memory_is_read_again`: an SRV of a committed D32 texture is mirrored with `E_OUTOFMEMORY` injected. The slot is null and re-armed (`shadow::forgotten`, a `cfg(test)` accessor), and after the wait a mirror makes it. With `E_INVALIDARG` the slot is null and not re-armed. The test fails without the `forget_read`, and passes on an RX 6600 and on WARP, with the D3D12 debug layer on.
upipibi commented 2026-11-26 17:51:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-26T17:51:28Z.


Verified #3276 at ddc621b904 on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11, rustc 1.98.1. main 63bcca43 as control for the shared tests (the two new tests are added by this PR, so they do not exist on main and ran on the PR head only), each tree in its own target dir, --locked, --test-threads=1. Synthetic tests only.

test main PR
resource:: x3 18 passed, 0 failed (x3) 20 passed, 0 failed (x3)
a_texture_refused_for_want_of_memory_is_made_later x5 not on main (0 run) 5/5 pass
a_slot_left_null_for_want_of_memory_is_read_again x5 not on main (0 run) 5/5 pass
cargo test -p victory-gpu --lib 229 passed, 2 failed, 1 ignored 231 passed, 2 failed, 1 ignored

The 2 failures are the same on both trees: descriptor::host::tests::dynamic_slots_are_held_until_released and memory::tests::lists_share_a_table_and_copies_keep_their_views (NVIDIA's 1,000,000-view heap cap; #3178, #1744). No nvlddmkm resets.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7199771974 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7199771974). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T17:51:28Z. --- Verified #3276 at ddc621b904b56c7532b34db057a7bebc1532e35a on Ampere: RTX 3070 8 GB, driver 616.56, Windows 11, rustc 1.98.1. main 63bcca43 as control for the shared tests (the two new tests are added by this PR, so they do not exist on main and ran on the PR head only), each tree in its own target dir, `--locked`, `--test-threads=1`. Synthetic tests only. | test | main | PR | |---|---|---| | `resource::` x3 | 18 passed, 0 failed (x3) | 20 passed, 0 failed (x3) | | `a_texture_refused_for_want_of_memory_is_made_later` x5 | not on main (0 run) | 5/5 pass | | `a_slot_left_null_for_want_of_memory_is_read_again` x5 | not on main (0 run) | 5/5 pass | | `cargo test -p victory-gpu --lib` | 229 passed, 2 failed, 1 ignored | 231 passed, 2 failed, 1 ignored | The 2 failures are the same on both trees: `descriptor::host::tests::dynamic_slots_are_held_until_released` and `memory::tests::lists_share_a_table_and_copies_keep_their_views` (NVIDIA's 1,000,000-view heap cap; #3178, #1744). No nvlddmkm resets. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
andrewpozdnakov7-jpg commented 2026-11-26 18:26:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-26T18:26:17Z.


I checked this together with the view-address-table retry from #3175, keeping both PR heads in the history. The combined commit is d1c8b3f.

The WARP test refuses the first view-address-table allocation and the first allocation for a 64×64 D32 texture copy independently. It checks that the descriptor is still null, then retries the address table while the slot is null and reads through make_read on the following request. The texture recovers, the GPU address of the table remains stable, and the recovered slot has the expected view-address words. The permanent E_INVALIDARG case still takes the existing failure path.

The targeted test passed 3/3 on app-local Agility 1.620.2 / WARP 1.0.22. The full GPU suite passed 252 with one ignored, and strict Clippy passed with default and all features. This was a synthetic allocation-failure test on WARP.

If the two PRs land separately, please run the combined test after the second lands. If you pick up the test, please preserve its Git author or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> when folding it into another commit.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7200462460 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7200462460). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-26T18:26:17Z. --- I checked this together with the view-address-table retry from #3175, keeping both PR heads in the history. The combined commit is [`d1c8b3f`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/d1c8b3fdb430e68ea19d27d395abf850e453d879). The WARP test refuses the first view-address-table allocation and the first allocation for a 64×64 D32 texture copy independently. It checks that the descriptor is still null, then retries the address table while the slot is null and reads through `make_read` on the following request. The texture recovers, the GPU address of the table remains stable, and the recovered slot has the expected view-address words. The permanent `E_INVALIDARG` case still takes the existing failure path. The targeted test passed 3/3 on app-local Agility 1.620.2 / WARP 1.0.22. The full GPU suite passed 252 with one ignored, and strict Clippy passed with default and all features. This was a synthetic allocation-failure test on WARP. If the two PRs land separately, please run the combined test after the second lands. If you pick up the test, please preserve its Git author or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` when folding it into another commit.
borosf commented 2026-11-26 19:03:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by borosf on 2026-11-26T19:03:29Z.


Independent local verification on Windows 11 x64, Intel Arc B580 12 GB (12 cores), at this PR's head ddc621b:

cargo test -p victory-gpu --lib --locked --no-fail-fast -- --test-threads=1
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings
cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings

Result: victory-gpu lib: 230 passed / 2 known baseline failures + the waits_end_on_ticks timing flake (passed on --exact re-run).

Both clippy runs exit 0 (-D warnings, both feature sets). The B580 baseline failures pristine main also hits are: victory-gpu descriptor::host::tests::dynamic_slots_are_held_until_released + memory::tests::lists_share_a_table_and_copies_keep_their_views (#1744/#1829); victory-shader emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros + emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_products. No PR regressions.

Synthetic tests only; no game data used. Full log kept locally. — borosf

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201149121 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7201149121). Originally posted by [borosf](https://github.com/borosf) on 2026-11-26T19:03:29Z. --- Independent local verification on Windows 11 x64, Intel Arc B580 12 GB (12 cores), at this PR's head `ddc621b`: ``` cargo test -p victory-gpu --lib --locked --no-fail-fast -- --test-threads=1 cargo clippy -p victory-gpu --all-targets --locked -- -D warnings cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings ``` Result: victory-gpu lib: 230 passed / 2 known baseline failures + the waits_end_on_ticks timing flake (passed on --exact re-run). Both clippy runs exit 0 (-D warnings, both feature sets). The B580 baseline failures pristine main also hits are: victory-gpu descriptor::host::tests::dynamic_slots_are_held_until_released + memory::tests::lists_share_a_table_and_copies_keep_their_views (#1744/#1829); victory-shader emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros + emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_products. No PR regressions. Synthetic tests only; no game data used. Full log kept locally. — borosf
lerapeurdu62280-debug commented 2026-11-26 19:22:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lerapeurdu62280-debug on 2026-11-26T19:22:41Z.


Thanks @andrewpozdnakov7-jpg, good to know the two retries hold together, with the table's address stable. I won't fold your test into #3276, so it stays yours: whichever of #3175 and #3276 lands second is the natural place for it, with your authorship kept.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7201517327 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3276#issuecomment-7201517327). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-11-26T19:22:41Z. --- Thanks @andrewpozdnakov7-jpg, good to know the two retries hold together, with the table's address stable. I won't fold your test into #3276, so it stays yours: whichever of #3175 and #3276 lands second is the natural place for it, with your authorship kept.
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/3276:upstream-pr/3276'
git switch 'upstream-pr/3276'

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