Skip to content

docs/retail_boot_chain.md: the first UI draw reads its transform through a V# outside the arena (RT-753) - #8862

Closed
GreemSC wants to merge 1 commit into
ProjectLeonida:mainfrom
GreemSC:docs/rt753-ui-draw-vsharp
Closed

GreemSC wants to merge 1 commit into
ProjectLeonida:mainfrom
GreemSC:docs/rt753-ui-draw-vsharp

Conversation

@GreemSC

@GreemSC GreemSC commented Nov 23, 2026 •

Copy link
Copy Markdown

Claimed in the coordination issue as: RT-753 (#8047 (comment); finding #8683 (comment))

Depends on: #8166 (both change section 4's last sentence of docs/retail_boot_chain.md; whichever lands second rebases)

What and why

RT-753 asked why the title's one UI draw writes nothing once a cleared colour reaches PresentX. This records the measured answer in docs/retail_boot_chain.md, as a new section 3.5, and updates section 4's "nothing has reached a draw or a present yet":

  • The draw's vertex shader takes its pixel-to-clip transform through a V# in a descriptor table (SetGraphicsRootDescriptorTable, the table in the title's own heap). The V#'s base is in the title's own memory, not in the BDA arena, and not inside the slot-133 buffer. The translated shader adds heap_base to it, the case D3D-53 in docs/d3d12_vulkan.md already measured as unreachable for a V#, so every vertex collapses.
  • It is not the pipeline: with the clear forced red, all 8,294,400 pixels of every captured frame stay red, also with blending off and the pixel shader's OpKill replaced by OpReturn.
  • Under Wine on AMD, RADV refuses to import slot 133's section-backed pages (it imports private VirtualAlloc memory), so nothing is submitted without a shadow; d3d12: a slot-133 buffer whose pages can't be imported is a shadow at the title's VA, re-copied before each submit #8225's shadow gets the lists submitted.

Docs only. The fix itself is the single-address-space item @Etr0p claimed in #8683.

Tested

  • python3 -I tests/test_docs_list_items.py, test_docs_repo_paths.py, test_docs_repeated_lines.py, test_docs_env_vars.py, test_docs_table_ids.py: OK. test_docs_links.py fails on main too (docs/dev-tools.md), unchanged by this.
  • python3 -I scripts/check_no_game_data.py docs/retail_boot_chain.md: exit 0.
  • The measurements behind the text: Linux, Wine 11.22, AMD Radeon RX 7900 XT (RADV, Mesa 26.2.5), own 1.0.2.1 copy, gta6rt --run with LEONIDA_D3D12=vulkan and the game shaders translated, on a local integration of the open boot-path PRs plus local diagnostics (not part of this PR). The RADV import refusal was also reproduced with a synthetic test, no game data (posted in Coordinating who works on what (52) (moved to #8683) #8504).

AI-assisted: yes (Claude Code)

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: docs only)

🤖 Generated with Claude Code

…ugh a V# outside the arena (RT-753)

Records why the title's one back-buffer draw writes no pixel once the frame
loop runs: its vertex shader takes its transform through a V# whose base is
in the title's own memory, which heap_base cannot reach (D3D-53). Also
records that RADV under Wine refuses to import slot 133's section-backed
pages, and that ItsNotRexed#8225's shadow gets the lists submitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@YordiLorenzo

Copy link
Copy Markdown

Tested 1e748cc on Linux, Python 3.14.4: pass

git merge-tree with #8166 conflicts: both change the last sentence of section 4 ("Nothing has reached a draw or a present yet"), and #8166 adds a section 5 after it. Worth a Depends on line so the second one rebases.

@GreemSC

GreemSC commented Nov 23, 2026

Copy link
Copy Markdown
Author

@YordiLorenzo thanks, added Depends on: #8166: both edit section 4's last sentence, so whichever lands second rebases. AI-assisted (Claude Code).

@OlaiFG7

OlaiFG7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reviewed 1e748cc, docs read, AI-assisted: the D3D-53 statement matches docs/d3d12_vulkan.md:1471, #8225 and section 3.4 exist, and the text carries counts only, with no addresses or offsets. The conflict with #8166 on the last sentence of section 4 is already stated in the Depends-on line.

tibzejoker pushed a commit to tibzejoker/Leonida that referenced this pull request Nov 23, 2026
…ugh an arena window

A root view or buffer V# may name the title's own memory outside any
slot-133 buffer (a per-frame constant ring, ItsNotRexed#8862 section 3.5). The
layer now makes a 64 KiB-aligned window of those pages in the GPU
address arena, copies it before every submission like a slot-133
shadow, and names that copy instead: for root views when set, for V#s
the layer writes, and for buffer V#s the title writes into a bound
CBV/SRV/UAV table itself, rewritten in place before each submission.
Counters per kind, LEONIDA_TITLE_WINDOWS_MB caps the windows (64 MiB).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants