summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-10-03 10:28:36 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-10-03 10:28:36 +0000
commit7ee85e0227fd4f47c3332ef19824bf5cb3100c43 (patch)
tree3f530f9f43a899f10f5c3cfcd201e52876bfa56c
parent5fd88ad3284d8b2b9da33fc83d73e2c5afaab1c3 (diff)
Remove ancient workaround
-rw-r--r--src/mesa/drivers/dri/i915/intel_buffers.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_buffers.c b/src/mesa/drivers/dri/i915/intel_buffers.c
index e186666b77..fe7ef7ec36 100644
--- a/src/mesa/drivers/dri/i915/intel_buffers.c
+++ b/src/mesa/drivers/dri/i915/intel_buffers.c
@@ -197,39 +197,6 @@ intelSetBackClipRects(struct intel_context *intel)
intel->pClipRects = dPriv->pBackClipRects;
intel->drawX = dPriv->backX;
intel->drawY = dPriv->backY;
-
- if (dPriv->numBackClipRects == 1 &&
- dPriv->x == dPriv->backX && dPriv->y == dPriv->backY) {
-
- /* Repeat the calculation of the back cliprect dimensions here
- * as early versions of dri.a in the Xserver are incorrect. Try
- * very hard not to restrict future versions of dri.a which
- * might eg. allocate truly private back buffers.
- */
- int x1, y1;
- int x2, y2;
-
- x1 = dPriv->x;
- y1 = dPriv->y;
- x2 = dPriv->x + dPriv->w;
- y2 = dPriv->y + dPriv->h;
-
- if (x1 < 0)
- x1 = 0;
- if (y1 < 0)
- y1 = 0;
- if (x2 > intel->intelScreen->width)
- x2 = intel->intelScreen->width;
- if (y2 > intel->intelScreen->height)
- y2 = intel->intelScreen->height;
-
- if (x1 == dPriv->pBackClipRects[0].x1 &&
- y1 == dPriv->pBackClipRects[0].y1) {
-
- dPriv->pBackClipRects[0].x2 = x2;
- dPriv->pBackClipRects[0].y2 = y2;
- }
- }
}
}