@@ -155,7 +155,3 @@
IS_GEN5(devid) || \
IS_GEN6(devid) || \
IS_GEN7(devid))
-
-#define IS_9XX(devid) (IS_915(devid) || \
- IS_945(devid) || \
- IS_965(devid))
@@ -730,7 +730,7 @@ intelInitContext(struct intel_context *intel,
intel->has_luminance_srgb = GL_TRUE;
intel->is_g4x = GL_TRUE;
}
- } else if (IS_9XX(intel->intelScreen->deviceID)) {
+ } else if (intel->gen >= 3) {
if (IS_945(intel->intelScreen->deviceID)) {
intel->is_945 = GL_TRUE;
}
@@ -523,11 +523,9 @@ intelCreateContext(gl_api api,
__DRIscreen *sPriv = driContextPriv->driScreenPriv;
struct intel_screen *intelScreen = sPriv->private;
- if (IS_9XX(intelScreen->deviceID)) {
- if (!IS_965(intelScreen->deviceID)) {
- return i915CreateContext(api, mesaVis, driContextPriv,
- sharedContextPrivate);
- }
+ if (intelScreen->gen == 3) {
+ return i915CreateContext(api, mesaVis, driContextPriv,
+ sharedContextPrivate);
} else {
intelScreen->no_vbo = GL_TRUE;
return i830CreateContext(mesaVis, driContextPriv, sharedContextPrivate);
@@ -638,7 +636,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
api_mask |= (1 << __DRI_API_GLES2);
#endif
- if (IS_9XX(intelScreen->deviceID) || IS_965(intelScreen->deviceID))
+ if (intelScreen->gen >= 3)
psp->api_mask = api_mask;
if (!intel_init_bufmgr(intelScreen))