[Mesa-dev] [PATCH 0/4] drisw/glx: use XShm if possible

Axel Davy axel.davy at ens.fr
Wed Jun 10 22:37:11 PDT 2015

On 10/06/2015 18:08, Marc-André Lureau wrote :
> Hi,
> XPutImage requires to copy the images around, and the request may be
> split over several chunks. Using XShm should improve performance.
Another way of doing that is to make the swrast loader allocate the buffers,
and have swrast swap buffers instead of copying content.

For example there could be a request to allocate a first buffer,
and then a request to present an already allocated buffer, which
would return a new buffer (could be the same).

Doing that way, it could use XShm behind the scene, and it would fit
different usages, like having a zero copy mechanism for wayland swrast.


Axel Davy

More information about the mesa-dev mailing list