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
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.
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
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.
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
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.
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
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.
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
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.
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
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.
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
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.
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
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.
build / host-windows-native (push) Canceled after 0s
build / idd (push) Canceled after 0s
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.
Convert FP16 scRGB captures to BT.2020 PQ before storing them in the
10-bit wire format. Preserve linear-light downsampling, publish the real
SDR white level and display metadata, and advance the format version when
those properties change.
When the heapTest fails for DMA copies to shared memory, fallback to
conventional CPU copy via mapped resources. While this is less optimal,
it is still faster then the older DXGI capture backend.
AMD GPUs and older NVidia GPUs can initialize fine but fail when we
start to create resources in the shared memory heap, we must test it
early to detect this so we can fallback to a working capture method.
Moving this prevented the RX580 crash early in init, but later
presents during the capture. As we want to ensure fallback to DXGI
if this happens we need to catch this fault during init. This moves
the order back so that we fail back into a working state.
Often this log is provided instead of the actual host log, as this
log is largely useless for debugging this moves it to the temp
directory out of view of the user.