Add IS_915(), simplify IS_9XX() a bit.

This commit is contained in:
Adam Jackson
2008-02-15 14:52:58 -05:00
parent c51eb3ec40
commit cf0d91ae1d
2 changed files with 15 additions and 20 deletions

View File

@@ -645,11 +645,9 @@ intelCreateContext(const __GLcontextModes * mesaVis,
intelScreenPrivate *intelScreen = (intelScreenPrivate *) sPriv->private;
#ifdef I915
if (IS_9XX(intelScreen->deviceID)) {
if (!IS_965(intelScreen->deviceID)) {
return i915CreateContext(mesaVis, driContextPriv,
if (IS_915(intelScreen->deviceID)) {
return i915CreateContext(mesaVis, driContextPriv,
sharedContextPrivate);
}
} else {
return i830CreateContext(mesaVis, driContextPriv, sharedContextPrivate);
}