[Intel-gfx] [PATCH] Don't attempt to initialize DRI2 without GEM.

Eric Anholt eric at anholt.net
Wed Feb 25 07:42:41 CET 2009


It's just not going to work out.
---
 src/i830_driver.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/i830_driver.c b/src/i830_driver.c
index 2461e8a..b8cf563 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3100,7 +3100,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
    }
 
 #ifdef DRI2
-   if (pI830->directRenderingType == DRI_NONE && I830DRI2ScreenInit(pScreen))
+   if (pI830->directRenderingType == DRI_NONE &&
+       pI830->memory_manager &&
+       I830DRI2ScreenInit(pScreen))
        pI830->directRenderingType = DRI_DRI2;
 #endif
 
-- 
1.5.6.5




More information about the Intel-gfx mailing list