Use neutral views for pending compressed textures #336
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!336
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-336"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Z2VvZ2Vv on GitHub · 2026-12-01 14:35 UTC · original
Z2VvZ2Vv:codex/neutral-streaming-fallback→main· +80 −17 · 1 files · 72 commits · closed without mergingProblem
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-gpuClippy 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.
@Aniseto on GitHub · 2026-12-01 15:07 UTC · original
Ran the named
invalidated_compressed_texture_slots_keep_a_neutral_stand_inregression test atb35a29eon 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.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.
Pull request closed