From 10e03cd7571e905c17092e234a74eed217f1c83d Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 16 Nov 2026 23:45:08 -0500 Subject: vgsp: eng89s - admit the real CALL(0) 0x3800 draw; GZ_EGL harness The real 570.144 direct-GL draw window (12068 B @ push 0x402f9d8) carries no 0x3910/0x3914 write. Its draw is an op=4 IMMD to method 0x3800 (imm=0xd48=3400) plus CALL slots 44/57/58 (0x3960/0x39c8/0x39d0), and the window has no colour-target bind of its own, so RT-gated admission sent it down the compute-QMD lane. Recognize and admit the real marker: the walker, chunk check and window marker accept 0x3800/0x3960/0x39c8/0x39d0 (0x3910/ 0x3914 kept); the call-0 admission predicate scans the admitted window (a pre-window run header can swallow the window head); the draw chunk is forced first (draw_slice=1, order 0) and the window replayed verbatim. The booter's DRAW_IAB window predicate accepts the op=4 CALL(0) and the secondaries, the census names slot 0 (MME-CALL-ARGS slot=0 data=), and the final emitted window gets MME-EXEC-CALL slot=0 (the physical GR front-end executes the CALL; the kernel has no CALL interpreter, the 0x114 prelude uploads precede the window in the same launch). Guest harness: add tools/guest-diag/gz_es.c and an on-demand build in push_gl_tools.sh; GZ_EGL=1 switches gzdoom_pbuf_run.sh/mission-gz.sh to SDL offscreen + real NVIDIA EGL/GLES (default unchanged); push_gl_tools.sh creates the NVIDIA EGL vendor ICD only when missing. Receipts: c1025 GL-FLUSH admitted=1, DRAW-WRITE m=0x3800 op=4 data=0xd48, 3D mark admitted (CALL(0) 0x3800 draw marker), 3D stream chunked, 3D chunk launch draw=1, MME-CALL-ARGS slot=0 data=0xd48, MME-EXEC-CALL slot=0 op=4 imm=0xd48. Exact 0x402f9d8 post-fix replay still unverified (run wedged on an earlier draw window); stores/px remain open. --- wiki/Graphics-Execution.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'wiki') diff --git a/wiki/Graphics-Execution.md b/wiki/Graphics-Execution.md index 4d879df..6cadc98 100644 --- a/wiki/Graphics-Execution.md +++ b/wiki/Graphics-Execution.md @@ -174,6 +174,33 @@ fidelity: miss (`wrote=0`, `0/1025` pages, `px0=0`); the window/screen present is still the frontier (ยง6), and the pack-completion and X-start lotteries remain the throughput limiters. + **The real client draw uses `CALL_MME_MACRO(0)`.** The real-NVIDIA-GL + capture (c1021/c1022) shows the 12068-byte draw window at push + `0x402f9d8` carries no `0x3910/0x3914` write. Its draw is an IMMD (op 4) + write to method `0x3800` (`hdr=8d480e00`, `imm=0xd48` = 3400), followed + by CALL slots 44/57/58 (`0x3960`, `0x39c8`, `0x39d0`). That window also + carries no colour-target bind of its own and no persisted bind was live, + so the RT-gated admission refused it and it retired through the + compute-QMD lane (`stream_3d=false`). Recognition now covers the real + marker: `0x3800` (op 4; `imm>=0x100` as the admission floor) plus + `0x3960/0x39c8/0x39d0`, with `0x3910/0x3914` kept; the call-0 predicate + scans the admitted window (`start_off..at_off`) because a pre-window run + header can swallow the window head (word 316's op=0 count=1059 covers + words 400..1459 and hides the CALL at word 655 from a from-zero walk). + Admission is on the real marker even without a bind, the chunk carrying + the CALL is forced first (`draw_slice=1`, order 0), and every chunk is + replayed verbatim. The CALL is not interpreted in software: the emitted + window is walked by the physical GR front-end (the `0x114` prelude + uploads precede the window in the same launch), and + `MME-EXEC-CALL slot=0 ... op=4 imm=...` records the call reaching the + emitted stream. c1025 receipts: `GL-FLUSH ... admitted=1`, + `DRAW-WRITE ... m=0x3800 op=4 data=0xd48`, `3D mark admitted (CALL(0) + 0x3800 draw marker)`, `3D stream chunked`, `3D chunk launch ... draw=1`, + `MME-CALL-ARGS slot=0 data=0xd48`, `MME-EXEC-CALL slot=0 ... imm=0xd48`. + The captured SA[0] is still unresolved (`addr=0x0`), the exact + 12068-byte window's post-fix admission was not re-captured (the run + wedged on an earlier draw window first), and stores / `DRAW_IAB + mac=0x22` remain the open frontier. ## 4. The channel and object picture * **Every submission lives on a channel**: a GPFIFO ring plus engine objects, -- cgit v1.2.3