GPU: stale list reset frees live dynamic slots in a replacement descriptor heap #3606
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3606
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?
@pickles976 on GitHub · 2026-11-27 20:29 UTC · original
Reproduced a descriptor-slot ownership bug on canonical
63bcca43c6a00a758510398fa43096ce7e4f7df0, independently of title execution. Existing owned fix: https://github.com/fxceless/victory-fork/pull/1324 (52ac4ec0f8a03f103c146e60228e53612759d435), also carried asgithub.com/trustno1-coder/VIctory-NVIDIA@47747d6236. This is the dynamic-range release identity, distinct from #1331's native-heap rebinding cache.State::dynamicrecords a title heap address, first slot and count. On reset/drop,descriptor::release_dynamicfinds whichever heap is currently registered at that address. If a new title heap occupies the same address, an old State releases the replacement's live range.Deterministic consumer repro (test-only; no GPU commands submitted):
Box<MaybeUninit<Heap>>storage; register it normally. Allocate one host dynamic slot and retain it in an old State.old.reset(null()). A subsequentnew_host.dynamic(1)must return None because the rightful range remains live.Matched result on physical NVIDIA RTX 4060 Laptop (vendor 0x10de, non-software flag required), Wine 11 / Linux 6.17 / NVIDIA 590.48.1 / 16GiB RAM:
6234114cb98b386de0476c762e01f08d55500797plus one corrected test import; not an exact upstream-head result.Filter:
draw::tests::stale_state_cannot_release_a_replacement_heaps_dynamic_range, Windows MSVC,--features diagnostics -- --exact --nocapture --test-threads=1. Evidence directories:verify-heap-identity-parent-control-20261127T202559Z/andverify-heap-identity-address-reuse-corrected-20261127T202529Z/. An earlier local fixture compile-only failure used the wrong DXGI constant module and is not a production failure.Installed vkd3d is diagnostic-relaxed
2576c0b4adfae4a+, not stock certification; vendor masking off, resource limits unchanged (9GiB/512MiB scope, 2048MiB available-RAM floor, 6000MiB GPU ceiling, 10GiB disk floor). The test creates native descriptor heaps but does not dispatch shaders or prove visible title corruption, black-HDR causality, performance or RAM savings.Suggested owner action: bring the existing generation identity through every dynamic-range allocation/reset/drop path; retain this exact-address replacement consumer regression, not only a direct wrong-ID HostHeap.release test. No code PR or game assets attached.