diff options
author | Alex Deucher <alex@botch2.com> | 2007-03-13 00:13:35 -0400 |
---|---|---|
committer | Alex Deucher <alex@botch2.com> | 2007-03-13 00:17:31 -0400 |
commit | 449fedec0e38289d10d75799bbf995b0e7189911 (patch) | |
tree | 018741aa1e3d01dd9f8db20c11d4f52c85d61238 | |
parent | 6d40f87d6cddde2d88f25be686b6392449cdecf1 (diff) |
fix Solid()xf86-video-siliconmotion-1.5.0
Unforunately, for 32 bpp solid fills the HW ignores alpha.
-rw-r--r-- | src/smi_exa.c | 4 |
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))) { |