remove intel_context cliprect code
authorBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 16:02:54 +0000 (09:02 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 5 Nov 2007 16:02:54 +0000 (09:02 -0700)
src/mesa/drivers/dri/intel_winsys/intel_context.h
src/mesa/drivers/dri/intel_winsys/intel_lock.c

index 03c7fd263093a8efcde41188cab569f11d29120a..3a61a5610fb811047833648a82bc6eb84f83cbab 100644 (file)
@@ -59,11 +59,6 @@ struct intel_context
    char *prevLockFile;
    int prevLockLine;
 
-   /* These refer to the current drawing buffer:
-    */
-   GLuint numClipRects;         /**< cliprects for drawing */
-   drm_clip_rect_t *pClipRects;
-
    GLuint irqsEmitted;
    drm_i915_irq_wait_t iw;
 
index af9b53a52b3bc4928ba9facd4fc02947d9106a3e..eee1ccc6ea040f3ce918861dbfd2d7afb77c584d 100644 (file)
@@ -65,40 +65,9 @@ intelContendedLock(struct intel_context *intel, GLuint flags)
 
       intelUpdateScreenRotation(sPriv, sarea);
    }
-
-#if 0
-   if (sarea->width != intel->width ||
-       sarea->height != intel->height ||
-       sarea->rotation != intel->current_rotation) {
-      int numClipRects = intel->numClipRects;
-
-      /*
-       * FIXME: Really only need to do this when drawing to a
-       * common back- or front buffer.
-       */
-
-      /*
-       * This will essentially drop the outstanding batchbuffer on the floor.
-       */
-      intel->numClipRects = 0;
-
-      st_flush(intel->st);
-
-      if (intel->batch->map != intel->batch->ptr)
-        intel_batchbuffer_flush(intel->batch);
-
-      intel->numClipRects = numClipRects;
-
-      /* force window update */
-      intel->lastStamp = 0;
-
-      intel->width = sarea->width;
-      intel->height = sarea->height;
-      intel->current_rotation = sarea->rotation;
-   }
-#endif
 }
 
+
 /* Lock the hardware and validate our state.
  */
 void LOCK_HARDWARE( struct intel_context *intel )