intel: Replace IS_IGDNG checks with intel->is_ironlake or needs_ff_sync.
[mesa.git] / src / mesa / drivers / dri / intel / intel_context.c
index c616d32ebbf19683e46794c57bc150998c1a0c6e..234f99a00e58839779605f8e49ed6452a4e0d8ac 100644 (file)
@@ -620,6 +620,11 @@ intelInitContext(struct intel_context *intel,
    else
       intel->gen = 2;
 
+   if (IS_IGDNG(intel->intelScreen->deviceID)) {
+      intel->is_ironlake = GL_TRUE;
+      intel->needs_ff_sync = GL_TRUE;
+   }
+
    /* Dri stuff */
    intel->hHWContext = driContextPriv->hHWContext;
    intel->driFd = sPriv->fd;