Repository navigation
Title textures: small render targets the CPU fills are kept in step (retail game's menu text is complete) - #211
Conversation
…glyph caches) A retail title places its glyph caches as 256x256 R8 textures with ALLOW_RENDER_TARGET (two planes in the console layout) and fills them from the CPU. register() refused every multi-plane texture as the GPU's, so they were never uploaded and the menus' body text lost most of its letters. A small single-sample colour target with texels (64x64 to 1024x1024, not a depth buffer) is now registered like any texture. XCL_SYNC_SMALL_TARGETS=0 turns it off. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Independent static code audit of SummaryClean, minimal fix for CPU-filled 256×256 Edge cases worth tightening
(AI-assisted) |
|
This fixes the text, and it can also wipe what the GPU drew into such a target. The write watch covers the whole console resource, including its CMASK plane ( Tested A CPU write to the CMASK plane alone replaces previously drawn pixels. On a synthetic 256×256 R8_UNORM target (layout
Direct head Two registration cases extend the scope beyond small color targets. At line 92, the lower limit is area: RTX 5070 Ti, 610.74, Windows x64. Not tested Retail text, AMD, large-array upload performance, or GPU stencil sampling. The array and depth/stencil checks exercised descriptor admission and upload construction. AI use — Codex, GPT-6.2 Astra. |
|
Merged (main d4f17ca). Checked on an RX 9070 (RDNA4) with 11 PRs merged together on main af20b4b: |
…lueX fix title_textures: upstream's version. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fork, rebuilt on current upstream main with only what upstream does not have: the launcher's folder picker, click-to-capture mouse handling with F8 and Page Up / Page Down, a heap per DXC compile thread, the limit on waits for pipelines still being built, the installer, build.ps1, BUILDING.md, the release workflow and the README. Everything else the fork carried is in upstream now (ivall#195 in parts, ivall#211, ivall#244, ivall#252, ivall#283, ivall#289) or was a diagnostic. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
What this does
On
main(2abc562) the newer retail game's menus show their headings and button prompts, but the body text is missing most of its letters: digits, capitals and tall lowercase letters draw, the short lowercase ones (a c e m n o r s u …) do not. With this change the body text is complete (legal terms, settings descriptions, option values).Cause
The title's glyph caches are small textures it places with
ALLOW_RENDER_TARGETand fills from the CPU: 256×256R8_UNORM(format 61), flags0x300001, layout0x100, whichxglays out with two planes.title_textures::registerrefuses anything that is not single-plane ("a render target / depth buffer"), so these were never uploaded after creation and stayed as they were made. The log line onmain:Change
One function,
title_textures::register: a small single-sample colour target that has texels is kept in step with the title's memory like any other texture, even with more than one plane. "Small" is 64×64 up to 1024×1024, not a depth buffer (flag0x2), one sample. Everything else is refused as before.XCL_SYNC_SMALL_TARGETS=0turns it off.Uploads still only happen when the write watch reports CPU writes on the texture's pages, so a target the title only renders to is not uploaded over.
Tested
Ryzen 9 9950X3D, RTX 5090, Windows 11, release build of 2abc562 + this change, the retail game with
XCL_NETWORK=0:cargo build --release -p xclpasses. I did not run the test suite.What I am not sure about
gpu_writtenonly covers copies, not draws.AI-assisted (Claude Code); every run above was on my machine and I can re-run anything.
🤖 Generated with Claude Code