Glyph-cache menu text loses letters; black blocks on the brightness HUD (newer retail title) #1042
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?
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T10:52:34Z.
Game and package version
Newer retail title –
<package id>1.0.2.1What happens
Menu text drawn from the title's glyph caches loses letters, and parts of some HUD elements show black square blocks. The picture is otherwise right and the title runs at a steady 30 fps.
Seen on every run, at these screens:
Expected: whole letters, as on the screens around them (UI text size, subtitles, "Finish setup?", the copyright page all render cleanly).
The log shows the glyph-cache path is taken for these targets:
Ruled out:
XCL_TEXTURE_SKIP_UNCHANGED=0(the content-hash skip, #504) gives the same broken text on the same screens, so it is not that skip.Related, possibly: #504, #475.
XCL version
67a3735(main), release buildGPU and driver version
AMD Radeon RX 9070 XT, 32.0.32029.2010
Windows version
Windows 11 25H2 (26200.9974); no Agility SDK next to xcl.exe. CPU: Intel Core i7-14700, 32 GB RAM.
report.json and xcl.log
Not attached here; I can attach them on request. Shader caches were filled with
xcl shaders … --precompilebeforehand; DXC 1.9.2609.5.Console output
Report written by Claude Code (Claude Opus 5.5) from a real run on the hardware above; the screens were checked by screenshot.
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T10:57:53Z.
More data from the same machine, at
67a3735:XCL_SYNC_SMALL_TARGETS=0the text is broken the same way (same black blocks on the brightness panel, a few different letters gone), so most of the text reaches the GPU some other way than the CPU-filled small targets.cl_om_set_render_targets/cl_clear_rtvfor resources withtitle_textures::address(r).is_some()never fired up to the brightness screen: none of the 64+ kept glyph caches is bound as a render target or cleared on the PC list.XCL_TEXTURE_SKIP_UNCHANGED=0, as before).ID3D12GraphicsCommandList10#126, #131, #132, #142 (not on PC), #75 (console extension);ID3D12CommandAllocator#9;ID3D12CommandQueue#31 (newer layout). If one of these writes or decompresses the UI targets on the console, it would explain the holes.Written by Claude Code (Claude Opus 5.5) from these runs.
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T11:04:59Z.
Further narrowing, same machine and commit:
XCL_VRAM_ARENAS=1gives the same corruption.exe+0x32638,call [rax+0x3f0]) the title passes(list, ref, &[read mask, write mask]), with the ref, read mask and write mask taken from bits 0–7, 8–15 and 16–23 of its stencil state word. It calls it only when one of the three changed. I wired it toOMSetStencilRefon a branch (logging the masks): 15 calls up to the brightness screen, allref 0, masks [0, 0], and no visible change. The branch is at https://github.com/AallynReed/xcl/tree/glyph-cache-gpu-writes if it is useful.exe+0x329e3,call [rax+0x470]) takes one 64-bit value from the title's state (cached at+0x12360, re-sent only when it changes), about once per frame. I haven't identified it.Written by Claude Code (Claude Opus 5.5) from these runs.
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T11:13:54Z.
Correction to my last comment: the damage doesn't change from run to run. It flickers frame to frame within one run. 24 captures of the brightness panel 80 ms apart all differ (23 of 23 consecutive pairs). The black blocks and missing letter pieces move every frame but stay inside the same region: the left third of the panel's bar and the left part of its two text lines, plus single button glyphs. The right part of the bar is always clean.
So it looks like a per-frame GPU hazard, for example a UI texture or target sampled while something else is writing it, or a missing barrier or queue wait between two passes, rather than state that is set wrong once.
I also tried a GPU capture with PIX 2611.19:
WinPixGpuCapturer.dllloaded at startup, then itsCaptureNextFrameexport. The process fail-fasts inside the capturer (0xc0000409) as soon as the capture starts, so no capture came out of it. The log shows XCL patching the capturer's wrapper vtables ("PC vtable WinPixGpuCapturer.dll+…"), which is probably the conflict.Written by Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T11:20:08Z.
Two more experiments. Neither stops the flicker. 12 frames of the brightness panel 80 ms apart differ every time in both runs.
ExecuteCommandListsof the title (the three places that callalloc_pool::executed), signal a fence on that queue and wait for it on the CPU. That removes any cross-queue or CPU/GPU race. The flicker is unchanged.pResource = NULL) before each draw and dispatch (bind::draw_instanced,draw_indexed_instanced,dispatch). The flicker is unchanged.So it doesn't look like a missing wait or barrier. Something produces different output from the same input every frame. The holes are about 4×4 to 8×8 px blocks (at 1280×720 of a 3840×2160 UI target, so roughly 12–24 px in the target), which would fit a wave's worth of pixels. My guess is a translated shader reading something undefined (LDS or a register without a write on some path), but I haven't identified the draw.
Claude Code (Claude Opus 5.5), same machine (RX 9070 XT, 32.0.32029.2010), commit
67a3735plus the debug patches.Imported from ivall/xcl. Originally posted by srcamarda on 2026-11-24T12:08:34Z.
Does not reproduce on RDNA3 (RX 7800 XT), at
67a3735or atmain47efa2eXCL_NETWORK=0.XCL_DATA_ROOT), so the first-run setup ran. The title's presented image was captured withXCL_FRAME_DUMP=30 XCL_FRAME_DUMP_FULL=1(3840×2160).mainonly): body text complete, 0 differing pixels between frames.Same driver version, same commit, clean output. That points to something specific to RDNA4 (or to the host: an Intel hybrid CPU, Windows 26200) rather than to an XCL change between the two commits. A report from another RDNA4 card, and one from an RDNA3/NVIDIA card in English, would separate GPU from locale.
Claude Code (Claude Opus 5.5), from runs on the hardware above.
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T12:10:21Z.
Narrowed further with a live per-pipeline skip switch (reads a skip list every 15 presents) and a one-frame draw log:
The frame. The brightness screen is 33 draws and 1 compute dispatch, all into one 3840×2160 R8G8B8A8 UI target with a DSV bound. Nothing clears that DSV in the frame; the only clears are two
ClearRenderTargetViews.Every UI draw is damaged, not one shader. With the panel's pipeline skipped (
vs cc7a1fd71cd7f6b2/ps 5306d4e7f6e2ca6e), the panel goes away and all the text and the slider break into fragments over the whole width. The white panel just hides most of the damage. The text pipeline isvs 28d887aa04ffa15a/ps b40d9ca24fe3d23d, 20 draws.More ruled out (12 frames each, flicker unchanged):
XCL_COHERENT_MB=4096(the title then puts ~4 GB of heaps in the coherent window)XCL_FRAME_DUMP_FULL=1dump of the title's own 4K frame already has the holes (clean rectangles of about 16–32 px, mostly in the left quarter of the screen)Inputs that do not change. A content hash of the first 1 KB of each bound vertex buffer and of the index buffer is identical across two consecutive frames for 31 of the 32 UI draws (the odd one is a pre-UI draw,
ps 47ee3e08b61101df). No buffer is mirrored ("outside unified memory" never logged).Where it points. All four UI vertex shaders start with
s_swappc_b64 s[4:5], s[4:5], a fetch subroutine. The text VS then turns attributev10into an index (v10 * 1020.04 + 2.1,cvt_i32) and loads fourdwordx4rows of a transform through the buffer descriptor ats[8:9]+0. The panel and slider VSss_buffer_loadconstants. Since identical vertex/index bytes give different pixels every frame, my best guess is the translated fetch subroutine, or the transform/constant buffers those shaders read through descriptors, returning undefined or stale data. I haven't proven which yet.Side note: the panel PS adds a per-frame dither from a 64×64 texture-array slice chosen by
s_buffer_load_dword & 31, after the colour is clamped. Garbage texels there would also give black/white blocks, but the text shader has no such load and breaks the same way.Claude Code (Claude Opus 5.5), RX 9070 XT,
67a3735plus debug patches.Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T12:22:47Z.
Thanks @srcamarda, that's a clean split. Follow-ups on the RDNA4 machine (RX 9070 XT, i7-14700, Windows 11 26200), rebased on
main47efa2e:start /affinity FFFF, confirmed on both xcl processes): still flickers, 5 of 5 frames differ.XCL_FRAME_DUMP_FULL=1dumps of the title's own 4K frame already have the holes.D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESSto single-sample colour targets inpc_resource_desc(that flag keeps AMD from compressing them). No change, but I haven't confirmed the UI target is created through that path rather than as a reserved resource on its own path.Since the same driver is clean on RDNA3, a report from another RDNA4 card would settle whether this is RDNA4-wide. My debug patches (live per-pipeline skip via a file, a one-frame draw log with vertex/index content hashes, a DSV clear/drop switch, submit serialization, a UAV barrier per draw,
XCL_DUMP_ONLY=<hashes>, andXCL_PIX=<WinPixGpuCapturer.dll>+XCL_PIX_TRIGGER=<file>forCaptureNextFrame) are local. I can push them to a branch if any of them would help.Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T12:27:12Z.
One more on the RX 9070 XT: every program compiled with DXC
-Od(a localXCL_DXC_OPToverride, with a fresh emptyXCL_DXIL_CACHEso all 29 programs on that screen were really recompiled). It still flickers, 5 of 5 frames differ. So DXC's optimiser doesn't trigger it, though the driver still compiles the DXIL its own way. The device is the RX 9070 XT ("backend 'real' – AMD Radeon RX 9070 XT"), not the Intel iGPU in the same PC.Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by IvyNotFound on 2026-11-24T13:37:25Z.
Does not reproduce on NVIDIA (RTX 5080) at
main47efa2e: the brightness panel is whole and steadymain47efa2e,XCL_NETWORK=0. The title runs in French.XCL_DATA_ROOTso the first-run setup runs,XCL_PRESS_A_AT=25,35,…,110,XCL_FRAME_DUMP=20 XCL_FRAME_DUMP_FULL=1(3840×2160, every 20th present).So with @srcamarda's RX 7800 XT that is two non-RDNA4 GPUs without it, which keeps it on the RDNA4 side.
AI use
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T14:18:44Z.
Still reproduces on
main930e8b4(RX 9070 XT, 32.0.32029.2010).I checked a known RDNA4 driver miscompile in a similar project, R0Y00/Xbox2Windows#1024: constant
QuadReadLaneAtreads chosen through nested ternaries come back 0 and non-uniform on gfx1200/1201, and integer masks fix it there. xcl'srla()prelude has that exact shape, and the panel PS (5306d4e7f6e2ca6e) calls it. Tested locally, 12 frames each, freshXCL_DXIL_CACHEso the programs were recompiled:XCL_SPLIT_WAVE64=1: still flickers (11 of 11 frame pairs differ)rla()'s two four-way selects rewritten as bit masks: still flickerslanebit()andballot()selects rewritten as masks: still flickersSo it doesn't look like that driver bug. The text PS (
b40d9ca24fe3d23d) uses no quad or lane reads, onlyballot/lanebit, and breaks the same way.Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T14:25:45Z.
Where the holes fall on screen. Every pixel that changed at least once across 40 window captures of the brightness screen (60 ms apart,
930e8b4), in orange:The same panel in 12 consecutive captures:
To me this looks less like a shader computing wrong values and more like tiles of the UI target being lost or overwritten after drawing (compression metadata, aliasing with another resource, or the composite), in a screen region that may follow a diagonal.
Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by Chrysana on 2026-11-24T14:48:34Z.
Reproduces on a second RDNA4 machine (RX 9070 XT, AMD CPU, older driver). The holes are exact 16×16 tiles on a 16-px grid.
Setup
main47efa2e, release build, DXC 1.9.2602.17. Retail 1.0.2.1, English.XCL_DATA_ROOT, so the first-run setup shows.XCL_NETWORK=0,XCL_PRESS_A_AT=25,35,…,145,XCL_FRAME_DUMP=20 XCL_FRAME_DUMP_FULL=1(3840×2160, every 20th present). Exit 0x0.What it looks like here
Hole geometry (brightness screen, all 13 captures)
Not tested
mainonly. One run.AI use
Imported from ivall/xcl. Originally posted by AallynReed on 2026-11-24T15:15:51Z.
Thanks @Chrysana, that's a really useful report. A second RX 9070 XT with an AMD CPU and an older driver rules out the Intel hybrid CPU and this one driver version, and leaves RDNA4 itself. The 16×16 tile measurement is also much more precise than what I had: whole tiles losing a later draw's writes points at the render target's tile handling rather than at the shaders.
Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-24T17:27:28Z.
Does not reproduce on RDNA2 (RX 6750 XT) at
main47efa2e. The brightness panel and the photosensitivity warning are whole and steady.With @srcamarda's RDNA3 and @IvyNotFound's NVIDIA results, RDNA4 (two RX 9070 XT) is so far the only place it reproduces.
Setup
main47efa2e, release build, DXC 1.9.2609.5 (XCL_DXC_DIR). Retail 1.0.2.1. The title runs in Brazilian Portuguese here.XCL_DATA_ROOTso the first-run setup shows, andXCL_NETWORK=0;XCL_PRESS_A_AT=25,35,…,145, plusXCL_PRESS_AT=165:DOWNin run 2 to open the photosensitivity warning;XCL_FRAME_DUMP=20 XCL_FRAME_DUMP_FULL=1(3840×2160, every 20th present).Results
Not tested
XCL_SPLIT_WAVE64,-Od, the DCC flag). With nothing to reproduce, there is nothing to compare.AI use
Imported from ivall/xcl. Originally posted by Saksukella on 2026-11-29T00:09:55Z.
Sharing a controlled negative A/B result on RDNA4 to help narrow down the 16x16 tile-hole / DCC aliasing hypothesis.
Environment: AMD Radeon RX 9070 XT (
driver 32.0.32029.2010),DXC 1.9.2609.5,TitleID 7952987A.Baseline observations:
D3D12_FEATURE_DATA_D3D12_OPTIONS::StandardSwizzle64KBSupportedreports0on RX 9070 XT.ID3D12GraphicsCommandList::DiscardResourceis called0times in this title.Controlled
D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS(0x20) A/B tests:0x20onvram::Pages): Accepted cleanly (0D3D12 errors,0TDR), but darkened overall frame luminance (mean_luma 34.82 -> 4.44) without removing the 16x16 tile holes.0x20on all eligiblevram::Pages+ARENAStextures, plus extra UAV/aliasing barrier flushes): All32,768CreateReservedResourcecalls were accepted with0creation errors,0D3D12 Debug Layer errors, and0TDR over 150s (1,576frames). Bright sky/horizon scenes stayed bright (luma 204.4), ruling out mixed-DCC RTV/SRV mismatch as the sole cause, yet mid-scene luminance still dropped (mean_luma 29.07 -> 11.41) and early-scene 16x16 tile holes remained.Takeaway: Uniform
ALLOW_SIMULTANEOUS_ACCESS(as a DCC-disable attempt on tiled/reserved resources) does not cure the RDNA4 16x16 tile holes and regresses luminance on roughly half of frames. This narrows#1049toward RDNA4 reserved/tiled-resource aliasing or HiZ/CB compression behavior beyond0x20.Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:07:41Z.
A likely cause on NVIDIA too, and a local fix I am testing (not pushed yet; RTX 4080 16 GB, 621.40,
main0fe06eb0). In the world the control-hint box showed only a few letters per line, withXCL_UMA_DRIVER=mixed:1536:1792.title_textures.rshas a fallback re-check: 4, 12, 40, 120 and 400 frames after its last whole upload it hashes three 16 KiB slices (start, middle, end), and after five unchanged checks it drops the texture from the schedule for good. A glyph the title draws later, or outside those slices, is never uploaded. The run log had 0 "streamed unwatched re-uploads triggered" lines.Not yet shown: that the letters come back in the title (the one run so far ended with the hint box off screen). That run is next on my list; I post it here with the PR. This may not be the RDNA4 cause in the first post (flicker frame to frame), which looks different.
AI use: Claude Code; Claude Opus 5.5 found the cause, wrote the change and this comment.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T19:00:26Z.
A clean A/B for the missing letters in the in-world control hints (left side, right after loading), RTX 4080 16 GB (621.40),
main6bfb5c51+ #2987 (switch unset), same save and inputs,XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_RESIDENCY_PRIORITY=1, watched live:XCL_UMA_DRIVERcustom(one CUSTOM L0 heap, all write-watched)mixed:1536:1792(a 1792 MB GPU_UPLOAD range, not write-watched)So with the window's middle range as GPU_UPLOAD (video memory the CPU writes through the BAR, which cannot be write-watched), the title's CPU writes into its glyph-cache textures there do not reach the GPU copy; with every page watched they do. #3537 (re-checking small unwatched targets) did not fix it, so the glyph textures are probably not render targets but sampled textures the CPU fills in that range. Two ways out I can see: keep the glyph cache's pages out of the GPU_UPLOAD range (it is placed by address,
mixed:<start>:<size>), or have title texture reads of a GPU_UPLOAD range always go throughread_vram_bytesinstead of the cached copy. The cost side matters:customalone is about half the frame rate ofmixedhere.AI use: Claude Code (Claude Opus 5.5) ran the A/B; the user confirmed the text on screen in both runs.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:48:42Z.
Follow-up with a fix that works: the title's glyph textures are copies uploaded from its memory, and in the GPU_UPLOAD part of
XCL_UMA_DRIVER=mixedthere is no write watch, so after the first upload only the stream re-check looks again — three 16 KiB slices at 4/12/40/120/400 frames, then never. A local switch that keeps re-checking small textures (≤ 4 MiB) in that range every 16 frames by a full hash read through the GPU (within 8 MiB per frame) brings the hint text back: run 402 without it shows letters missing, run 404 with it shows the hint complete, the same as the fully watchedcustomrun 399; presents/s 3.10 vs 3.07 (RTX 4080, same save and inputs). The textures that change there are small sampled (non-target) textures, which is why #3537 (targets only) did not help. PR coming after the suite and a smoke pair; one caveat: 1 of 2 runs with the switch lost the device at +95 s with the same page fault plainmainshowed once (run 344), so that needs more runs.AI use: Claude Code (Claude Opus 5.5); cause and fix by a Claude Fable 5.2 sub-agent.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T21:14:29Z.
PR for the missing glyph letters: #3617 (
XCL_UNWATCHED_RECHECK=1, default off). It also limits the checks to 64 textures / 8 MiB a frame, spread over 16 frames, after an independent review. Merge checks and in-world reports welcome, especially on AMD and with Series S.AI use: Claude Code (Claude Opus 5.5).