From 3a0a1eba404919951ca3333ae9492f7213e60f75 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Tue, 17 Nov 2026 01:19:29 -0500 Subject: docs(wiki): 2026-11-17 status refresh - real GPU-GL draw admitted/replayed; per-draw MME macro body is the gate - 11 wiki pages refreshed: the offscreen EGL/GBM shim gives the guest a real NVIDIA GL context without Xorg/DDX; the real GZDoom draw window (12068 B at push 0x402f9d8, op=4 CALL(0) 0x3800 imm 0xd48 plus slots 44/57/58) is recognised, admitted bind-free, chunked and replayed verbatim. - CALL(0) executes without trapping (eng89t resolve through client SA[0] then golden, not-resident calls elided); c1026/c1027 entered the captured macro and c1027 reached the first DS with real stage data. Trap 0x80001528 decoded as a sticky TRAPPED_ADDR latch, not a cause/PC. - Remaining gate recorded precisely: the client's per-draw MME macro body was never captured (the prelude carries only the 12 setup macros), with the synthetic golden body the surviving wedge; stores still wrote=0, no px. - STATE-CURRENT.md snapshot prepended; wiki published to open-iov.org (revs 24221-24231; 68 pages audited, 0 problems). --- wiki/OpenGL.md | 60 ++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 20 deletions(-) (limited to 'wiki/OpenGL.md') diff --git a/wiki/OpenGL.md b/wiki/OpenGL.md index 62f9a01..eec40d9 100644 --- a/wiki/OpenGL.md +++ b/wiki/OpenGL.md @@ -12,7 +12,7 @@ > [`../docs/03-architecture/02-guest-stack-and-cudasw.md`](../docs/03-architecture/02-guest-stack-and-cudasw.md) > (the guest stack). The docs tree wins on disagreement. -Status: 2026-11-16, tree `master @ a06d4b13`. Tags: `[live]` observed with the +Status: 2026-11-17, tree `master @ 1db3831e`. Tags: `[live]` observed with the stock guest driver; `[wip]` partial; `[wall]` current blocker; `[target]` defined success state. @@ -109,7 +109,10 @@ Rated honestly, against the milestone ladder in the plan: | Real frame pushes admitted: persisted colour-target bind from an earlier trusted push (`RT-PERSIST`), draw markers accepted inside counted method runs, 14.8-thousand-word window admitted and replayed as 40 chunks, data-led start snap (`WIN-START-SNAP`), 128-slot candidate ring | `[live]` | | Clean DS on the beef draw lane after the full-window chunking (`DS-FAST2 ... ds_after=80000000`, c963) at the live-derived GS attribute map (maps=6), no SPH18; draw anchor after the first `0x3810` and raster enables emitted | `[live]` | | Golden 2799-word MME pack on capture-less boots (`MME-GOLDEN overlay`, `MME-PRELUDE pack ir_words=2799`); `MME-CALL-HOLD -> MME-CARRY-SAVE -> MME-CARRY-FIRE -> MME-PACK-REARM -> MME-SA-REARM` fires; prelude latch kept across the per-fire channel recycle (`MME-LATCH-KEEP`); admitted-window chunks forwarded in order | `[live]` | -| Guest draw submission: across 36 boots (c990-c1019) the client never submits a non-null `CALL(34)` draw macro — every `0x3910/0x3914` hit is an interior method write with `data=0x0`; no CALL header in the admitted windows (`DRAW-SCAN-PRE` found=0); guest EGL/dri2 failures and OOM kills in the same cycles; stores `wrote=0` / `0/1025` | `[wall]` | +| Guest GL submission crossed (late 11-16): offscreen SDL EGL/GBM shim (`GZ_EGL`) gives GZDoom a real NVIDIA GL context without Xorg/DDX (`GL_RENDERER: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2`, `GL_VERSION: 4.6.0 NVIDIA 570.144`; no llvmpipe) | `[live]` | +| Real GZDoom draw decoded and admitted: 12068 B window at push `0x402f9d8`, op=4 IMMD CALL to method `0x3800` (`imm=0xd48`) plus slots 44/57/58 (`0x3960/0x39c8/0x39d0`), no `0x3910/0x3914`; marker recognition, bind-free admission, draw-chunk-first, verbatim chunk replay (`3D chunk launch ... draw=1`) | `[live]` | +| `CALL(0)` executes without trapping: immediate resolved as an IR address through client SA[0] then golden (`MME-CALL-RESOLVE`), not-resident calls elided (`MME-CALL-UNMAPPED ... reason=not-resident`); c1026/c1027 entered the captured macro (`macro-status=00000004`, mpc 0->4), first DS with real stage data (`DS-FAST2 ds_after=83044206 stage=015e0900,015e0a00,015c0400`); trap `0x80001528` decoded as a sticky TRAPPED_ADDR latch, not a cause/PC | `[live]` | +| Per-draw MME macro body: never captured (the 59580-B prelude carries only the 12 setup macros, 573 code words pc 0..0x98; the draw push has no `0x114/0x11c`; `0xd48` is a length/argument, not an IR entry); the surviving wedge is the synthetic golden body (`badf1201 pc=513 mac=0xf1`) on a non-CALL(0) launch; stores `wrote=0`, no `px_nonblack` | `[wall]` | | GZDoom video via the guest **software GL** path (Mesa llvmpipe): four byte-verified files (22 s flight + 18 s orbit, 640x480/1280x960, 30 fps) — a guaranteed-quality deliverable, **not** a vGPU rendering claim | `[live]` (software path) | | Pack-completion and shallow-boot lotteries gate the deterministic release (throughput limiters) | `[wip]` | | Window/screen present produces non-black screen pixels | `[wall]` | @@ -172,18 +175,32 @@ start snap and a 128-slot candidate ring), the beef draw lane latches a attribute map, capture-less boots get the **golden 2799-word MME pack** and `MME-CALL-HOLD -> MME-CARRY-SAVE -> MME-CARRY-FIRE -> MME-PACK-REARM -> MME-SA-REARM` fires, the prelude latch survives the per-fire channel recycle, -and chunks are forwarded in order. The **decisive finding is guest-side**: -across 36 boots (c990-c1019) the client never submits a non-null `CALL(34)` -draw macro — every `0x3910/0x3914` hit is an interior method write with -`data=0x0`, no CALL header exists in the admitted windows, and the same -cycles logged guest EGL/dri2 failures and OOM kills. So the next work is -guest-first: repair/verify the guest GL/EGL path and memory, capture one real -frame submission, then the vertex/store and the window/screen present path -(glxgears' window is black and a window draw can wedge X), with the per-boot -X first-generation start lottery as the throughput limiter — then the first -rendered screen frame. A GZDoom video was separately delivered through the -guest's **software GL** path (Mesa llvmpipe) as a guaranteed-quality -deliverable; it is not a vGPU rendering claim. +and chunks are forwarded in order. The **late-11-16 wave crossed the guest submission gap.** An offscreen SDL +EGL/GBM shim (`GZ_EGL`) gives GZDoom a real NVIDIA GL context without +Xorg/DDX (`GL_RENDERER: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2`, +`GL_VERSION: 4.6.0 NVIDIA 570.144`; no llvmpipe), and the real draw window +surfaced: 12068 B at push `0x402f9d8`, an op=4 IMMD CALL to method `0x3800` +(`imm=0xd48`) plus CALL slots 44/57/58 (`0x3960/0x39c8/0x39d0`), with no +`0x3910/0x3914` and no colour-target bind of its own. Marker recognition now +covers the real draw, admission happens on the marker even without a bind, +the CALL-bearing chunk is forced first and every chunk is replayed verbatim. +**`CALL(0)` no longer wedges**: eng89t resolves the immediate as an IR +address through client SA[0] (then golden) and elides a not-resident call to +a NOP; c1026/c1027 entered the captured macro (`macro-status=00000004`, +`mpc` 0->4) without trapping, and c1027 produced the first DS with real +stage data (`DS-FAST2 ds_after=83044206 stage=015e0900,015e0a00,015c0400`). +The remaining gate is precise: the **client's per-draw MME macro body was +never captured** (the 59580-byte prelude carries only the 12 setup macros; +the draw push has no `0x114/0x11c`; `0xd48` is a length/argument), and the +surviving wedge is the synthetic golden body (`badf1201 pc=513 mac=0xf1`). +Next: capture the per-draw `0x114` upload or implement/verify the MME64 body, +install it before the draw launch, then `DS-FAST2 ds_after=8[01]`, +`GUEST-WIT va=0x15d`, `wrote>0`, `px0!=0`; then the window/screen present +path (glxgears' window is black and a window draw can wedge X), with the +per-boot X first-generation start lottery as the throughput limiter. A +GZDoom video was separately delivered through the guest's **software GL** +path (Mesa llvmpipe) as a guaranteed-quality deliverable; it is not a vGPU +rendering claim. ## 6. What is not claimed @@ -191,12 +208,15 @@ deliverable; it is not a vGPU rendering claim. vGPU yet; every vGPU screen capture so far is black. The non-black frames and the videos (45.4 s and 50 s) come from the off-screen pbuffer path (pbuffer -> sysmem -> kvmfr ivshmem -> host reader), not from a windowed X - screen capture. The host-side chain is proven end to end (admission, clean - DS, golden pack, CALL hold, carry fire, SA re-arm), but the decisive 11-16 - finding is that the client did not submit a non-null `CALL(34)` draw macro - in the recorded boots, so the stores are still missing; a synchronous - window draw can wedge X, and X start retains a per-boot first-generation - lottery. Those are the current walls. + screen capture. The host-side chain is proven end to end, and the late + 11-16 wave crossed the guest submission gap: the real NVIDIA EGL context, + the real op=4 `CALL(0)` `0x3800` draw admitted and replayed, `CALL(0)` + entering its captured macro without trapping, and the first DS with real + stage data. But the client's per-draw MME macro body was never captured, + the surviving wedge is the synthetic golden body, and no surface store or + pixel exists yet (`wrote=0`); a synchronous window draw can wedge X, and X + start retains a per-boot first-generation lottery. Those are the current + walls. * **The 2026-11-16 GZDoom video is a software-GL deliverable, not a vGPU result.** Mesa llvmpipe rendered it inside the guest; it is a guaranteed-quality demonstration while the GPU-GL pixel path is being -- cgit v1.2.3