CLAUDE.md: record the hardware bring-up results and remaining gaps
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 24s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 25s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 25s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 22s
build / module (push) Failing after 17s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / host-linux (push) Failing after 25s
build / obs (clang) (push) Failing after 25s
build / host-windows-cross (push) Failing after 26s
build / docs (push) Failing after 4s
build / obs (gcc) (push) Failing after 26s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WxYTZ8oBdHX3YrHGgdLKwC
This commit is contained in:
donnyandClaude Fable 5 committed 2026-08-20 16:55:22 -07:00
1 parent 9c4216b41c
commit 6ac02cd6b0
1 file changed
+32 -11
+32 -11
View File
@@ -18,18 +18,23 @@ before creating credentials.
## Start here ## Start here
**The immediate task is bringing up DXGI multi-monitor capture on real **DXGI multi-monitor capture was brought up on real hardware on 2026-08-20
hardware.** Everything else is implemented and tested. The DXGI path is and works end to end** — two 2560x1440 VDD displays on a passed-through RTX
written and cross-compiles, but has never run on a machine with more than one 3090, packed into a 2560x2880 atlas, composed and cropped per display by the
output attached. client. Three client bugs found during bring-up are fixed on this branch (see
the two `egl:` commits). The host must currently run with
`dxgi:allowRGB24=no` — see Known gaps.
Two things to establish from the user before assuming anything: Environment answers (were open questions):
1. **How does the Windows guest get its displays?** Dummy plugs on the 1. The guest gets its displays from a VDD (virtual display driver) on the
passed-through GPU, the Looking Glass IDD, or something else. This changes passed-through GPU; the monitor count lives in the VDD's settings. The
what the outputs look like to DXGI. VM's emulated VGA `<video>` device adds a ghost 800x600 display that
2. **Where does the client run?** The guest is captured once and any number of skews the desktop's input mapping — disconnect it in Windows display
clients can subscribe, so one client per physical monitor is viable. settings or set `<model type='none'/>`.
2. One client per guest display works: `app:display=0` and
`app:display=1 spice:enable=no` (indices 0-based; only one client may
keep SPICE or the server kicks the other).
## Environment setup ## Environment setup
@@ -132,6 +137,14 @@ Things learned the hard way; re-learning them costs hours.
produced an upside-down desktop that passed every geometry check. The produced an upside-down desktop that passed every geometry check. The
rendering test exists to catch exactly this — each test display carries a rendering test exists to catch exactly this — each test display carries a
marker in its top-left corner. marker in its top-left corner.
- **GL container objects are per context.** onFrameFormat runs on the frame
thread with its own shared context; VAOs and FBOs created there do not
exist in the render thread's context and the draw silently renders
nothing. Defer such setup to the render thread (see composeSetupPending).
Textures, buffers and programs are shared and safe.
- **The host writes its log next to the exe** (and prints nothing to the
console on Windows); `os:logFile=` redirects it. Writing it onto the
virtiofs share lets the Linux side read it live.
- **`framebuffer_write` needs a 32-byte aligned source.** It uses aligned - **`framebuffer_write` needs a 32-byte aligned source.** It uses aligned
streaming loads. `malloc` only guarantees 16 and will segfault; use streaming loads. `malloc` only guarantees 16 and will segfault; use
`aligned_alloc`. Real capture buffers are page aligned, so only test code `aligned_alloc`. Real capture buffers are page aligned, so only test code
@@ -158,7 +171,15 @@ as unrelated changes:
## Known gaps ## Known gaps
- **DXGI multi-output is unproven on hardware.** The top priority. - **RGB24 frames cannot be composed.** `dxgi:allowRGB24` defaults to on and
packs SDR frames as BGR_32, which `egl_composeSetup` refuses, so the
client silently falls back to showing the packed atlas. Until compose
learns the format, either the host should force RGB24 off while
multi-monitor capture is active, or the user must pass
`dxgi:allowRGB24=no`. The next session should fix the host side.
- **The cursor-view scaling fix is lightly tested.** It follows the same
view-not-desktop rule as input mapping, but user verification stopped
before it was confirmed on both displays.
- **HDR metadata is per output**, but the frame format carries one set. Mixed - **HDR metadata is per output**, but the frame format carries one set. Mixed
HDR and SDR monitors are refused rather than guessed at. HDR and SDR monitors are refused rather than guessed at.
- **Rotation is refused, not handled.** `KVMFRDisplay::rotation` exists for - **Rotation is refused, not handled.** `KVMFRDisplay::rotation` exists for