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.
This commit is contained in:
Eric Anholt 2006-07-26 13:42:12 -07:00
parent cffd2cd36d
commit 30952e58ed
1 changed files with 2 additions and 1 deletions

View File

@ -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();