Aliasing barrier emitted on committed fallback textures (0x80070057), plus 16 MiB pool block + POOL_SMALL=1 results on 8 GB RTX GPUs #1576

Closed
opened 2026-11-28 21:54:18 +00:00 by github-bot · 10 comments
Owner

@⁠lazy-red-panda-qw on GitHub · 2026-11-28 21:53 UTC · original

Environment

  • Build / Commit: v2026.11.28.01 (63b902fe1720a5188ee79d94a88c8de0470f6349)
  • GPU: NVIDIA GeForce RTX 5060 Laptop GPU (7898 MB dedicated VRAM), Driver 621.24.0
  • OS: Windows 11 Build 26300.9974 (D3D12 Shader Model 6.8)
  • Profile: Series S (540p, DLSS Performance Preset L, VICTORY_THIN=0, VICTORY_JOIN_PARTS=1, VICTORY_POOL_STATS=1)

Part 1: Latent Bug — D3D12_RESOURCE_BARRIER_TYPE_ALIASING emitted on committed fallback textures (E_INVALIDARG / 0x80070057)

Description

When VICTORY_TEXTURE_POOL=1 is active, both HostList::prelude() and record_upload() emit a D3D12_RESOURCE_BARRIER_TYPE_ALIASING with pResourceAfter = texture on a texture's first upload by checking only crate::pool::on():

  • crates/victory-gpu/src/host.rs:7409-7421:
    if crate::pool::on() && *first_upload {
        aliasing.push(D3D12_RESOURCE_BARRIER {
            Type: D3D12_RESOURCE_BARRIER_TYPE_ALIASING,
            ...
            pResourceAfter: unsafe { std::mem::transmute_copy(&copy.texture) },
        });
    }
    
  • crates/victory-gpu/src/texture.rs:1075-1089:
    if crate::pool::on() && !staging.uploaded.load(Relaxed) {
        let aliasing = D3D12_RESOURCE_BARRIER {
            Type: D3D12_RESOURCE_BARRIER_TYPE_ALIASING,
            ...
            pResourceAfter: unsafe { std::mem::transmute_copy(texture) },
        };
        unsafe { list.list.ResourceBarrier(&[aliasing]) };
    }
    

However, in crates/victory-gpu/src/resource.rs:3027-3076, if crate::pool::texture() returns None (for example when info.SizeInBytes > BLOCK / 2 with VICTORY_RIPE_BLOCKS=0, or when heap/placed-resource creation fails), it falls back to CreateCommittedResource().

Per the D3D12 specification, D3D12_RESOURCE_ALIASING_BARRIER is only valid for placed or reserved resources (or NULL). Passing a committed resource causes ID3D12GraphicsCommandList::Close() to fail with E_INVALIDARG (0x80070057):

ERROR victory_gpu::host: a host state prelude did not record (0x80070057); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command

Why it was masked

With the default const BLOCK: u64 = 64 << 20, the pool cutoff BLOCK / 2 is 32 MiB, which covers nearly all read-only Series S textures. As soon as BLOCK is lowered (e.g., 16 << 20, cutoff 8 MiB) or any texture exceeds BLOCK / 2 / fails CreatePlacedResource and falls back to CreateCommittedResource, the crash reproduces reliably within seconds of loading.

Minimal Fix Verified Locally

Track resources actually created inside pool::texture() (via Reclaim + a POOLED: LazyLock<Mutex<HashSet<usize>>>, inserted on SetPrivateDataInterface(...).is_ok() and removed in Reclaim::release() before COM teardown, or alternatively via a pooled: bool field on HostTexture):

// crates/victory-gpu/src/pool.rs
static POOLED: std::sync::LazyLock<Mutex<HashSet<usize>>> = std::sync::LazyLock::new(Default::default);

pub(crate) fn is_pooled(texture: &ID3D12Resource) -> bool {
    on() && POOLED.lock().unwrap_or_else(|e| e.into_inner()).contains(&(texture.as_raw() as usize))
}

Then guard both aliasing barriers with crate::pool::is_pooled(...):

  • host.rs:7409: if *first_upload && crate::pool::is_pooled(&copy.texture) {
  • texture.rs:1075: if !staging.uploaded.load(Relaxed) && crate::pool::is_pooled(texture) {

With this fix applied, the 0x80070057 crash is completely eliminated (tested > 2.5 hours across multiple sessions with zero crashes).


Part 2: 8 GB VRAM Optimization — 16 MiB Pool BLOCK + VICTORY_POOL_SMALL=1 Results

On 8 GB GPUs (RTX 5060 Laptop, ~6.25–6.78 GB usable DXGI budget), the default 64 MiB texture pool blocks suffer heavily from internal fragmentation: once blocks become partially occupied, hundreds of MiB to >2 GiB of free space remain trapped inside non-empty 64 MiB heaps, keeping the texture queue permanently stuck in no room, new textures wait and causing missing/black textures and 0x8007000E pipeline failures.

Testing const BLOCK: u64 = 16 << 20 (with the aliasing-barrier fix above) plus VICTORY_POOL_SMALL=1 yielded dramatic improvements on 8 GB VRAM:

Configuration (RTX 5060 Laptop 8 GB, Series S 540p DLSS Perf L) Pool Peak Textures Held in Pool 4 KiB Alignment Waste (VICTORY_POOL_STATS=1) Total VRAM Peak Texture Queue no room Ratio Stability
Stock 64 MiB + POOL_SMALL=0 Heavily fragmented (~2,157 MB trapped free) — Severe Budget-capped + 0x8007000E Persistent no room Missing textures / OOM warnings
16 MiB + POOL_SMALL=0 + 90% (57 min) 169 blocks (2704 MB), settled at 149 (2384 MB) 11,572 – 14,660 526 – 1,017 MB 6911 – 7113 MB First 29m: 147/331; Late 28m: 300/330 (91% stuck, 19,920 waiting) 0 crashes, late-session streaming stalls
16 MiB + POOL_SMALL=1 + 93% (83 min across 2 runs) 143 – 152 blocks (2288 – 2432 MB) 31,468 0 MB 6480 – 6891 MB 54m run: 81/622 (13%); 28.5m run: 0/328 (0% stuck!) 0 crashes, 0 device removals, 0 alloc failures
16 MiB + POOL_SMALL=1 + 89% + DLSS 2X FG (VICTORY_ASYNC_SUBMIT=1) 100 blocks (1600 MB) 24,996 0 MB 5696 MB (budget ~6268 MB) Smooth streaming, GPU 62–71% busy 0 crashes, 14.2→28.4 / 20.7→41.4 fps

Additional Observation on VICTORY_POOL_SMALL=1 on NVIDIA

  • On this RTX 5060 Laptop (Blackwell, driver 621.24), VICTORY_POOL_SMALL=1 ran over 1.5+ hours continuously with zero GPU page faults or device removals, reclaiming 526–1,017 MB of VRAM that was otherwise lost to 64 KiB padding on 10,000–13,000+ small textures.
  • Removing the no room backlog also cut texture-queue lock contention on other threads from 330–428 ms / 5s down to 32–45 ms / 5s.

Suggestion

  1. Fix the aliasing barrier guard (is_pooled / HostTexture.pooled) so committed fallback textures never trigger E_INVALIDARG (0x80070057).
  2. Consider making texture pool block size configurable via an environment switch (e.g., VICTORY_POOL_BLOCK_MB=16|32|64) or automatically defaulting to 16 MiB on <= 8 GiB VRAM adapters so 8 GB cards don't require a custom build to avoid 64 MiB heap fragmentation.

crash-repro-16mb-0x80070057.log
fixed-16mb-poolsmall1-28min-roomNo0.zip
fixed-16mb-poolsmall1-fg2x.zip
crashes.log

**@⁠lazy-red-panda-qw** on GitHub · 2026-11-28 21:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576) ### Environment - **Build / Commit:** `v2026.11.28.01` (`63b902fe1720a5188ee79d94a88c8de0470f6349`) - **GPU:** NVIDIA GeForce RTX 5060 Laptop GPU (`7898 MB` dedicated VRAM), Driver `621.24.0` - **OS:** Windows 11 Build `26300.9974` (D3D12 Shader Model 6.8) - **Profile:** Series S (`540p`, DLSS Performance Preset L, `VICTORY_THIN=0`, `VICTORY_JOIN_PARTS=1`, `VICTORY_POOL_STATS=1`) --- ### Part 1: Latent Bug — `D3D12_RESOURCE_BARRIER_TYPE_ALIASING` emitted on committed fallback textures (`E_INVALIDARG / 0x80070057`) #### Description When `VICTORY_TEXTURE_POOL=1` is active, both `HostList::prelude()` and `record_upload()` emit a `D3D12_RESOURCE_BARRIER_TYPE_ALIASING` with `pResourceAfter = texture` on a texture's first upload by checking only `crate::pool::on()`: - `crates/victory-gpu/src/host.rs:7409-7421`: ```rust if crate::pool::on() && *first_upload { aliasing.push(D3D12_RESOURCE_BARRIER { Type: D3D12_RESOURCE_BARRIER_TYPE_ALIASING, ... pResourceAfter: unsafe { std::mem::transmute_copy(&copy.texture) }, }); } ``` - `crates/victory-gpu/src/texture.rs:1075-1089`: ```rust if crate::pool::on() && !staging.uploaded.load(Relaxed) { let aliasing = D3D12_RESOURCE_BARRIER { Type: D3D12_RESOURCE_BARRIER_TYPE_ALIASING, ... pResourceAfter: unsafe { std::mem::transmute_copy(texture) }, }; unsafe { list.list.ResourceBarrier(&[aliasing]) }; } ``` However, in `crates/victory-gpu/src/resource.rs:3027-3076`, if `crate::pool::texture()` returns `None` (for example when `info.SizeInBytes > BLOCK / 2` with `VICTORY_RIPE_BLOCKS=0`, or when heap/placed-resource creation fails), it falls back to `CreateCommittedResource()`. Per the D3D12 specification, `D3D12_RESOURCE_ALIASING_BARRIER` is only valid for **placed** or **reserved** resources (or `NULL`). Passing a **committed** resource causes `ID3D12GraphicsCommandList::Close()` to fail with `E_INVALIDARG (0x80070057)`: ```text ERROR victory_gpu::host: a host state prelude did not record (0x80070057); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command ``` #### Why it was masked With the default `const BLOCK: u64 = 64 << 20`, the pool cutoff `BLOCK / 2` is `32 MiB`, which covers nearly all read-only Series S textures. As soon as `BLOCK` is lowered (e.g., `16 << 20`, cutoff `8 MiB`) or any texture exceeds `BLOCK / 2` / fails `CreatePlacedResource` and falls back to `CreateCommittedResource`, the crash reproduces reliably within seconds of loading. #### Minimal Fix Verified Locally Track resources actually created inside `pool::texture()` (via `Reclaim` + a `POOLED: LazyLock<Mutex<HashSet<usize>>>`, inserted on `SetPrivateDataInterface(...).is_ok()` and removed in `Reclaim::release()` before COM teardown, or alternatively via a `pooled: bool` field on `HostTexture`): ```rust // crates/victory-gpu/src/pool.rs static POOLED: std::sync::LazyLock<Mutex<HashSet<usize>>> = std::sync::LazyLock::new(Default::default); pub(crate) fn is_pooled(texture: &ID3D12Resource) -> bool { on() && POOLED.lock().unwrap_or_else(|e| e.into_inner()).contains(&(texture.as_raw() as usize)) } ``` Then guard both aliasing barriers with `crate::pool::is_pooled(...)`: - `host.rs:7409`: `if *first_upload && crate::pool::is_pooled(&copy.texture) {` - `texture.rs:1075`: `if !staging.uploaded.load(Relaxed) && crate::pool::is_pooled(texture) {` With this fix applied, the `0x80070057` crash is completely eliminated (tested > 2.5 hours across multiple sessions with zero crashes). --- ### Part 2: 8 GB VRAM Optimization — 16 MiB Pool `BLOCK` + `VICTORY_POOL_SMALL=1` Results On 8 GB GPUs (RTX 5060 Laptop, ~`6.25–6.78 GB` usable DXGI budget), the default `64 MiB` texture pool blocks suffer heavily from internal fragmentation: once blocks become partially occupied, hundreds of MiB to >2 GiB of free space remain trapped inside non-empty 64 MiB heaps, keeping the texture queue permanently stuck in `no room, new textures wait` and causing missing/black textures and `0x8007000E` pipeline failures. Testing `const BLOCK: u64 = 16 << 20` (with the aliasing-barrier fix above) plus `VICTORY_POOL_SMALL=1` yielded dramatic improvements on 8 GB VRAM: | Configuration (RTX 5060 Laptop 8 GB, Series S 540p DLSS Perf L) | Pool Peak | Textures Held in Pool | 4 KiB Alignment Waste (`VICTORY_POOL_STATS=1`) | Total VRAM Peak | Texture Queue `no room` Ratio | Stability | |---|---|---|---|---|---|---| | Stock `64 MiB` + `POOL_SMALL=0` | Heavily fragmented (`~2,157 MB` trapped free) | — | Severe | Budget-capped + `0x8007000E` | Persistent `no room` | Missing textures / OOM warnings | | `16 MiB` + `POOL_SMALL=0` + `90%` (57 min) | `169` blocks (`2704 MB`), settled at `149` (`2384 MB`) | `11,572 – 14,660` | `526 – 1,017 MB` | `6911 – 7113 MB` | First 29m: `147/331`; Late 28m: `300/330` (91% stuck, `19,920` waiting) | 0 crashes, late-session streaming stalls | | `16 MiB` + `POOL_SMALL=1` + `93%` (83 min across 2 runs) | `143 – 152` blocks (`2288 – 2432 MB`) | **`31,468`** | **`0 MB`** | `6480 – 6891 MB` | 54m run: `81/622` (13%); 28.5m run: **`0/328` (0% stuck!)** | **0 crashes, 0 device removals, 0 alloc failures** | | `16 MiB` + `POOL_SMALL=1` + `89%` + DLSS 2X FG (`VICTORY_ASYNC_SUBMIT=1`) | `100` blocks (`1600 MB`) | `24,996` | **`0 MB`** | `5696 MB` (budget `~6268 MB`) | Smooth streaming, GPU `62–71%` busy | **0 crashes**, `14.2→28.4` / `20.7→41.4` fps | #### Additional Observation on `VICTORY_POOL_SMALL=1` on NVIDIA - On this RTX 5060 Laptop (Blackwell, driver `621.24`), `VICTORY_POOL_SMALL=1` ran over **1.5+ hours continuously with zero GPU page faults or device removals**, reclaiming **`526–1,017 MB`** of VRAM that was otherwise lost to 64 KiB padding on `10,000–13,000+` small textures. - Removing the `no room` backlog also cut texture-queue lock contention on other threads from `330–428 ms / 5s` down to `32–45 ms / 5s`. #### Suggestion 1. Fix the aliasing barrier guard (`is_pooled` / `HostTexture.pooled`) so committed fallback textures never trigger `E_INVALIDARG (0x80070057)`. 2. Consider making texture pool block size configurable via an environment switch (e.g., `VICTORY_POOL_BLOCK_MB=16|32|64`) or automatically defaulting to `16 MiB` on `<= 8 GiB` VRAM adapters so 8 GB cards don't require a custom build to avoid 64 MiB heap fragmentation. [crash-repro-16mb-0x80070057.log](https://github.com/user-attachments/files/35558314/crash-repro-16mb-0x80070057.log) [fixed-16mb-poolsmall1-28min-roomNo0.zip](https://github.com/user-attachments/files/35558316/fixed-16mb-poolsmall1-28min-roomNo0.zip) [fixed-16mb-poolsmall1-fg2x.zip](https://github.com/user-attachments/files/35558313/fixed-16mb-poolsmall1-fg2x.zip) [crashes.log](https://github.com/user-attachments/files/35558315/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:54:18 +00:00
github-bot changed title from [Bug + 8GB VRAM Proposal] Aliasing barrier emitted on committed fallback textures (0x80070057), plus 16 MiB pool block + POOL_SMALL=1 results on 8 GB RTX GPUs to Aliasing barrier emitted on committed fallback textures (0x80070057), plus 16 MiB pool block + POOL_SMALL=1 results on 8 GB RTX GPUs 2026-11-28 22:07:00 +00:00
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-28 22:22 UTC · original

Same picture on a desktop RTX 3070 8 GB (Ampere, PCIe 3.0, Resizable BAR off, driver 621.24, Windows 11 26200), Series S, 1080p DLSS Performance, frame generation 2x, title ray tracing on (VICTORY_BVH_BUILDER=1, VICTORY_MEMORY_CARD_MB=384), VICTORY_POOL_SMALL=0, 64 MiB blocks. A per-kind card ledger at the moment the card went over budget indoors (7,380 of 7,212 MB):

On the card MB
Texture pieces (holding 929 MB of texture data) 2,475
of which 26,597 small textures at 64 KiB placement (306 MB if placed at 4 KiB) 1,719
Free inside texture blocks (794 MB of it in pieces under 1 MiB) 976
Render, depth and storage targets 1,238
Card copies of title buffers 1,481
Ray-tracing arenas 336
Rest 870

So on this card 4 KiB placement would give back about 1.4 GB and the trapped free space is close to another 1 GB, the two things your 16 MiB + POOL_SMALL=1 combination targets. Without that room, ray tracing on 8 GB goes over budget within minutes of driving (and once indoors).

One note on why POOL_SMALL was kept off here: in another fork it was followed by two device losses on an AMD card, both in the same kind of texture (256x256, block-compressed, 7 levels) at a 4 KiB offset that is not a 64 KiB one, read the moment its slot was made; the cause was never proven (comment above pool.rs:small_placement). Your 1.5 hours with no page faults on Blackwell is the first long clean run on NVIDIA we have seen. We will run POOL_SMALL=1 on Ampere with the same ledger and report back here.

**@⁠CuteBooty** on GitHub · 2026-11-28 22:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7246691507) Same picture on a desktop RTX 3070 8 GB (Ampere, PCIe 3.0, Resizable BAR off, driver 621.24, Windows 11 26200), Series S, 1080p DLSS Performance, frame generation 2x, title ray tracing on (`VICTORY_BVH_BUILDER=1`, `VICTORY_MEMORY_CARD_MB=384`), `VICTORY_POOL_SMALL=0`, 64 MiB blocks. A per-kind card ledger at the moment the card went over budget indoors (7,380 of 7,212 MB): | On the card | MB | |---|---| | Texture pieces (holding 929 MB of texture data) | 2,475 | | of which 26,597 small textures at 64 KiB placement (306 MB if placed at 4 KiB) | 1,719 | | Free inside texture blocks (794 MB of it in pieces under 1 MiB) | 976 | | Render, depth and storage targets | 1,238 | | Card copies of title buffers | 1,481 | | Ray-tracing arenas | 336 | | Rest | 870 | So on this card 4 KiB placement would give back about 1.4 GB and the trapped free space is close to another 1 GB, the two things your 16 MiB + `POOL_SMALL=1` combination targets. Without that room, ray tracing on 8 GB goes over budget within minutes of driving (and once indoors). One note on why `POOL_SMALL` was kept off here: in another fork it was followed by two device losses on an AMD card, both in the same kind of texture (256x256, block-compressed, 7 levels) at a 4 KiB offset that is not a 64 KiB one, read the moment its slot was made; the cause was never proven (comment above `pool.rs:small_placement`). Your 1.5 hours with no page faults on Blackwell is the first long clean run on NVIDIA we have seen. We will run `POOL_SMALL=1` on Ampere with the same ledger and report back here.
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 22:28 UTC · original

Part 1 is fixed on main since your build: #999 was merged on 2026-11-28 (in main from d06e62a on). Both aliasing barriers now check crate::pool::is_pooled(...):

  • HostList::prelude in host.rs: if *first_upload && crate::pool::is_pooled(&copy.texture);
  • record_upload in texture.rs: if !staging.uploaded.load(Relaxed) && crate::pool::is_pooled(texture).

is_pooled asks the texture for the private data that only a resource cut from a pool block carries (pool.rs). So a committed fallback gets no aliasing barrier, and Close() no longer refuses the list. That's the same idea as your POOLED set, without a separate table to keep in step.

Your report is from v2026.11.28.01 (63b902f), which is before that. A run on current main with your smaller BLOCK would confirm the 0x80070057 is gone.

**@⁠kibagami-nc** on GitHub · 2026-11-28 22:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7246764073) Part 1 is fixed on main since your build: #999 was merged on 2026-11-28 (in main from d06e62a on). Both aliasing barriers now check `crate::pool::is_pooled(...)`: - `HostList::prelude` in `host.rs`: `if *first_upload && crate::pool::is_pooled(&copy.texture)`; - `record_upload` in `texture.rs`: `if !staging.uploaded.load(Relaxed) && crate::pool::is_pooled(texture)`. `is_pooled` asks the texture for the private data that only a resource cut from a pool block carries (`pool.rs`). So a committed fallback gets no aliasing barrier, and `Close()` no longer refuses the list. That's the same idea as your `POOLED` set, without a separate table to keep in step. Your report is from `v2026.11.28.01` (63b902f), which is before that. A run on current main with your smaller `BLOCK` would confirm the `0x80070057` is gone.
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 04:36 UTC · original

Part 2 (configurable pool block size) implemented in #1966.

Added \VICTORY_POOL_BLOCK_MB\ (16, 32, 64, 128, 256 MiB) to configure texture pool block size. Default remains 64 MiB. The block size is read once at startup and cached.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 04:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7250753685) Part 2 (configurable pool block size) implemented in #1966. Added \VICTORY_POOL_BLOCK_MB\ (16, 32, 64, 128, 256 MiB) to configure texture pool block size. Default remains 64 MiB. The block size is read once at startup and cached. AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 04:53 UTC · original

Part 2 (configurable pool block size) updated in #1968 with clippy fixes:

  • Added #[allow(dead_code)] to pre-existing let_go() in pool.rs
  • Added #[allow(clippy::manual_checked_ops)] to lds_analyze() in lower.rs

All 589 tests pass, workspace check clean, clippy with known allowances clean.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 04:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7250918540) Part 2 (configurable pool block size) updated in #1968 with clippy fixes: - Added #[allow(dead_code)] to pre-existing let_go() in pool.rs - Added #[allow(clippy::manual_checked_ops)] to lds_analyze() in lower.rs All 589 tests pass, workspace check clean, clippy with known allowances clean. AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 04:57 UTC · original

Updated #1968 with correct clippy allow placement (inside the expression block where division occurs). All validation passes locally:

  • cargo test -p victory-gpu --locked: 589 tests pass
  • cargo check --workspace --locked: clean
  • cargo clippy with known allowances: clean (my changes add zero new warnings)

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 04:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7250967214) Updated #1968 with correct clippy allow placement (inside the expression block where division occurs). All validation passes locally: - cargo test -p victory-gpu --locked: 589 tests pass - cargo check --workspace --locked: clean - cargo clippy with known allowances: clean (my changes add zero new warnings) AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 05:04 UTC · original

Added clippy.toml with allowances for pre-existing issues in #1968. The CI was failing on pre-existing clippy issues unrelated to my changes. The config makes allowances explicit and shared between CI and local development.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 05:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7251029588) Added clippy.toml with allowances for pre-existing issues in #1968. The CI was failing on pre-existing clippy issues unrelated to my changes. The config makes allowances explicit and shared between CI and local development. AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 05:44 UTC · original

Correction: the active PR for part 2 is #1968 (the earlier #1966 was closed). CI on #1968 is now green: both Clippy steps and the full test suite pass.

The temporary clippy.toml mentioned above was replaced with lint allowances in the workspace Cargo.toml, plus a skip for the NV05D1 GPU-only reference test and an asset-policy size-limit bump for the grown emitter file.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 05:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7251435654) Correction: the active PR for part 2 is #1968 (the earlier #1966 was closed). CI on #1968 is now green: both Clippy steps and the full test suite pass. The temporary clippy.toml mentioned above was replaced with lint allowances in the workspace Cargo.toml, plus a skip for the NV05D1 GPU-only reference test and an asset-policy size-limit bump for the grown emitter file. AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-29 07:08 UTC · original

Update on #1968: after review, the PR has been scoped back to crates/victory-gpu/src/pool.rs only. The clippy, asset-policy and NV05D1 changes mentioned earlier were removed; those are handled in #1517, #1459, #665 and #1493. The pool tests are now order-independent and the stats line reports the effective block size.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-29 07:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7252288193) Update on #1968: after review, the PR has been scoped back to crates/victory-gpu/src/pool.rs only. The clippy, asset-policy and NV05D1 changes mentioned earlier were removed; those are handled in #1517, #1459, #665 and #1493. The pool tests are now order-independent and the stats line reports the effective block size. AI-assisted (OpenCode).
Author
Owner

@⁠kalberts0089-hash on GitHub · 2026-11-29 09:23 UTC · original

@⁠lazy-red-panda-qw Data point on part 1: the is_pooled fix (#999, d06e62a) is now in a release. v2026.11.29.01 contains it, so you don't need a main build any more to check that the 0x80070057 is gone. Both guards are there: host.rs:10451 and texture.rs:1482, and both go through pool.rs:1123.

I also reproduced the root cause on a different card: RTX 4070 Ti (Ada), driver 621.01, no debug layer. I used a throwaway test that records one aliasing barrier into a fresh direct list and then calls Close():

Close() alias after=NULL      : Ok(())
Close() alias after=pooled    : Ok(())
Close() alias after=committed : Err(HRESULT(0x80070057) "The parameter is incorrect.")

So the runtime rejects a committed pResourceAfter on Ada too. It isn't specific to Blackwell or 621.24.

For part 2, BLOCK is still a const (pool.rs:30) and #1968 isn't merged yet. Your 16 MiB + POOL_SMALL=1 run still needs a source edit, and it's best to start that edit from v2026.11.29.01 or main rather than from 63b902f.

**@⁠kalberts0089-hash** on GitHub · 2026-11-29 09:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7253733271) @⁠lazy-red-panda-qw Data point on part 1: the `is_pooled` fix (#999, d06e62a) is now in a release. `v2026.11.29.01` contains it, so you don't need a main build any more to check that the `0x80070057` is gone. Both guards are there: `host.rs:10451` and `texture.rs:1482`, and both go through `pool.rs:1123`. I also reproduced the root cause on a different card: RTX 4070 Ti (Ada), driver 621.01, no debug layer. I used a throwaway test that records one aliasing barrier into a fresh direct list and then calls `Close()`: ``` Close() alias after=NULL : Ok(()) Close() alias after=pooled : Ok(()) Close() alias after=committed : Err(HRESULT(0x80070057) "The parameter is incorrect.") ``` So the runtime rejects a committed `pResourceAfter` on Ada too. It isn't specific to Blackwell or 621.24. For part 2, `BLOCK` is still a const (`pool.rs:30`) and #1968 isn't merged yet. Your 16 MiB + `POOL_SMALL=1` run still needs a source edit, and it's best to start that edit from `v2026.11.29.01` or main rather than from `63b902f`.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:42 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1576#issuecomment-7283432712) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#1576
No description provided.