Commit Graph
3811 Commits
Author SHA1 Message Date
donny 5e2fd18b5c common: align each display's atlas offset for direct scanout
build / module (push) Failing after 18s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / host-linux (push) Failing after 21s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 20s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 22s
build / client (Debug, 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 (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
The alignment argument only rounded up the atlas width, so a display's X
offset was an arbitrary running sum of the widths before it. A consumer
pointing display hardware at one display's region needs that region's base
address 256 byte aligned, and with unaligned offsets some displays would
land on legal addresses and some would not — giving the fast path to only
some monitors, which is worse than uniform slowness because the difference
is hard to diagnose.

Each display's X offset is now aligned as well, and the candidate shelf
widths account for the padding so they still describe shelves that can
hold the set. Both capture backends pass an alignment derived from their
pixel size.

Costs nothing for common resolutions: 3840, 2560 and 1920 are all
multiples of 64. Only unusual widths pad at all — a 2160 wide portrait
display grows the atlas by 16 pixels.

Also documents the consumer contract: the alignment guarantee, frame
lifetime under the two deep queue and one second subscriber timeout, and
that damage is in packed frame coordinates.
2026-07-28 09:09:24 +00:00
donny fc0c2cfc37 Stop tracking cross compile build artifacts
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 22s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 17s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / obs (gcc) (push) Failing after 21s
build / host-linux (push) Failing after 20s
build / host-windows-cross (push) Failing after 20s
build / obs (clang) (push) Failing after 20s
build / docs (push) Failing after 4s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 27s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 22s
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 / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
host/build-win was swept in by git add -A: .gitignore covered */build but
not the build-win directory used for the Windows cross compile. Removes
275 tracked files (6.3MB of objects, generated makefiles and CMake caches)
and widens the ignore rules so no build directory is tracked again.
2026-07-28 09:05:53 +00:00
donny 57fae1bf31 Add CLAUDE.md to hand this work over
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 17s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / host-linux (push) Failing after 25s
build / host-windows-cross (push) Failing after 28s
build / docs (push) Failing after 11s
build / obs (clang) (push) Failing after 46s
build / obs (gcc) (push) Failing after 28s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
Records what is proven versus unproven, how to rebuild and test from
nothing, the DXGI bring-up procedure, the design decisions that should not
be undone, and the gotchas that cost time to find the first time.
2026-07-28 08:58:57 +00:00
donny 9331696db4 xcb: allow a manual monitor layout, and add a live demo
build / host-linux (push) Failing after 19s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 17s
build / host-windows-cross (push) Failing after 20s
build / obs (clang) (push) Failing after 20s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
Nested and virtual X servers accept xrandr --setmonitor but ignore it, so
there is no way to describe a multi-monitor desktop to Xvfb or Xephyr.
xcb:monitors lets a layout be given directly, which makes any X server
usable as a multi-monitor capture source.

demo-multimon.sh uses it to run the whole pipeline locally: a virtual
desktop with real applications on three monitors, captured by the host,
packed, and composed back by the real client, with the result captured to
a PNG.
2026-07-28 08:52:50 +00:00
donny e582faed84 dxgi: track damage per output and translate it into atlas space
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / module (push) Failing after 16s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / obs (gcc) (push) Failing after 20s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 20s
build / docs (push) Failing after 3s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
Damage is now gathered from every output that presented this cycle rather
than reporting the whole frame. An output that did not present contributes
nothing, so a static monitor costs no transfer at all — which matters when
the atlas is tens of megabytes and only one display is moving.

The translation clips each rectangle to the display it came from, so one
output's damage can never reach into another's part of the atlas, and
scaling is applied after placement since the downscale applies to the frame
as a whole. If the combined damage cannot be described the count is left at
zero, meaning full damage: redrawing too much only costs time, whereas
redrawing too little leaves stale pixels on screen.

lgDisplaysRectToAtlas is in common and unit tested, including a sweep of
awkward inputs asserting no translated rectangle ever escapes its display.
The DXGI plumbing around it still needs hardware.
2026-07-28 08:43:57 +00:00
donny e425b15a87 doc: record DXGI multi-monitor support and its limits
build / module (push) Failing after 16s
build / docs (push) Failing after 3s
build / obs (clang) (push) Failing after 19s
build / obs (gcc) (push) Failing after 19s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
Marks the DXGI path as implemented but unproven on hardware, documents
the fallback conditions, and notes that packing every display into one
frame means they share a frame rate.
2026-07-28 08:36:08 +00:00
donny 06df69b9e2 dxgi: capture all of the adapter's outputs into one frame
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 17s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / host-windows-cross (push) Failing after 22s
build / host-linux (push) Failing after 24s
build / obs (clang) (push) Failing after 21s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
Duplicates every attached output on the chosen adapter and composes them
into an atlas texture with CopySubresourceRegion, handing that to the post
processors in place of the acquired texture. Nothing downstream is aware
of the difference.

Secondary outputs are polled with a zero timeout rather than waited on,
since outputs present independently and waiting in turn would drag the
frame rate down to that of the slowest monitor. A display with nothing new
keeps the pixels it already has in the atlas. Acquired frames are released
at the start of the next capture, not after the copy, because the copies
are only recorded into the device context and releasing a frame
invalidates its surface.

Falls back to capturing a single output, which is what this backend has
always done, whenever the situation cannot be handled safely: mixed
capture formats, since a subresource copy cannot convert between them, a
rotated output, since the packer expects final orientation, or a specific
output having been requested. A wrong atlas is worse than one display.

Damage is reported as full frame while composing. The dirty rectangles
come from the primary alone and in its own coordinates, so they say
nothing about the other displays, and a wrong damage rectangle leaves
stale pixels on screen.

Cross compiles clean. Untested on hardware: the acquire, release and
timing behaviour needs a real multi-monitor Windows machine.
2026-07-28 08:35:19 +00:00
donny 76207dce41 common: consider every subset sum as a candidate shelf width
build / host-linux (push) Failing after 20s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 16s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 21s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
Only trying running totals in packing order missed layouts where the
displays sharing a shelf are not the first few. A 4K above two 1440p side
by side is the common case: the 4K sorts first by height but belongs on a
shelf of its own, so the useful width is the sum of the other two.

For that arrangement the atlas drops from 3840x5040 to 5120x3600, about
5% fewer pixels per frame. With at most 8 displays this is 255 subsets,
so the extra search costs nothing.
2026-07-28 08:23:22 +00:00
donny b73ffa1b33 scripts: add a one command development environment setup
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / module (push) Failing after 18s
build / host-linux (push) Failing after 21s
build / host-windows-cross (push) Failing after 21s
build / obs (clang) (push) Failing after 21s
build / docs (push) Failing after 4s
build / obs (gcc) (push) Failing after 22s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 22s
Records the exact packages needed to build the client, the Linux host,
the test suite and the Windows cross compiler, so a fresh machine can
bootstrap without rediscovering them.
2026-07-28 08:07:04 +00:00
donny 9a1efd34df tests: run the render test from the single entry point
build / module (push) Failing after 17s
build / host-linux (push) Failing after 20s
build / host-windows-cross (push) Failing after 21s
build / obs (clang) (push) Failing after 21s
build / docs (push) Failing after 4s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / obs (gcc) (push) Failing after 22s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 22s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
Skips cleanly when a client, Xvfb or ImageMagick is unavailable.
2026-07-28 08:01:23 +00:00
donny e35d51ea39 client: fix the composed desktop being rendered upside down
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 34s
build / module (push) Failing after 19s
build / host-linux (push) Failing after 21s
build / host-windows-cross (push) Failing after 21s
build / obs (clang) (push) Failing after 21s
build / docs (push) Failing after 13s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 27s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / obs (gcc) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 44s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
The composition pass flipped Y when writing into its framebuffer, but the
desktop shader that samples it treats row 0 as the top, so the composed
desktop reached the screen inverted. The layout metadata was correct
throughout, which is why the geometry checks never caught it.

Adds a rendering test that catches this class of bug: a synthetic host
publishes three displays stacked vertically in the atlas but laid out in a
row on the desktop, and the client is rendered into a virtual X server and
sampled. Each display carries a marker in its top left corner, so an
inverted or transposed composition fails even though the colours would
otherwise land in the right places.
2026-07-28 08:00:37 +00:00
donny 18c6326e35 tests: add a single entry point for the multi-monitor tests
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 18s
build / module (push) Failing after 17s
build / host-linux (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / docs (push) Failing after 2s
build / obs (clang) (push) Failing after 19s
build / obs (gcc) (push) Failing after 20s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
Records the non-obvious build invocations (sanitizers, stub platform
symbols, linking the verifier against the host's built libraries) so the
suite can be run with one command.
2026-07-28 07:38:13 +00:00
donny 456462f8fb dxgi: document what multi-monitor capture requires on Windows
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 3s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 16s
build / host-linux (push) Failing after 19s
build / obs (gcc) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
The frame format, packer and client compositor are backend agnostic and
already work; this backend still reports a single display. Records the
shape of the change and the hazards found reading it: mixed formats,
per-output HDR and rotation, frame timing, release discipline and COM
lifetime.
2026-07-28 07:37:37 +00:00
donny b327abf6c6 doc: document multi-monitor support
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 3s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 18s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 18s
build / module (push) Failing after 15s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 18s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 18s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 18s
Covers how the packed frame works, the shared memory sizing that the
feature depends on, display selection, running one client per guest
display, and the current limitations.
2026-07-28 07:35:02 +00:00
donny faaf63bc93 common: make the atlas repack shared and testable
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 16s
build / host-linux (push) Failing after 18s
build / host-windows-cross (push) Failing after 18s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 3s
build / obs (gcc) (push) Failing after 19s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
Moves the per-display copy out of the XCB backend into common so it can
be unit tested directly and reused by other backends. The test uses a
unique value per source pixel, so a copy landing at the wrong offset
cannot pass by coincidence, and checks truncation against guard bytes.

Also adds a scripted end-to-end test and teaches the verification tool
to report a blank capture source as a skip rather than a failure.
2026-07-28 07:31:13 +00:00
donny ba32d48a6a host: fix pre-existing XCB/shm crashes and add an atlas verification tool
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / module (push) Failing after 16s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 2s
build / obs (gcc) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 19s
captureStop never called the capture interface's stop(), so a backend
running its own threads was torn down while those threads were still
using it. The XCB pointer thread also ran before the host had allocated
the pointer buffers.

The verification tool subscribes as a real client and checks the
published multi-display frame for consistency.
2026-07-28 07:21:48 +00:00
donny 95e55273ea client: compose multi-display frames and map input across the view
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 4s
build / obs (gcc) (push) Failing after 19s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 17s
build / host-linux (push) Failing after 19s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
Adds the EGL composition pass, the app:display selector and the input
coordinate shift needed when only part of the guest desktop is shown.
2026-07-28 07:13:18 +00:00
donny dfe8edfbc2 Add multi-monitor support via packed atlas frames
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 28s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 21s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 21s
build / module (push) Failing after 16s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 17s
build / obs (clang) (push) Failing after 18s
build / docs (push) Failing after 7s
build / obs (gcc) (push) Failing after 20s
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 27s
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 28s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 20s
Capture every guest display into a single frame and compose it back into
the guest's desktop on the client, so one Looking Glass session can carry
a multi-monitor guest instead of one instance per display.

KVMFR gains a per-frame display layout (version 24). A frame with
displayCount == 0 is a conventional single-display frame and behaves
exactly as before, so existing capture backends are unaffected.

- common: shared display layout and a shelf packer that minimises atlas
  area, plus atlas/desktop coordinate mapping helpers and unit tests
- host: capture interface and host app carry the layout; a layout change
  invalidates the format so clients re-read it
- host/XCB: enumerate RandR monitors and repack the root window into the
  atlas directly in shared memory
- client/EGL: compose the atlas into the presented view as its own pass,
  leaving post processing, HDR, cursor and damage handling unchanged

Also fixes the XCB backend writing a single row per frame instead of the
whole image.
2026-07-28 07:06:32 +00:00
Geoffrey McRae 4ef6672e64 [client] egl: uninitialized value release build failure 2026-07-28 13:45:57 +10:00
Geoffrey McRae dc20ac05ab [client] main: fix release build uninitalized value warning 2026-07-28 13:42:38 +10:00
Geoffrey McRae b9b2521bb7 [client] audio: synchronize callback and microphone lifetimes 2026-07-28 13:33:19 +10:00
Geoffrey McRae 532305d263 [client] pipewire: make it possible to stop from the process callback 2026-07-28 13:32:41 +10:00
Geoffrey McRae a421be5e54 [client] audio: restore microphone volume and mute state 2026-07-28 13:17:58 +10:00
Geoffrey McRae d384591e05 [client] audio: fix microphone restart bookkeeping 2026-07-28 13:17:02 +10:00
Geoffrey McRae a5571f0e9e [client] spice: separate clipboard state by direction 2026-07-28 13:10:38 +10:00
Geoffrey McRae e4658b4263 [client] spice: validate clipboard responses 2026-07-28 13:08:16 +10:00
Geoffrey McRae e73a3dec60 [client] spice: handle clipboard request failures 2026-07-28 13:05:40 +10:00
Geoffrey McRae 67e2675afa [client] spice: fix clipboard transfer accounting 2026-07-28 13:00:38 +10:00
Geoffrey McRae 49b7f50c6b [client] spice: start for display-only configurations 2026-07-28 12:50:27 +10:00
Geoffrey McRae 44a28d52c9 [client] spice: complete startup when server info retrieval fails 2026-07-28 12:43:18 +10:00
Geoffrey McRae f4ee349880 [client] app: make shared application state access thread-safe 2026-07-28 12:41:35 +10:00
Geoffrey McRae f980248221 [client] spice: fix missing scancode translation for key up 2026-07-28 12:28:02 +10:00
Geoffrey McRae e4888c362a [client] spice: make display switching atomic and failure-aware 2026-07-28 12:24:51 +10:00
Geoffrey McRae 5c7431dfd6 [client] spice: validate bitmap fills and prevent potental VLA crash 2026-07-28 12:12:38 +10:00
Geoffrey McRae b7a1637cb0 [client] spice: validate bitmap format and check for failures 2026-07-28 12:04:32 +10:00
Geoffrey McRae 2f88063d77 [client] spice: check and track the primary surface format & validity 2026-07-28 12:01:08 +10:00
Geoffrey McRae e09a3f7715 [repos] purespice: update submodule 2026-07-28 07:17:02 +10:00
Quantum 6a0526fc1e [idd] driver: report IVSHMEM size 2026-07-26 22:17:28 +10:00
Quantum d3d1d48e97 [idd] installer: make multiline strings more readable 2026-07-23 10:01:17 +10:00
Quantum 4fa697e165 [host] installer: add new page suggesting IDD usage 2026-07-23 10:01:17 +10:00
Quantum a3d7e3806b [host] installer: make multiline strings more readable 2026-07-23 10:01:17 +10:00
Quantum 71ba0bf8f6 [host] installer: offer the option of uninstalling IDD if detected 2026-07-23 10:01:17 +10:00
Geoffrey McRae fe4088797c [github] workflow: fix random clang build errors due to runner issue
Ref: https://github.com/actions/runner-images/issues/14296
2026-07-23 09:44:00 +10:00
Geoffrey McRae 0e113d9d83 [client] wayland: use the locally configured white level for SDR 2026-07-23 09:44:00 +10:00
Geoffrey McRae 34af6e6f8f [idd] hdr: correct virtual monitor capabilities 2026-07-23 09:44:00 +10:00
Geoffrey McRae 9376ac10b6 [client] wayland: separate mastering metadata validation
Validate mastering primaries and luminance independently so one
unsupported component does not discard the other.

Trust content chromaticities when extended target volumes are supported,
and report the exact values and reason when metadata must be omitted.
2026-07-23 09:44:00 +10:00
Geoffrey McRae e716435617 [idd] edid: advertise the full PQ luminance range
The virtual display transports HDR pixels rather than emitting light.
Advertise approximately 10,000 nits for both peak and frame-average
luminance, and leave the physical black level unspecified.

This prevents Windows from mapping HDR into an arbitrary virtual
display limit before the frame reaches the real host display.
2026-07-23 09:44:00 +10:00
Geoffrey McRae 21a0fc08fb [idd] hdr: publish only per-content metadata
Monitor-default HDR metadata describes the virtual display rather than
the captured content. Do not expose it through KVMFR or use it to select
downstream processing limits.

Only publish explicit NEW frame metadata and otherwise use the complete
PQ range internally.
2026-07-23 09:44:00 +10:00
Geoffrey McRae 1b0e1cf74b [client] egl: correct CAS processing for HDR
Convert HDR scRGB input to normalized linear Rec.2020 before CAS, then
convert the filtered result back to scRGB. Use the content metadata to
select an appropriate normalization peak while leaving SDR unchanged.

This follows AMD's documented recommendation for applying CAS to HDR
content and prevents HDR highlights from being clamped and dimmed.
2026-07-23 09:44:00 +10:00
Geoffrey McRae 697bbc6601 [client] egl: restore effects for PQ frames
PQ sources excluded every external filter from the post-process chain.
Decode PQ/BT.2020 into FP16 linear scRGB before active effects and pass
the resulting transfer state to the desktop shader.

Keep the raw PQ path when no effect is active. This avoids adding a
conversion pass or per-frame latency to the common case.
2026-07-23 09:44:00 +10:00