Use neutral views for pending compressed textures #336

Closed
github-bot wants to merge 0 commits from github-bot/gh-336 into main AGit
Owner

@⁠Z2VvZ2Vv on GitHub · 2026-12-01 14:35 UTC · original
Z2VvZ2Vv:codex/neutral-streaming-fallback → main · +80 −17 · 1 files · 72 commits · closed without merging

Problem

The Linux VIctory-xmem project reported green flashes while some compressed textures were unavailable. A missing shader resource view returns zero, which can produce a strong color cast when the material decodes centered chroma. In Foxhound, uploads already deferred by the graphics queue can get a neutral texture. The paths that invalidate a previously shown view or wait for the texture object's first host allocation still used typed nulls. VIctory-xmem report

Change

Reuse Foxhound's existing 1×1 neutral texture for those two paths when the request describes a normalized block-compressed 2D or 2D-array SRV. Unsupported dimensions, integer views, buffers, UAVs and views whose record cannot be resolved retain the existing null behavior. The placeholder stays eligible for replacement when the real view becomes ready. The slot still releases the previous resource through the existing retirement path.

The change is in Foxhound's D3D12 descriptor code. It does not depend on VIctory-xmem's patched RADV, vkd3d-proton or Wine.

Validation

On the RTX 3070 Ti Windows test machine, the synthetic D3D12 regression test fails with the original invalidation method and passes with this change. It exercises BC3 2D and BC5 array views and checks that a UINT SRV still uses a null. It checks that invalidated slots remain eligible for publication and that the D3D12 device remains healthy. The existing neutral-texture test and the victory-gpu Clippy checks with diagnostics pass as well.

This draft is open for a matched in-game capture to quantify the change in flashes. It makes no claim about texture delivery time, VRAM use or FPS.

**@⁠Z2VvZ2Vv** on GitHub · 2026-12-01 14:35 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/336) `Z2VvZ2Vv:codex/neutral-streaming-fallback` → `main` · +80 −17 · 1 files · 72 commits · closed without merging ## Problem The Linux VIctory-xmem project reported green flashes while some compressed textures were unavailable. A missing shader resource view returns zero, which can produce a strong color cast when the material decodes centered chroma. In Foxhound, uploads already deferred by the graphics queue can get a neutral texture. The paths that invalidate a previously shown view or wait for the texture object's first host allocation still used typed nulls. [VIctory-xmem report](https://github.com/lobomfz/VIctory-xmem/issues/37) ## Change Reuse Foxhound's existing 1×1 neutral texture for those two paths when the request describes a normalized block-compressed 2D or 2D-array SRV. Unsupported dimensions, integer views, buffers, UAVs and views whose record cannot be resolved retain the existing null behavior. The placeholder stays eligible for replacement when the real view becomes ready. The slot still releases the previous resource through the existing retirement path. The change is in Foxhound's D3D12 descriptor code. It does not depend on VIctory-xmem's patched RADV, vkd3d-proton or Wine. ## Validation On the RTX 3070 Ti Windows test machine, the synthetic D3D12 regression test fails with the original invalidation method and passes with this change. It exercises BC3 2D and BC5 array views and checks that a UINT SRV still uses a null. It checks that invalidated slots remain eligible for publication and that the D3D12 device remains healthy. The existing neutral-texture test and the `victory-gpu` Clippy checks with diagnostics pass as well. This draft is open for a matched in-game capture to quantify the change in flashes. It makes no claim about texture delivery time, VRAM use or FPS.
Inspired by the streaming fallback reported in lobomfz/VIctory-xmem issue #37.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:36:41 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-12-01 15:07 UTC · original

Ran the named invalidated_compressed_texture_slots_keep_a_neutral_stand_in regression test at b35a29e on an NVIDIA Blackwell desktop part with 16 GB of VRAM.

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own CARGO_TARGET_DIR, no local patches.

cargo test -q --locked -p victory-gpu --lib invalidated_compressed_texture_slots_keep_a_neutral_stand_in -- --test-threads=1
1 passed; 0 failed; 0 ignored; 512 filtered out      (exit 0)

The synthetic D3D12 test passes here on a second NVIDIA adapter. The description's RTX 3070 Ti run and the visible green-flash symptom were not repeated; no title was run.

Not tested: the full workspace suite, a retail title, the visible symptom on compressed textures, Wine, AMD adapters, release profile, game data.

AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-12-01 15:07 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/336#issuecomment-7315371264) Ran the named `invalidated_compressed_texture_slots_keep_a_neutral_stand_in` regression test at `b35a29e` on an NVIDIA Blackwell desktop part with 16 GB of VRAM. Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own `CARGO_TARGET_DIR`, no local patches. ``` cargo test -q --locked -p victory-gpu --lib invalidated_compressed_texture_slots_keep_a_neutral_stand_in -- --test-threads=1 1 passed; 0 failed; 0 ignored; 512 filtered out (exit 0) ``` The synthetic D3D12 test passes here on a second NVIDIA adapter. The description's RTX 3070 Ti run and the visible green-flash symptom were not repeated; no title was run. Not tested: the full workspace suite, a retail title, the visible symptom on compressed textures, Wine, AMD adapters, release profile, game data. AI-assisted (OpenCode), model: **MiMo-V2.6-Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified; no game data was used.
github-bot closed this pull request 2026-12-02 07:54:38 +00:00

Pull request closed

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