get rid of checks for old ddx
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 17 Jul 2007 18:06:44 +0000 (20:06 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 17 Jul 2007 18:06:44 +0000 (20:06 +0200)
src/mesa/drivers/dri/i915tex/intel_buffers.c
src/mesa/drivers/dri/i915tex/intel_screen.c

index 5ec8ad0835bfa6fdd1ebc84ed92fd8e4b2d57056..bcd99106b9eda9b0cc09d85a5254f5901628f6a0 100644 (file)
@@ -157,6 +157,7 @@ intelWindowMoved(struct intel_context *intel)
 
    if (!intel->ctx.DrawBuffer) {
       /* when would this happen? -BP */
+      assert(0);
       intel->numClipRects = 0;
    }
 
@@ -164,7 +165,7 @@ intelWindowMoved(struct intel_context *intel)
    driUpdateFramebufferSize(ctx, dPriv);
    intel_fb->Base.Initialized = GL_TRUE; /* XXX remove someday */
 
-   if (intel->intelScreen->driScrnPriv->ddxMinor >= 7) {
+   {
       drmI830Sarea *sarea = intel->sarea;
       drm_clip_rect_t drw_rect = { .x1 = dPriv->x, .x2 = dPriv->x + dPriv->w,
                                   .y1 = dPriv->y, .y2 = dPriv->y + dPriv->h };
@@ -276,8 +277,6 @@ intelWindowMoved(struct intel_context *intel)
               intel_fb->color_rb[i]->vbl_pending = intel_fb->vbl_waited;
         }
       }
-   } else {
-      intel_fb->vblank_flags &= ~VBLANK_FLAG_SECONDARY;
    }
 
    /* Update hardware scissor */
index 0b9ba7eda73f331eca1255b85603e90ec496e1fb..5ad0932e2ebce22583a76d6ceaeef61aaefdfc9d 100644 (file)
@@ -692,7 +692,7 @@ __driCreateNewScreen_20050727(__DRInativeDisplay * dpy, int scrn,
                               __GLcontextModes ** driver_modes)
 {
    __DRIscreenPrivate *psp;
-   static const __DRIversion ddx_expected = { 1, 5, 0 };
+   static const __DRIversion ddx_expected = { 1, 7, 0 };
    static const __DRIversion dri_expected = { 4, 0, 0 };
    static const __DRIversion drm_expected = { 1, 7, 0 };