drisw/glx: use XShm if possible
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 10 Jun 2015 15:58:31 +0000 (17:58 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 29 May 2018 23:11:54 +0000 (09:11 +1000)
commitbcd80be49a8260c2233dd07b2048d459a91a9c91
tree9d969aa180054cf7a4ad21da2aab879778fbff7a
parentcf54bd5e8381dba18d52fe438acda20cc1685bf3
drisw/glx: use XShm if possible

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.

(airlied: tested on 24bpp as well)

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/glx/drisw_glx.c
src/glx/drisw_priv.h