Skip to content

graphics: complete GPU milestones M9-M16 - #767

Open
Tzeentchnet wants to merge 1 commit into
techomancer:mainfrom
Tzeentchnet:feature/gpu-upstream-m9-m16
Open

Tzeentchnet wants to merge 1 commit into
techomancer:mainfrom
Tzeentchnet:feature/gpu-upstream-m9-m16

Conversation

@Tzeentchnet

@Tzeentchnet Tzeentchnet commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Important

#757 and #758 are integrated. This PR is rebased directly onto upstream main at eb82d0ae and contains exactly one M9-M16 commit.

Summary

  • activate Newport's resident wgpu path in production builds and wire explicit raster/presentation configuration through machines and frontends
  • complete IMPACT correctness, board-matrix, GPU-residency, telemetry, failure, and snapshot lifecycle work for Indigo2 and Octane
  • close VPro's silent framebuffer-fallback and transfer gaps, add typed telemetry, and add atomic stopped snapshots with GPU-authoritative restore/reseed on Octane
  • make GR2 XZ/Extreme complete schema-10 snapshot, rollback, reset, and stopped-lifecycle participants
  • add representative GR2 span/batching telemetry and retain gr2-jit after the predefined resident-GPU gate produced an evidence-based no-go

Milestones

M9+M10 - Newport production activation and frontends

  • compile and manage the resident worker through the production board lifecycle
  • keep direct wgpu and explicit readback compatibility fixed for the board lifetime; failures remain explicit and fail closed
  • validate and share the selected device across dual Newport heads and direct presentation
  • add configuration, machine, CLI, GUI, headless, screenshot, VNC/capture, and compatibility-mode wiring without silent mode changes

M11+M12 - IMPACT correctness, residency, and lifecycle

  • extend window/buffer, pixel-format, destination-RE, texture, context, fog, lighting, and Solid/High/Maximum coverage across the interpreter and gr4-jit
  • keep GPU pixel pages authoritative, attribute observations and transfer bytes, and turn GPU synchronization failures into sticky fail-closed state
  • snapshot complete stopped HQ3/HQ4, GE, RSS, ERAM, TRAM, board-memory, interrupt, and display state
  • integrate atomic IMPACT disk snapshots and rollback with Octane's XIO wrapper, including GPU mirror reseeding after restore

M13+M14 - VPro residency and Octane snapshots

  • reject unsupported production GPU work instead of silently drawing through stale CPU memory
  • move supported copy/view/depth operations into ordered GPU work and keep DMA/debug/screenshot observations bounded and reason-tagged
  • add batch, copy, readback, rejection, latency, and device-loss telemetry
  • snapshot command/display FIFOs, contexts, query/fence state, lookup tables, board state, and 32/128 MiB memory before publishing a restored epoch
  • support exact Octane V6/V8/V10/V12 round trips with atomic validation and GPU-authoritative memory reseeding

M15+M16 - GR2 lifecycle and measured GPU decision

  • add exact named state, vram, and zbuf parts while retaining schema 6-9 decoding
  • preserve HQ2 parser/GL continuation, RE3 state, SRAM/microcode, display state, FIN2 waits, and unread GEDMA across disk, rollback, and live checkpoints
  • measure checked-in GL traces: 480-1,116 spans, 160,740-177,600 pixels, maximum batchable runs of 300-816, and 3-11 synchronization boundaries
  • measure warmed gr2-jit at 178-568 Mpx/s across 4-1,280-pixel spans, 1.33-2.86x faster than the interpreter

Decision: defer a resident RE3 wgpu implementation and retain gr2-jit. The traces establish batching potential, but there is no GPU prototype that beats the warm-JIT large-span baseline or proves the <=5% short-span bound; ordinary presentation still scans 1,310,720 host pixels per frame, and no repeatable representative guest benefit has been measured. This does not conclude that efficient acceleration is impossible.

Commit scope

The incremental M9-M16 change is one commit (786a7306), touching 95 files with 7,016 insertions and 956 deletions. GitHub now displays only this isolated commit.

Validation

Current rebased tip on main at eb82d0ae:

  • exact 131-case Newport gate passed without skips on Vulkan and D3D12
    • Vulkan: NVIDIA GeForce RTX 5070
    • D3D12: NVIDIA GeForce RTX 5070
  • GR2 live/rollback and disk snapshot integration passed
  • Octane IMPACT and VPro disk snapshot round trips passed
  • D3D12 VPro flat-triangle depth parity and GPU restore/reseed passed with the backend explicitly selected
  • cargo check for the combined wgpu,gpujit core configuration passed
  • iris-gui with iris/wgpu passed
  • git diff --check passed

Full consolidated-campaign validation:

  • GR2: 125 active release tests passed; four ignored
  • snapshot/schema: 39 active tests passed; one ignored
  • IMPACT CPU/gr4-jit: 227 active tests passed; two ignored
  • shared IMPACT/VPro wgpu suite: 34 active tests passed and one ignored on each of Vulkan and D3D12
  • IMPACT and VPro GPU snapshot/reseed tests passed on both backends
  • GR2 six-sample interleaved span benchmark passed
  • all eight core/frontend feature checks passed

One existing-checkout caveat: the tracked VPro golden fixture was checked out as CRLF despite eol=lf, so the default byte-string comparison reported line-ending differences locally. The tolerance verifier reported zero moved rows and zero numeric differences in every field. A normalized checkout uses the tracked LF form; no broad fixture rewrite is included.

@Tzeentchnet
Tzeentchnet force-pushed the feature/gpu-upstream-m9-m16 branch 2 times, most recently from f5d26ce to 226a785 Compare November 17, 2026 03:34
Activate the production Newport resident path and explicit frontend modes. Complete IMPACT engine fidelity and snapshot lifecycle, make VPro GPU failures fail closed with full Octane snapshots, and add complete GR2 lifecycle state plus measured resident-GPU decision telemetry.

Keep VPro bit-exact on Vulkan and D3D12, and retain gr2-jit after the evidence gate does not justify a resident RE3 wgpu implementation.
@Tzeentchnet
Tzeentchnet force-pushed the feature/gpu-upstream-m9-m16 branch from 226a785 to 786a730 Compare November 17, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant