Repository navigation
f044b9c
Pre-releasefix(wayland): Composite a client's tiled buffer where VA-API cannot take its modifier
The direct path hands a fullscreen client's dmabuf to the zero-copy session
after checking its size, planes, and format, but not its modifier. Where the
VA-API driver lists no PRIME 2 descriptor (i965), the import goes through the
older descriptor, which carries no modifier and reads the layout from what the
kernel says of the object. Mesa's Haswell Vulkan driver allocates its swapchain
images Y-tiled through an explicit modifier and tells the kernel nothing, so a
fullscreen GTK 4 or Vulkan app (ARGB8888, I915_FORMAT_MOD_Y_TILED) was read as
rows and streamed as a checkerboard.
The encode thread now publishes whether its session imports a client buffer
with its modifier (FrameEncoder::imports_modifiers: every session but VA-API
without PRIME 2), and the direct path composites a tiled client buffer such a
session would take without it. The compositor's own render targets, which the
driver lays out and the kernel describes, keep their zero-copy path.