docs/INDEX.md stays the one index. Every page gets one navigation line under
its title that points back to it, and runtime/ gets a reference page for the
environment variables.
docs/runtime/environment-variables.md lists every RECOMP_* switch the runtime
and tools read: its default, its effect and the source file that reads it,
grouped as bring-up, kernel, pushbuffer executor, video, audio and input.
Fifty-one of them were not in the docs at all. docs/INDEX.md links it from
"Start Here".
No page is renamed, moved or rewritten, and no other index is added.
Checked: every RECOMP_* name read by getenv, env_on, apu_env_on, env_int or
xa2_env_int in src/, tools/, templates/ and include/ is on the page, and
every name on the page is in the source. All relative links in docs/ resolve
(0 broken, as at v0.16.0). The 34 existing pages change by insertion only:
68 lines added, none removed. docs/INDEX.md gains one line.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Review of #162 (round 2):
- The walk stops at PUT inside a method's parameters and finishes the
same method when PUT moves, as the DMA engine does. It no longer runs
on through stale ring contents, and it no longer reads the leftover
parameters as headers (D3D streams large inline arrays across kicks).
A CALL inside a CALL stops the walk instead of overwriting the return
address.
- fetch_attr checks every vertex read against guest memory, so a garbage
32-bit index drops the batch instead of reading past guest RAM. Surface
writes are refused outside guest memory and on the thread stacks, as
they already were on the image.
- 2x2 anti-aliasing: the framebuffer window takes every other row
(xbox_FramebufferWindowSetAA), and the screen-space fallback scales its
vertices like the clip rect.
- s_xf and s_bverts are allocated on first use (about 13 MB).
- Tests: PUT inside a method, nested CALL and self-jump in nv2a_pb_walk;
a garbage index, lighting below the clamp with an attenuated local
light, and the 0x0310 latch in nv2a_ffp_backend.
- Docs: the back-end advice is marked as coming from a back end not in
this tree.
The Burnout 3 run: with RECOMP_PB_EXEC=1 the DMA walk froze it at the
Crash Nav menu and in the garage, where v0.13.0 runs. A freeze report put
the main thread in KeWaitForSingleObject under D3D's fence wait: told
exactly how far the GPU has got, D3D patches a software method into the
pushbuffer and sleeps on the event the GPU's interrupt for it would set,
and this runtime does not deliver that interrupt. The walk commit alone
reproduces it. So the walk is now opt-in, RECOMP_PB_WALK=dma, and the
default is the segment scan v0.13.0 used, with 0x0310 unmodelled as
before. In the default mode Burnout 3 runs Crash Nav and loads the car,
with no faults. Under the walk, a project that mirrors its fence
(xbox_Nv2aMirrorFence) gets a 0x0310 latch whose fence bits match the
mirrored word.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pushbuffer-executor.md covers what sits around the v0.13.0 rasteriser: the
DMA-engine walk, answering the title while it runs, fixed-function transform
and lighting, anti-aliased surfaces, index width and the back-end interface.
d3d8ltcg-device-context.md gains the semaphore hand-off for a title whose fence
wait is replaced while the executor runs, and the PGRAPH 0x400B10 wait.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>