gpu: integrate fence-safe sampling of by-address console textures #2206
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2214"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:27:44Z.
Refs #2015, #870. The original console-layout support landed separately in
b9da095a. This follow-up validates storage and typed views, checks overlapping live resources, and retries dedicated uploads after an abandoned recording or a staging failure. The shared-ring control now selects that mode explicitly.The source-built gate records payload 0, closes and resets its command list without submitting, then draws the same bytes again. Eighteen 16 MiB submissions wait behind one fence. After it opens, the first and last payloads must survive and all eighteen submissions must retire. Reusing the 256 MiB ring must corrupt only the left half of the target. An initial fixture set the environment variable to an empty string; on Windows this selected the ring control in both runs. The ordinary run now removes the variable.
Windows 11 build 26200, NVIDIA RTX 4060 Laptop (32.0.16.1656) and WARP, Release, draw-fixture debug layer disabled. On
f1b854c7: 20/20 passed, no skips, including ordinary and mutation on each backend. The local offline saved-profile replay of the candidate before synchronization displayed a loading illustration, then stopped at a second-chance C++ exception after a slot-148 no-op; that subsequent stage is tracked separately in #1758. No private artifacts are included.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T05:30:53Z.
Review: COMMENTED
Review of head
f1b854c72d8018442b3ee639cc63f05545713c43(comment only).Status notes
git merge-tree --write-tree origin/main HEADgave a clean tree, so I could not reproduce a conflict. If a conflict shows up on your side, please rebase onto main before Ready.What I checked
console_address_texture/address_view_fitsrules inaddress_texture.h. They are a clear improvement: depth formats are refused, a typed UNORM store no longer accepts an sRGB view, the component mapping is validated,ResourceMinLODClampmust be 0, and a plain 2D view needsDepthOrArraySize == 1.d3d12_draw.inl: a discarded list resetsdone/pending_list, a retired list setsdoneonly if the cached revision matches, and thebad_allocpath pins the buffer and texture instead of freeing them early. The logic reads correctly.Findings
struct AddressUploadind3d12_draw.inlnow hasu64 revision;with no default initializer, while its neighbours are initialized. Writingu64 revision = 0;would make a partial aggregate init safe.retire_address_uploadsthe first loop (revision/doneupdate) runs outside the newtry, and the second loop looks the lists up again. Folding them into one pass would be easier to follow. This is not a bug.bad_allocpin path is a deliberate leak with a log line. It would be good to have a test that forces it, if that is cheap. I did not find one.Commands executed locally
python3 tests/docs_links_check.py-> Self-test passed. Checked 18 Markdown files and 409 links.python3 tests/bidi_controls_check.py-> no bidirectional controls in 1493 files.git diff --check origin/main...HEAD-> clean.python3 tests/startup_address_console_check.py-> prints usage only on Linux (it needs the Windows backend), so it gave no signal.x86_64-w64-mingw32-g++ -std=c++17 -Isrc -static tests/startup_gfx10_layout_check.cppthen run under wine ->startup_gfx10_layout: PASS (30 equations, ... 19 address descriptions, 21 views).r.DepthOrArraySize == 1 &&from the Texture2D branch ofaddress_view_fits. The layout check failed withFAIL address view: non-array view of an array, so the test kills it. I reverted the change withgit checkout -- ..Not verified
startup_address_console_check.pyare what really prove it. They need a real Windows run before Ready.AI-assisted; commands listed were executed locally.