summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-01-03 21:52:14 +0000
committerEric Anholt <anholt@freebsd.org>2004-01-03 21:52:14 +0000
commit9f1a92cd092e87f774ce4ed99d4b3e15f905d4f7 (patch)
tree6424a054f82222889a746dc572ef3afa3c54fab3 /hw
parent3db761a17b60b80acb83f365628b093f0ba6958c (diff)
- Call appropriate Done function for Composite.
- Don't allow src transforms for Copy acceleration. - Minor whitespace fixes.
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/src/kaapict.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/hw/kdrive/src/kaapict.c b/hw/kdrive/src/kaapict.c
index f10fb4c03..9f8595e78 100644
--- a/hw/kdrive/src/kaapict.c
+++ b/hw/kdrive/src/kaapict.c
@@ -104,9 +104,9 @@ kaaPrintCompositeFallback(CARD8 op,
kaaCompositeFallbackPictDesc(pDst, dstdesc, 40);
ErrorF("Composite fallback: op %s, \n"
- " src %s, \n"
- " mask %s, \n"
- " dst %s, \n",
+ " src %s, \n"
+ " mask %s, \n"
+ " dst %s, \n",
sop, srcdesc, maskdesc, dstdesc);
}
#endif
@@ -447,7 +447,7 @@ kaaTryDriverComposite(CARD8 op,
pbox++;
}
- (*pKaaScr->info->DoneBlend) ();
+ (*pKaaScr->info->DoneComposite) ();
KdMarkSync(pDst->pDrawable->pScreen);
return 1;
}
@@ -483,7 +483,8 @@ kaaComposite(CARD8 op,
if (ret == 1)
return;
}
- else if (!pSrc->repeat && pSrc->format == pDst->format)
+ else if (!pSrc->repeat && !pSrc->transform &&
+ pSrc->format == pDst->format)
{
RegionRec region;
@@ -509,10 +510,10 @@ kaaComposite(CARD8 op,
if (pScreenPriv->enabled && pKaaScr->info->PrepareBlend &&
!pSrc->alphaMap && !pDst->alphaMap)
{
- ret = kaaTryDriverBlend(op, pSrc, pDst, xSrc, ySrc, xDst, yDst, width,
- height);
- if (ret == 1)
- return;
+ ret = kaaTryDriverBlend(op, pSrc, pDst, xSrc, ySrc, xDst, yDst,
+ width, height);
+ if (ret == 1)
+ return;
}
}