Skip to content

ng1: add resident HostR and explicit observers (M5+M6) - #757

Merged
techomancer merged 4 commits into
techomancer:mainfrom
Tzeentchnet:feature/gpu-upstream-m5-m6
Nov 17, 2026
Merged

techomancer merged 4 commits into
techomancer:mainfrom
Tzeentchnet:feature/gpu-upstream-m5-m6

Conversation

@Tzeentchnet

@Tzeentchnet Tzeentchnet commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

#750 is integrated. This branch is rebased onto upstream main at 1fece730 and now contains only the four M5+M6 commits.

Summary

  • add one reusable, generation-keyed resident HostR snapshot for the selected RGB or auxiliary plane
  • preserve PIO read-then-advance, scalar DMA prime-then-read, bulk retirement, and sticky-failure behavior without exposing stale CPU planes
  • make resident display observation explicit with fixed DirectWgpu and ReadbackCompatibility modes
  • keep raw-plane observations separate from composed-frame capture, attribute every transfer reason/byte count, and forbid capture or renderer failure from switching modes
  • preserve native-window presentation, DID-history, screenshot, headless, VNC, and cursor coverage through the current DisplayHead architecture

Scope

This PR adds only four M5+M6 commits on top of the #750 implementation now in main. The resident modes remain test-only and there is no automatic compatibility fallback.

Validation

The exact 103-case resident gate passed on both required hardware backends on an NVIDIA RTX 5070:

  • 28 resident CPU tests
  • 4 flat-fill, 2 line, 2 HostW walker, 1 mixed HostW interpreter/JIT, 2 HostR port/retirement, 1 shade-DDA, 1 pattern-state, 3 command-ABI, and 3 direct-state tests
  • 19 resident GPU + 9 direct scanout tests on Vulkan
  • 19 resident GPU + 9 direct scanout tests on D3D12

Additional checks passed:

  • cargo check --locked -p iris --no-default-features
  • cargo check --locked -p iris --no-default-features --features wgpu
  • cargo check --locked -p iris --no-default-features --features rex-gpu
  • cargo check --locked -p iris-gui --features iris/wgpu
  • patch-equivalent range-diff after rebasing onto main at 1fece730 following ng1: complete resident GPU raster and HostW staging (M3+M4) #750's merge

@Tzeentchnet
Tzeentchnet force-pushed the feature/gpu-upstream-m5-m6 branch from dc16a33 to 7f119c6 Compare November 17, 2026 02:09
@techomancer
techomancer merged commit 30fb984 into techomancer:main Nov 17, 2026
9 checks passed
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.

2 participants