Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 48b35bda44fd9316dc4845f4b00506e323026167
      
https://github.com/WebKit/WebKit/commit/48b35bda44fd9316dc4845f4b00506e323026167
  Author: Mariyan Borisov <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp

  Log Message:
  -----------
  [GTK] Wayland protocol error with DMABUF renderer on NVIDIA: explicit sync 
enabled on toplevel surface, then a wl_shm buffer committed without acquire 
point
https://bugs.webkit.org/show_bug.cgi?id=324551

Reviewed by Carlos Garcia Campos.

With GTK 3, AcceleratedBackingStore creates its GdkGLContext while painting the 
first EGLImage
buffer. GTK 3 decides at the start of a frame whether the window is painted 
with GL, so that frame
is still committed from shared memory, but creating the window's first GL 
context has already made
GDK create the EGL window surface. NVIDIA's EGL platform sets up explicit sync 
on the surface at
that point, and the compositor disconnects the client for committing a wl_shm 
buffer without an
acquire point.

Create the GL context in frame() instead, when an EGLImage buffer arrives, 
which is between frames,
so GTK starts the frame that paints it with GL.

No new tests: this needs NVIDIA's EGL platform and a compositor with explicit 
sync.

* Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp:
(WebKit::AcceleratedBackingStore::frame):

Canonical link: https://commits.webkit.org/322671@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to