Originally posted by MrCooper
View Post
Originally posted by binarybanana
View Post
DMABUF structure stores where to find a buffer sync information.
DMABUF is very different to the SHM system. With DMABUF application can have told a GPU to fill a buffer with something the GPU has not done that yet but the application can send the filehandle of DMABUF of where that generation form the GPU will be in future to the Wayland compositor and due to sync information on the DMABUF will not display that output until the GPU generates it.
Anything based around DMABUF can maintain correct sync with each other very simply because it part of DMABUF todo that.
Allow tearing under Wayland is not turn vsync on or off. It simple we will tell the GPU to ignore the sync information on the buffer and just render what is currently done.
This explains why Nvidia total lack of DMABUF support at first and then not completely implemented or optimized DMABUF support causes Wayland compositors major performance problems and issues.
Comment