github selkies-project/selkies e2bb6c3

pre-release3 hours ago

fix(pixelflux): Import a dmabuf through PRIME 2 only where VA-API lists it

Intel's i965 lists no DRM_PRIME_2 memory type for any configuration, yet
answers a vaCreateSurfaces through that descriptor with success and a new
blank surface. A zero-copy session on Haswell therefore encoded every frame
from zeros and streamed a black screen while its log reported the VA-API
path healthy. The session now reads the memory types the video processor's
configuration lists and takes the PRIME 2 descriptor only where it is listed
(or where none are listed, as before); otherwise the external-buffer
descriptor imports the buffer, its tiling read from the kernel.

Reproduced: on an HD 4400 (i965 2.4.1, linuxserver/webtop:dev on Wayland)
every decoded frame of the H.264 stream had luma 0 and a 412-byte key frame.
A probe importing a painted Y-tiled GBM buffer read Y 0.0 through PRIME 2
and 181 (expected ~178) through the legacy descriptor.

Fixed: the rebuilt server swapped into that container streams the desktop
on the same zero-copy VA-API path (luma mean 130, 30 kB key frame, decoded
frame matches the screen).

Other hardware: iHD (Alder Lake-N, 25.2.3) lists PRIME 2 (0x78000005) and
keeps it; drivers that list no memory types keep it too. The X11 DRI3 path
shares the import. The VA-API unit tests pass (57, including the new mock
test). Not run: clippy, pre-commit, the integration and e2e suites.

Don't miss a new selkies release

NewReleases is sending notifications on new releases.