From 6b1e354dbb6e8ed9f2c654bbe7f8bbf241843d1c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 19 Dec 2006 15:24:19 +0100 Subject: [PATCH] EXA: Disable SHM pixmaps. See https://bugs.freedesktop.org/show_bug.cgi?id=6772 . --- exa/exa.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exa/exa.c b/exa/exa.c index b49065303..bf9411469 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -32,6 +32,10 @@ #include #endif +#ifdef MITSHM +#include "shmint.h" +#endif + #include #include "exa_priv.h" @@ -610,6 +614,13 @@ exaDriverInit (ScreenPtr pScreen, miDisableCompositeWrapper(pScreen); #endif +#ifdef MITSHM + /* Re-register with the MI funcs, which don't allow shared pixmaps. + * Shared pixmaps are almost always a performance loss for us, but this + * still allows for SHM PutImage. + */ + ShmRegisterFuncs(pScreen, NULL); +#endif /* * Hookup offscreen pixmaps */