diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-07-02 12:41:35 +0200 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-07-03 16:41:44 +0200 |
commit | 7106a77df37c06d2b5568eceeb9297096bff3137 (patch) | |
tree | 36a817e935fa9d69bc1c3c2d7236b4bdb294a817 /hw | |
parent | f5e92542a14f51029347b6476e4e4af69144930b (diff) |
Fix bugs in support for new repeatTypes in XAA and EXA.
EXA now won't pass pictures with new repeatTypes to drivers. We can add a flag
for them to support it at a later time.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/xaa/xaaPict.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/xfree86/xaa/xaaPict.c b/hw/xfree86/xaa/xaaPict.c index a1ff51087..a7acf450a 100644 --- a/hw/xfree86/xaa/xaaPict.c +++ b/hw/xfree86/xaa/xaaPict.c @@ -218,7 +218,13 @@ XAADoComposite ( if (pDst->alphaMap || pSrc->alphaMap || (pMask && pMask->alphaMap)) return FALSE; - + + if ((pSrc->repeat && pSrc->repeatType != RepeatNormal) || + (pMask && pMask->repeat && pMask->repeatType != RepeatNormal)) + { + return FALSE; + } + xDst += pDst->pDrawable->x; yDst += pDst->pDrawable->y; xSrc += pSrc->pDrawable->x; |