mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-15 05:39:13 +00:00
Bug fixes from X.Org ati-6.6-branch head.
This commit is contained in:
@@ -204,8 +204,8 @@ static Bool R100CheckCompositeTexture(PicturePtr pPict, int unit)
|
|||||||
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
|
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
|
||||||
(int)pPict->format));
|
(int)pPict->format));
|
||||||
|
|
||||||
if (pPict->repeat && ((w & (w - 1)) != 0 || (h & (h - 1)) != 0))
|
if (pPict->repeat && ((w != 1) || (h != 1)))
|
||||||
RADEON_FALLBACK(("NPOT repeat unsupported (%dx%d)\n", w, h));
|
RADEON_FALLBACK(("Repeat unsupported (%dx%d)\n", w, h));
|
||||||
|
|
||||||
if (pPict->filter != PictFilterNearest &&
|
if (pPict->filter != PictFilterNearest &&
|
||||||
pPict->filter != PictFilterBilinear)
|
pPict->filter != PictFilterBilinear)
|
||||||
@@ -459,8 +459,8 @@ static Bool R200CheckCompositeTexture(PicturePtr pPict, int unit)
|
|||||||
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
|
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
|
||||||
(int)pPict->format));
|
(int)pPict->format));
|
||||||
|
|
||||||
if (pPict->repeat && ((w & (w - 1)) != 0 || (h & (h - 1)) != 0))
|
if (pPict->repeat && ((w != 1) || (h != 1)))
|
||||||
RADEON_FALLBACK(("NPOT repeat unsupported (%dx%d)\n", w, h));
|
RADEON_FALLBACK(("Repeat unsupported (%dx%d)\n", w, h));
|
||||||
|
|
||||||
if (pPict->filter != PictFilterNearest &&
|
if (pPict->filter != PictFilterNearest &&
|
||||||
pPict->filter != PictFilterBilinear)
|
pPict->filter != PictFilterBilinear)
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ static Bool FUNC_NAME(R100SetupTexture)(
|
|||||||
ACCEL_PREAMBLE();
|
ACCEL_PREAMBLE();
|
||||||
|
|
||||||
/* render repeat is broken - fix in stable tree by falling back */
|
/* render repeat is broken - fix in stable tree by falling back */
|
||||||
if (flags & XAA_RENDER_REPEAT)
|
if ((flags & XAA_RENDER_REPEAT) && ((width != 1) || (height != 1)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if ((width > 2048) || (height > 2048))
|
if ((width > 2048) || (height > 2048))
|
||||||
@@ -730,7 +730,7 @@ static Bool FUNC_NAME(R200SetupTexture)(
|
|||||||
ACCEL_PREAMBLE();
|
ACCEL_PREAMBLE();
|
||||||
|
|
||||||
/* render repeat is broken - fix in stable tree by falling back */
|
/* render repeat is broken - fix in stable tree by falling back */
|
||||||
if (flags & XAA_RENDER_REPEAT)
|
if ((flags & XAA_RENDER_REPEAT) && ((width != 1) || (height != 1)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if ((width > 2048) || (height > 2048))
|
if ((width > 2048) || (height > 2048))
|
||||||
|
|||||||
Reference in New Issue
Block a user