GPU: normalized placed-texture key can reuse stale backing on the first list after VA recommit #574
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/fxceless--victory-fork#574
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@yualk on GitHub · 2026-11-25 02:22 UTC · original
Reproduced on
c96b4f2b8365bf43d54ab074940923ef8267f4c6with a title-free D3D12 fixture, in fresh processes on NVIDIA10de:2c05and WARP1414:008c. This is about the backing/upload lifetime, not the continued raw-key comparisons addressed by #502.0x5a. Translate a placed SRV throughdescriptor::host::placed_texture: linear 4×4 RGBA8, one mip, resource words[3, filler, 0, 0, 4, 0, 4, 0x10001, 28, 1, 0, 1, 0, !filler]. The SRV uses dimension 4, one mip and the actual mapped VA. Use padding pairs forfiller=17and31. Force real host creation, recordtexture::uploadfollowed by a copy-source transition and texture readback, and wait for each list. Both padding variants return 64 bytes of0x5a.KINDS[6]andHOST_TEXTURES[0]deltas are 2 each withVICTORY_PLACED_FILLER=1, 1 each with it unset. A same-VAformat=30control gets a separate backing in both cases.watch::title_memory_remapped, recommit the same VA, notify again, and fill it with0xa5. Translate the same SRV shape with a previously unseenfiller=47. Run the same fenced upload/readback routine twice. Notexture::host_writteninjected;host_wroteis false.VICTORY_PLACED_FILLER=1a5× 64a5× 645a× 64a5× 64This isolates reuse of an already-uploaded wrapper across a mapping change.
texture::uploadcan record only a deferred refresh for an already-uploaded clean staging object, so the first list reads the old GPU bytes; the next list sees the update. A valid deduplication fix should preserve the 2→1 backing result within one mapping lifetime and deliver new bytes on the first eligible list after remap. The fixture joins the placed translation and upload/readback boundaries; it does not prove a title pass or an indexed-slot shader read, a memory-cliff attribution, or any frame-rate effect.github-bot referenced this issue2026-11-26 03:47:17 +00:00
@yualk on GitHub · 2026-11-25 02:27 UTC · original
Follow-up control: ran the same remap and fenced readback through production
draw::readable(ResourceType::Srv), including the alias check and shader-resource transition. Both adapters reproduce the same result: rawa5/a5, normalized5a/a5. The remap was under the runtime mapping write guard. This still checks table preparation and exact physical bytes, not a shader invocation or title scene.@YaBulochka on GitHub · 2026-11-25 18:40 UTC · original
A real game reproduces what reads like this on RADV, if it helps: rectangular tiles of unrelated texture content on characters, stable across frames and moving with the model, while the rest of the same texture is correct.
Build:
maind510ee4+ #1052 + #1011 + #1010 + #1054,x86_64-pc-windows-gnu,--features diagnostics.Environment: CachyOS kernel 7.3.5, Ryzen 5 9600X, 30 GB, Radeon RX 7600 XT 8 GB, RADV (Mesa 27.0.0), Wine 11.22, vkd3d-proton built from master, package 1.0.2.1.
Switches:
VICTORY_INDIRECT_GATHER=1 VICTORY_HEAP_WORKER=1 VICTORY_RELAY=2 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_CARD_FETCH_INFLIGHT_MB=256 VICTORY_TEXTURE_BUDGET_MB=4096 VICTORY_CARD_BUFFERS_MB=512,VKD3D_CONFIG=host_import_fallback.Counters from the same run:
memory, placed textures: 296 of them were asked for again with other filler words in their description;title textures have no host copy yet: 5,438 (7,045 MB) with no budget set, 369 withVICTORY_TEXTURE_BUDGET_MB=6144, ~20,000 (11,260 MB) while a new area streams;The tiles appear while VRAM is essentially full and streaming is active, which is why this looked like #574 to me rather than a shader-side sampling bug: the sampled content behaves like older bytes of the same placed range. If it is the normalized key, is there a switch to bypass the normalization (or to force the description to be re-asked) so I can A/B it on this machine? I filed the visual side separately as #1072 and can close that one if you would rather keep it here.
No game files, dumps or screenshots are included; counters and behaviour only.