Glyph-cache menu text loses letters; black blocks on the brightness HUD (newer retail title) #1049
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1049
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?
@AallynReed on GitHub · 2026-11-24 10:52 UTC · original
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.
@AallynReed on GitHub · 2026-11-24 10:57 UTC · original
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.
@AallynReed on GitHub · 2026-11-24 11:04 UTC · original
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.
@AallynReed on GitHub · 2026-11-24 11:13 UTC · original
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).
@AallynReed on GitHub · 2026-11-24 11:20 UTC · original
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.@srcamarda on GitHub · 2026-11-24 12:08 UTC · original
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.
@AallynReed on GitHub · 2026-11-24 12:10 UTC · original
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.@AallynReed on GitHub · 2026-11-24 12:22 UTC · original
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).
@AallynReed on GitHub · 2026-11-24 12:27 UTC · original
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).
@IvyNotFound on GitHub · 2026-11-24 13:37 UTC · original
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
@AallynReed on GitHub · 2026-11-24 14:18 UTC · original
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).
@AallynReed on GitHub · 2026-11-24 14:25 UTC · original
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).
@Chrysana on GitHub · 2026-11-24 14:48 UTC · original
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
@AallynReed on GitHub · 2026-11-24 15:15 UTC · original
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).
@RodrigoTorreao on GitHub · 2026-11-24 17:27 UTC · original
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