summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@hammerfest.(none)>2006-09-09 01:16:26 +0200
committerTilman Sauerbeck <tilman@hammerfest.(none)>2006-09-09 01:16:26 +0200
commit7a7feb251b8172786755ab81b154bbfb7d193dbc (patch)
treed38ab10dee7a08fb3a30f480d0b71f48fbbc1bdb
parentc2545d6e94964fc981746cdf212b5dc9cd4fdd1b (diff)
PrepareSourceTexture() cannot fail.
-rw-r--r--src/mga_exa.c14
1 files 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;