startup-runtime: menu text renders broken #1143
Closed
opened 2026-11-24 01:47:03 +00:00 by denn0x
·
11 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#1143
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 R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:47:03Z.
Problem
With
tools/startup/run.ps1 -Render -FakeUser -GpuMirror, the first-run menu and the prompt UI draw throughtranslated pipelines and reach the output window, but the menu text is broken: the glyphs do not render as readable text.
Likely causes (unverified)
Where to start
X2W_DRAW_DUMP_FRAME/X2W_DRAW_DUMP_DIRon a frame that shows the menu; find the text draw and check its bound texture and sampler.X2W_XG_VERBOSE=1for the layout answer the font texture got.Done when
The text draw is identified and the cause is fixed or split into a narrower issue, with a source-built fixture where possible.
Context:
docs/startup-runtime.md(#1135). Do not attach game files, dumps, screenshots or logs that containaddresses or names from an executable; describe results in terms of the component tested.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T03:29:35Z.
More on this one:
.wby the vertex alpha. That texture is a 2048×2048DXGI_FORMAT_A8_UNORM(65) resource, bound through an A8 view. Capitals and letters with ascenders or descenders come from a different pipeline that draws vector geometry and samples no texture; those render correctly.upload_texturere-hashes textures up to 32 MiB every 15 frames, but a first upload that fails the readability check, or a texture marked done by the "not uploaded" path, is not retried in a way that would show this.Reference: ivall/xcl@91f9a5e9f0, https://github.com/ivall/xcl/pull/252, observed 2026-11-24. That PR describes the same symptom with a CPU-filled A8 atlas there that was uploaded once while empty.
Public specification used: D3D12
CopyTextureRegion,GetCopyableFootprints,GetWriteWatch(Win32).Independent implementation: none yet (diagnostics only, in a local build).
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T04:01:44Z.
Two root causes found. With both addressed locally, the setup pages and the legal-notice page show complete, readable text.
1. Second texture of a wide descriptor load (fixed on #1135,
16ac9a22)The small-text pixel shader fetches two image descriptors with one
s_load_dwordx16and sampless[24:31]ands[32:39].gfx2hlsl.descriptor()returned the load's base offset for any register in the load, so both samples bound the SRV at table offset 0. The glyph sample read the wrong texture. The translator now adds the register's dword index, so the shader declares SRVs at offsets 0 and 32.tests/startup_translator_check.py(ctest -R startup_translator). It fails on the old code (both descriptors resolve to offset 0) and passes with the change..hlsl/.jsonpair or regenerate the cache.2. No blend state for UI pipelines (open, needs its own change)
find_blendlooks for a desktopD3D12_BLEND_DESCin the pipeline description. The executable's state blocks hold console register values instead, so no blend is found and every UI pipeline is created opaque. A8 glyph quads then draw as solid boxes.As a local experiment I added an env-gated fallback (
SRC_ALPHA / INV_SRC_ALPHAwhen no blend was decoded). That removes the boxes, but it is a guess, not a decode: additive or premultiplied pipelines will be wrong. The real fix is decoding the colour-blend control registers (per-target source/destination factor and function, as documented in AMD's public RDNA register references) intoD3D12_RENDER_TARGET_BLEND_DESC. I'll file that as a separate issue.A third, smaller change: A8 textures written by the CPU after the first upload needed a re-check every frame (it was every 15 frames). Otherwise text appears late or with missing glyphs for a moment.
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T04:07:58Z.
Reproduced on a second machine, with one extra cause that only shows on Windows 10.
Environment: Windows 10 Pro 19045, NVIDIA RTX 3060 (driver 32.0.15.9636), release build of
main(e3946dda) + #1135 at5e775dda+ local diagnostics. Not yet on 16ac9a22.What I see: same symptom. Capitals and letters with ascenders or descenders render; a c e m n o r s u v w x z are missing at first, and once their pipelines translate they draw as solid boxes.
Windows 10 specific: the glyph pipelines don't translate at all at first.
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED/SAMPLER_HEAP_DIRECTLY_INDEXED(0xC00). The in-box Windows 10 D3D12 runtime predates shader model 6.6 and rejects those flags withE_INVALIDARG. My local workaround retries serialization without them.s_load through s10 holding None, and their draws are skipped. That alone produces "missing short letters".0x800restored, the four glyph pipelines translate. Two more gaps had to be filled on the way: VOP2 SDWA (v_and_b32_sdwawith WORD_0/WORD_1 selects) andv_readfirstlane_b32.blend from none ... enable 0).Question: has anyone else on Windows 10 (no Agility SDK) hit the untranslated-glyph-pipeline step, or is everyone reporting this on Windows 11? Has anyone seen the boxes go away without a blend fallback?
We're evaluating solutions: picking up 16ac9a22, decoding the colour-blend registers instead of guessing, and tidying the root-flag restore into something reviewable. I'll report back here.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T04:25:41Z.
Follow-up: menu text now renders fully on Windows 10 (RTX 3060, 19045). Every setup and legal page reads correctly.
Three changes were needed together:
v_readfirstlane_b32.CB_BLENDn_CONTROLregisters; register location posted on #1216.Branch with 1 (two commits on top of #1135 at 16ac9a22): https://github.com/rasptum/Xbox2Windows/tree/startup/glyph-text-fixes
3ee22d92: root-flag restore95304976: SDWA and readfirstlane, plus checks intests/startup_translator_check.pyTested:
d3d12_xs.dllbuilds.The branch is based on #1135, not main, so it's for folding into #1135 or for a follow-up after it merges.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T05:19:07Z.
One specific page still differs on our RTX 4060 Laptop local integration build. Across three successive swap-chain captures, the Language page shows its title, scrollbar, 1 / 12 and Select, while the region for language names is blank. Other setup body text is legible on the same run (readbacks).
Could someone with the previously readable setup build check this exact page before selecting a language? Please report the commit and local patches, whether the focused language and the neighbouring rows have visible names, and what happens to the counter and names after one Down press and one Up press. A text report is sufficient. Main development is comparing the corresponding draws on the 4060 Laptop.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T05:46:50Z.
Local RTX 4060 Laptop result, Windows 11 26200.9974, NVIDIA 32.0.16.1656. The original diagnostic build showed only the LANGUAGE header, an empty list and the changing counter; 52 row draws at two selections made no change in the sampled list area. A later local build now shows named rows on the same screen. English was visibly highlighted at 1/12. After Down, Deutsch was visibly highlighted at 2/12. The list also displayed both Chinese variants.
Three observations separate the causes. Publishing the address-based SRVs resolved the texture bindings but left the rows empty. Applying the derived blend state restored the A8 mask and produced scrambled rows. Detiling the same single-mip BC3/BC7 input in 4 KiB standard order restored readable text. Distinct textures supply the selected and ordinary appearances. #1263 exercises the upstream placed-R8 portion of slot 70 using generated inputs. The address-only BC3/BC7 translated-draw path and its hardware/WARP source-built comparison are now in #1272, stacked on #1263.
For independent retest, please report the revision, adapter/driver, first two visible names, which one highlights after Down, and whether Up restores the first selection. A text report is sufficient. Binding follow-up.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:38:00Z.
Local retest passed for both English legal pages. Applying the wide descriptor offset fix from @denn0x and regenerating two pixel shaders and their binding manifests restored the right-hand paragraphs on the same RTX 4060 Laptop. Scrolling Terms of Service and switching back to Privacy Policy both kept the text readable. The same executable and DLLs were used in the paired runs. Implementation and cache regression in #1286.
Original reproduction and independent retest request follow.
The language selector now shows names and highlights. The English legal text still has a separate reproducible failure on our Windows 11 RTX 4060 Laptop build. On Privacy Policy, the left acknowledgement is readable while many letters in the right-hand paragraph are blank. Two independent offline runs show the same missing strokes. The Copyright notice also loses letters in its right pane.
We are tracing the affected draws locally. Independent retest welcome, especially from a build where the full paragraph is readable: please give the commit, Windows build, adapter/driver, whether shader-cache entries were regenerated, and whether both Privacy Policy and Terms of Service stay readable after scrolling and switching back. A text summary is enough. The earlier Windows 10 comparison is particularly relevant.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:56:00Z.
#1286 has landed with the wider descriptor-load correction and a new shader-cache key. In the local RTX 4060 Laptop run with refreshed translations, the English Privacy Policy and Terms of Service were readable after scrolling the Terms of Service and switching back. The source-built translator and cache checks passed alongside the RTX and WARP draw regressions.
For independent comparison, please record the revision, adapter/driver and Windows build, run the updated recording build once, then run
python tools/startup/gfx2hlsl.py --pending <cache-directory>before restarting. Please keep observations for other languages separate. Main-menu navigation is tracked in #870.Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T11:13:52Z.
Claiming this for the independent comparison you asked for.
What I will record: the exact revision under test, adapter and driver, Windows build, launcher options, whether the shader cache was refreshed before the run (
gfx2hlsl.py --pendingresult), and whether menu text is readable — legible glyphs versus broken/blank text — at the first-run screens. Captures stay local, as always.Why this machine is a useful independent arm: GTX 1660 SUPER (NVIDIA, driver 32.0.16.1074) on Windows 11 26200, i.e. a different vendor and generation from the RTX 4060 Laptop in your last report, and a 6 GB card where the descriptors and texture footprint decisions get stress-tested differently.
Specific thing I will watch, because it bit me today: on a stale cache six pipelines had no translation and the LEGAL NOTICES text was invisible while the layout boxes still drew. After
gfx2hlsl.py --pendingagainst current main the same screen rendered full text at 16/0 pipelines. So a "broken text" report can be a cache artifact rather than a translator defect, and I will state explicitly which of the two states each observation came from instead of reporting one number.I will report the reading against
origin/mainas of this claim, with the revision pinned, and say plainly if the text is readable, broken, or if the run stops before the screen in question.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-24T11:17:52Z.
Independent comparison, as requested. Result: menu text renders readable on this machine at the revision below — no broken glyphs at the screens reached.
Revision:
9ce46ef81018b8bd98a45633e3306c9e4830bc15(release preset, built from source;origin/mainwaseebc6c80when I fetched, so this is one fetch behind current main rather than a claim abouteebc6c80).Adapter/driver: NVIDIA GeForce GTX 1660 SUPER, driver
32.0.16.1074, 6 GB.OS: Windows 11 Pro, build 26200.
Launch:
-Render -FakeUser -GpuMirror -Seconds 260 -ContinueAsserts 2000 -InputScript '4@70',-DataDir 'G:\'on asubstof the package root, storage path set, offline.Shader cache state, which is the variable that has burned me: refreshed with
gfx2hlsl.py --pendingbefore the run — no.failentries left for the pipelines this run needed. This run reported 14 pipelines translated / 0 missing, 105,072 translated draws (0 not drawn), 1,371 textures uploaded.Observation, at the first-run screens reachable here (account picker → UI text size → navigation → subtitles → legal notices → copyright panel):
LEGAL NOTICES, the left-hand list items (Copyright,Photosensitivity Health Warning), theNextandBACK (B)prompts, and theCOPYRIGHTpanel body all render as legible text with correct letterforms;™glyph, which is the kind of mark that usually exposes a broken glyph atlas first;The negative control, for contrast, from the same machine earlier today: with a stale cache (six pipelines untranslated,
pipelines translated 10 / missing 6) the identical LEGAL NOTICES screen drew its layout boxes and background art but no legible text at all. Refreshing the translations fixed it with no code change. So on that screen, "broken menu text" and "untranslated pipelines" are indistinguishable to the eye, and a report that does not state the cache state can attribute a translator gap to a font/descriptor defect.What this does not establish: I did not verify text beyond the first-run flow (no in-game HUD, subtitles, or settings menus were reached); I did not test scrolling inside the terms panel the way your RTX 4060 run did; and this run stops later, on the main-game load, which is unrelated to this issue. If the residual symptom you care about only appears past that point, this arm cannot speak to it yet.
Happy to rerun on current
eebc6c80or to repeat with a deliberately stale cache as a control if that would be useful to separate cache state from renderer state for other reporters.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:23:15Z.
Closing the first-run text report. #1286 fixed the wide descriptor loads, and the independent GTX 1660 SUPER retest at 9ce46ef8 confirms legible setup and copyright text with a refreshed cache (14 translated, 0 missing). The earlier stale-cache run left six pipelines untranslated and omitted the legal text. #1416 has since landed support for retrying an absent manifest on later draws. Keep reporting later screens or languages with the tested commit and cache state. Main-menu navigation and the subsequent loading failure remain in #870.