diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 23:45:08 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 23:45:08 -0500 |
| commit | 10e03cd7571e905c17092e234a74eed217f1c83d (patch) | |
| tree | 4ebe8848dbcfa7332f5b55a643cbd771db1824bf /tools/guest-diag/gzdoom_pbuf_run.sh | |
| parent | 9386fe4b948e0aba2f3455671a77e18452ddc924 (diff) | |
| download | open-iov-10e03cd7571e905c17092e234a74eed217f1c83d.tar.gz open-iov-10e03cd7571e905c17092e234a74eed217f1c83d.zip | |
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.
Diffstat (limited to 'tools/guest-diag/gzdoom_pbuf_run.sh')
| -rwxr-xr-x | tools/guest-diag/gzdoom_pbuf_run.sh | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/tools/guest-diag/gzdoom_pbuf_run.sh b/tools/guest-diag/gzdoom_pbuf_run.sh index 49c5c96..6d9e8b7 100755 --- a/tools/guest-diag/gzdoom_pbuf_run.sh +++ b/tools/guest-diag/gzdoom_pbuf_run.sh @@ -16,6 +16,9 @@ # GZ_ARGS extra GZDoom args appended after the base set # GZ_DETACH default 0; set 1 to setsid/nohup the run and return # DISPLAY default :0 +# GZ_EGL default 0; set 1 to use SDL's offscreen driver with a real +# NVIDIA EGL/GLES context via gz_es.so (no X, no GLX; the +# c1020/c1021 real-GL path). The pbuffer shims are not used. # # The base args are windowed GL: +set vid_fullscreen 0, 640x480, OpenGL # backend 0, +vid_rendermode 4 (GL mode), MAP01. The preload order matters: @@ -35,10 +38,21 @@ GZ_ARGS="${GZ_ARGS:-}" GZ_DETACH="${GZ_DETACH:-0}" GZ_RCFILE="${GZ_RCFILE:-/tmp/gz-rc}" DISPLAY="${DISPLAY:-:0}" +GZ_EGL="${GZ_EGL:-0}" SDL_VIDEODRIVER="${SDL_VIDEODRIVER:-offscreen}" -LD_PRELOAD="${LD_PRELOAD:-/tmp/sdl_cap.so /tmp/gz_pbuf.so}" +if [ "$GZ_EGL" = "1" ]; then + SDL_VIDEO_EGL_DRIVER="${SDL_VIDEO_EGL_DRIVER:-/usr/lib/x86_64-linux-gnu/libEGL.so.1}" + LD_PRELOAD="${LD_PRELOAD:-/tmp/gz_es.so}" + GZ_BACKEND="${GZ_BACKEND:-2}" + SHIMS="/tmp/gz_es.so" +else + SDL_VIDEO_EGL_DRIVER="${SDL_VIDEO_EGL_DRIVER:-}" + LD_PRELOAD="${LD_PRELOAD:-/tmp/sdl_cap.so /tmp/gz_pbuf.so}" + GZ_BACKEND="${GZ_BACKEND:-0}" + SHIMS="/tmp/sdl_cap.so /tmp/gz_pbuf.so" +fi -export DISPLAY SDL_VIDEODRIVER LD_PRELOAD GZCAP GZCAP_MAXF GZPBUF_W GZPBUF_H GZ_RCFILE +export DISPLAY SDL_VIDEODRIVER SDL_VIDEO_EGL_DRIVER LD_PRELOAD GZCAP GZCAP_MAXF GZPBUF_W GZPBUF_H GZ_RCFILE GZ_EGL if [ ! -x "$GZDOOM_BIN" ]; then echo "gzdoom_pbuf_run: GZDOOM_BIN not executable: $GZDOOM_BIN" >&2 @@ -48,7 +62,7 @@ if [ ! -f "$WAD" ]; then echo "gzdoom_pbuf_run: WAD not found: $WAD" >&2 exit 2 fi -for so in /tmp/sdl_cap.so /tmp/gz_pbuf.so; do +for so in $SHIMS; do if [ ! -f "$so" ]; then echo "gzdoom_pbuf_run: shim missing: $so" >&2 exit 2 @@ -61,7 +75,7 @@ CMD=( +set vid_fullscreen 0 +set vid_defwidth "$GZPBUF_W" +set vid_defheight "$GZPBUF_H" - +set vid_preferbackend 0 + +set vid_preferbackend "$GZ_BACKEND" +vid_rendermode 4 -nosound -nomusic @@ -76,7 +90,7 @@ if [ -n "$GZ_ARGS" ]; then CMD+=("${GZ_EXTRA[@]}") fi -echo "gzdoom_pbuf_run: DISPLAY=$DISPLAY SDL_VIDEODRIVER=$SDL_VIDEODRIVER" +echo "gzdoom_pbuf_run: DISPLAY=$DISPLAY SDL_VIDEODRIVER=$SDL_VIDEODRIVER GZ_EGL=$GZ_EGL" echo "gzdoom_pbuf_run: LD_PRELOAD=$LD_PRELOAD" echo "gzdoom_pbuf_run: GZCAP=$GZCAP GZCAP_MAXF=$GZCAP_MAXF GZPBUF_W=$GZPBUF_W GZPBUF_H=$GZPBUF_H" echo "gzdoom_pbuf_run: LOG=$GZLOG TIMEOUT=$TIMEOUT DETACH=$GZ_DETACH" |
