summaryrefslogtreecommitdiffstats
path: root/src/glx/drisw_priv.h
diff options
context:
space:
mode:
authorMarc-AndrĂ© Lureau <[email protected]>2015-06-10 17:58:31 +0200
committerDave Airlie <[email protected]>2018-05-30 09:11:54 +1000
commitbcd80be49a8260c2233dd07b2048d459a91a9c91 (patch)
tree9d969aa180054cf7a4ad21da2aab879778fbff7a /src/glx/drisw_priv.h
parentcf54bd5e8381dba18d52fe438acda20cc1685bf3 (diff)
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 <[email protected]> Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/glx/drisw_priv.h')
-rw-r--r--src/glx/drisw_priv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/drisw_priv.h b/src/glx/drisw_priv.h
index 5d479003114..a670da2d33b 100644
--- a/src/glx/drisw_priv.h
+++ b/src/glx/drisw_priv.h
@@ -23,6 +23,8 @@
* SOFTWARE.
*/
+#include <X11/extensions/XShm.h>
+
struct drisw_display
{
__GLXDRIdisplay base;
@@ -62,6 +64,7 @@ struct drisw_drawable
__DRIdrawable *driDrawable;
XVisualInfo *visinfo;
XImage *ximage;
+ XShmSegmentInfo shminfo;
};
_X_HIDDEN int