From 30952e58ed83e2e18d1007f662d2cc9a773c876c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 26 Jul 2006 13:42:12 -0700 Subject: [PATCH] Limit drawing to the destination pixmap's boundaries, not the screen's. This shouldn't matter, as miComputeCompositeRegion shouldn't giving us anything that would draw outside the bounds, anyway. --- src/i915_exa_render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 7b2eada9..9769765b 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -446,7 +446,8 @@ ErrorF("i915 prepareComposite\n"); OUT_RING(_3DSTATE_DRAW_RECT_CMD); OUT_RING(0x00000000); OUT_RING(0x00000000); /* ymin, xmin*/ - OUT_RING(DRAW_YMAX(pScrn->virtualY-1) | DRAW_XMAX(pScrn->virtualX-1)); + OUT_RING(DRAW_YMAX(pDst->drawable.height - 1) | + DRAW_XMAX(pDst->drawable.width - 1)); OUT_RING(0x00000000); /* yorig, xorig (relate to color buffer?)*/ OUT_RING(MI_NOOP); ADVANCE_LP_RING();