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

2015-06-10 Thread Marc-André Lureau
Implements putImageShm from DRIswrastLoaderExtension. If XShm extension is not available, or fails, it will fallback on regular XPutImage(). Tested on Linux only with 16bpp and 32bpp visual. --- src/glx/drisw_glx.c | 164 +++ src/glx/drisw_priv.h

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

2015-06-10 Thread Adam Jackson
On Wed, 2015-06-10 at 18:08 +0200, Marc-André Lureau wrote: + if (!xshm_error shmid = 0) { + pdp-shminfo.shmid = shmid; + pdp-ximage = XShmCreateImage(dpy, +pdp-visinfo-visual, +pdp-visinfo-depth, +

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

2015-06-10 Thread Marc-André Lureau
Hi On Wed, Jun 10, 2015 at 6:17 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: I did not find how you serialised the XServer reading from the SHM following the call to XShmPutImage (which you may want to flush?) with subsequent rendering into the image. Correct, there is no sync. And I