Advertise zwp_linux_dmabuf_v1 so Mesa EGL clients stop using llvmpipe
- Add zwp_linux_dmabuf_v1 (v4 feedback names the render node). Only linear ARGB8888 and XRGB8888 are accepted, because the compositor reads a buffer by mapping its dma-buf. - Bracket dma-buf reads with DMA_BUF_IOCTL_SYNC in the compositor and in the wasm host, so the CPU sees the GPU's finished writes. - Keep every wl_surface.frame callback since the last commit instead of only the last one. Zed and Mesa's EGL queue several and wait on all of them. - rs_capture maps a dma-buf afresh on each capture rather than using the pool cache, which could hand a later buffer an earlier buffer's pixels. - Restart xdg-desktop-portal in the background once the compositor socket exists, so the restart no longer delays compositor startup by about 30 s.
This commit is contained in:
1 parent
d81003f176
commit
51852f0dac
5 files changed
+366
-16
No files matched your search
@@ -149,8 +149,15 @@ fi
|
||||
# an earlier session (systemd keeps the user's services between logins) would keep another
|
||||
# desktop's choice, so Chrome and Firefox would not follow the Dark mode switch: restart it if it
|
||||
# is running. Apps start it on demand otherwise.
|
||||
# Done in the background once the compositor's socket is up: the restart starts the portal
|
||||
# backends, which connect to WAYLAND_DISPLAY and crash while it doesn't exist, and systemctl
|
||||
# waits for all of that (about 30 s), which kept the compositor from starting at all.
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl --user try-restart xdg-desktop-portal.service >>"$log" 2>&1 || true
|
||||
(
|
||||
i=0
|
||||
while [ ! -S "$sock" ] && [ $i -lt 200 ]; do sleep 0.1; i=$((i + 1)); done
|
||||
systemctl --user --no-block try-restart xdg-desktop-portal.service
|
||||
) >>"$log" 2>&1 &
|
||||
fi
|
||||
|
||||
# Flatpak apps need the document portal's FUSE mount: `flatpak run` binds
|
||||
|
||||
Reference in new issue
Block a user