summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/mission-gz.sh
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 23:45:08 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 23:45:08 -0500
commit10e03cd7571e905c17092e234a74eed217f1c83d (patch)
tree4ebe8848dbcfa7332f5b55a643cbd771db1824bf /tools/guest-diag/mission-gz.sh
parent9386fe4b948e0aba2f3455671a77e18452ddc924 (diff)
downloadopen-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/mission-gz.sh')
-rw-r--r--tools/guest-diag/mission-gz.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/tools/guest-diag/mission-gz.sh b/tools/guest-diag/mission-gz.sh
index c4665d2..cb27503 100644
--- a/tools/guest-diag/mission-gz.sh
+++ b/tools/guest-diag/mission-gz.sh
@@ -8,6 +8,8 @@
#
# Env knobs: GZ_SECS (default 240) GLF_FRAMES (default 0 = skip probe)
# GLF_W/GLF_H GZCAP GZCAP_MAXF GZ_ATTEMPTS (default 2)
+# GZ_EGL (default 0; 1 = SDL offscreen + real NVIDIA EGL via
+# gz_es.so, no X - the c1020/c1021 real-GL path)
#
# 2026-11-16 (post-reboot c895-c898): the gl_frames probe is now OFF by default
# (GLF_FRAMES=0). It is a diagnostic, not a render source, and in the batch it
@@ -20,6 +22,8 @@ export DISPLAY=:0
GZCAP="${GZCAP:-/dev/shm/gzframes.bin}"
GZCAP_MAXF="${GZCAP_MAXF:-1800}"
GZ_ATTEMPTS="${GZ_ATTEMPTS:-2}"
+GZ_EGL="${GZ_EGL:-0}"
+export GZ_EGL
x_up() {
local t r
@@ -39,11 +43,17 @@ echo "mission start $(date +%T)"
rm -f /tmp/mission-done /tmp/gzframes.bin "$GZCAP"
mkdir -p /tmp/gzshots
-# 1. X up (the DDX ScreenInit is a per-start lottery)
+# 1. X up (the DDX ScreenInit is a per-start lottery). The GZ_EGL path is
+# offscreen EGL and does not need X at all.
XOK=0
-XTRY=$(x_up) && XOK=1
-echo "XOK try=$XTRY $(date +%T)"
-if [ "$XOK" = 0 ]; then echo "X-FAIL" > /tmp/mission-done; exit 1; fi
+if [ "$GZ_EGL" = "1" ]; then
+ XOK=1
+ echo "X skipped (GZ_EGL=1 offscreen EGL) $(date +%T)"
+else
+ XTRY=$(x_up) && XOK=1
+ echo "XOK try=$XTRY $(date +%T)"
+ if [ "$XOK" = 0 ]; then echo "X-FAIL" > /tmp/mission-done; exit 1; fi
+fi
bash /tmp/guest_mode.sh 2>/dev/null || true
# 2. Optional GPU GL probe (diagnostic only; off by default)
@@ -73,12 +83,12 @@ export GZ_RCFILE=/tmp/gz-rc
GZRC=255
attempt=1
while [ "$attempt" -le "$GZ_ATTEMPTS" ]; do
- if ! pgrep -x Xorg >/dev/null; then
+ if [ "$GZ_EGL" != "1" ] && ! pgrep -x Xorg >/dev/null; then
echo "X dead before GZDoom attempt $attempt - restarting" >> /tmp/mission-gz.log
x_up >/dev/null 2>&1 || { echo "X restart failed" >> /tmp/mission-gz.log; break; }
fi
rm -f "$GZ_RCFILE"
- GZ_DETACH=1 TIMEOUT="$GZ_SECS" GZLOG=/tmp/mission-gz.log GZCAP="$GZCAP" \
+ GZ_EGL="$GZ_EGL" GZ_DETACH=1 TIMEOUT="$GZ_SECS" GZLOG=/tmp/mission-gz.log GZCAP="$GZCAP" \
GZCAP_MAXF="$GZCAP_MAXF" \
GZPBUF_W="${GZPBUF_W:-640}" GZPBUF_H="${GZPBUF_H:-480}" \
bash /tmp/gzdoom_pbuf_run.sh