From 7a7feb251b8172786755ab81b154bbfb7d193dbc Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 9 Sep 2006 01:16:26 +0200 Subject: PrepareSourceTexture() cannot fail. --- src/mga_exa.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/mga_exa.c b/src/mga_exa.c index 74c325c..6faceb4 100644 --- a/src/mga_exa.c +++ b/src/mga_exa.c @@ -416,7 +416,7 @@ mgaCheckComposite(int op, PicturePtr pSrcPict, PicturePtr pMaskPict, return TRUE; } -static Bool +static void PrepareSourceTexture(int tmu, PicturePtr pSrcPicture, PixmapPtr pSrc) { PMGA(pSrc); @@ -460,8 +460,6 @@ PrepareSourceTexture(int tmu, PicturePtr pSrcPicture, PixmapPtr pSrc) WAITFIFO(1); OUTREG(MGAREG_TEXCTL2, texctl2 & ~MGA_TC2_SELECT_TMU1); } - - return TRUE; } /* @@ -557,11 +555,10 @@ mgaPrepareComposite(int op, PicturePtr pSrcPict, PicturePtr pMaskPict, OUTREG(MGAREG_DSTORG, exaGetPixmapOffset(pDst)); OUTREG(MGAREG_PITCH, mgaGetPixmapPitch(pDst)); - if (!PrepareSourceTexture(0, pSrcPict, pSrc)) - return FALSE; + PrepareSourceTexture(0, pSrcPict, pSrc); - if (pMask && !PrepareSourceTexture(1, pMaskPict, pMask)) - return FALSE; + if (pMask) + PrepareSourceTexture(1, pMaskPict, pMask); if (pSrcPict->format == PICT_a8) { /* C = 0 A = As */ @@ -576,8 +573,7 @@ mgaPrepareComposite(int op, PicturePtr pSrcPict, PicturePtr pMaskPict, /* MGA HW: TMU1 must be enabled when DUALSTAGE0 contains something */ if (!pMask) { - if (!PrepareSourceTexture(1, pSrcPict, pSrc)) - return FALSE; + PrepareSourceTexture(1, pSrcPict, pSrc); ds1 = C_ARG2_PREV | COLOR_ARG2 | A_ARG2_PREV | ALPHA_ARG2; -- cgit v1.2.3