summaryrefslogtreecommitdiff
path: root/src/smi_exa.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.com>2007-03-13 00:13:35 -0400
committerAlex Deucher <alex@botch2.com>2007-03-13 00:17:31 -0400
commit449fedec0e38289d10d75799bbf995b0e7189911 (patch)
tree018741aa1e3d01dd9f8db20c11d4f52c85d61238 /src/smi_exa.c
parent6d40f87d6cddde2d88f25be686b6392449cdecf1 (diff)
Unforunately, for 32 bpp solid fills the HW ignores alpha.
Diffstat (limited to 'src/smi_exa.c')
-rw-r--r--src/smi_exa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smi_exa.c b/src/smi_exa.c
index 07bcc97..da3e36b 100644
--- a/src/smi_exa.c
+++ b/src/smi_exa.c
@@ -332,6 +332,10 @@ SMI_PrepareSolid(PixmapPtr pPixmap, int alu, Pixel planemask, Pixel fg)
ENTER_PROC("SMI_PrepareSolid");
DEBUG((VERBLEV, "alu=%02X\n", alu));
+ /* HW ignores alpha */
+ if (pPixmap->drawable.bitsPerPixel == 32)
+ return FALSE;
+
/* Bit Mask not supported > 16 bpp */
if ((pPixmap->drawable.bitsPerPixel > 16) &&
(!EXA_PM_IS_SOLID(&pPixmap->drawable, planemask))) {