From 19420e6c2592e8a31e2ead4bccebc1a9ccca52b1 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 15 Feb 2008 13:16:01 -0800 Subject: [915] Revert broken context creation change from IS_915 commit. The IS_945 case was left to fall through to the 830 case, along with the not-recognized-at-all case, making that dead code. --- src/mesa/drivers/dri/intel/intel_screen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index d91bb38e30..2392c2c49c 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -645,9 +645,11 @@ intelCreateContext(const __GLcontextModes * mesaVis, intelScreenPrivate *intelScreen = (intelScreenPrivate *) sPriv->private; #ifdef I915 - if (IS_915(intelScreen->deviceID)) { - return i915CreateContext(mesaVis, driContextPriv, + if (IS_9XX(intelScreen->deviceID)) { + if (!IS_965(intelScreen->deviceID)) { + return i915CreateContext(mesaVis, driContextPriv, sharedContextPrivate); + } } else { return i830CreateContext(mesaVis, driContextPriv, sharedContextPrivate); } -- cgit v1.2.3