summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-16 22:31:02 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-09-16 22:31:02 +0200
commit3d7c109c4864f021590c3bcf0f09685498225dde (patch)
tree07bcae0f2cd4776c16aa43cc444f904eb1a788f6
parent2eae7c98fcd3f452f9b9c2eef4a9cf820edf69aa (diff)
Enable the BYPASS332 and NODITHER flags when writing to 8 bpp dests.
Thanks to Ville Syrjälä, who noticed these were missing. Note that this messes up glyph compositing (A8 add A8) pretty much, but I don't know what's really going on there yet.
-rw-r--r--src/mga_exa.c2
-rw-r--r--src/mga_reg.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c
index cc73895..6583b0c 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -148,7 +148,7 @@ mgaGetMACCESS(PixmapPtr pixmap, PicturePtr pict)
{
switch (pixmap->drawable.bitsPerPixel) {
case 8:
- return MGAMAC_PW8;
+ return MGAMAC_PW8 | MGAMAC_BYPASS332 | MGAMAC_NODITHER;
case 16:
if (pict &&
(pict->format == PICT_x1r5g5b5 || pict->format == PICT_a1r5g5b5))
diff --git a/src/mga_reg.h b/src/mga_reg.h
index e67158c..874c4ed 100644
--- a/src/mga_reg.h
+++ b/src/mga_reg.h
@@ -138,6 +138,8 @@
#define MGAMAC_PW16 0x01
#define MGAMAC_PW24 0x03 /* not a typo */
#define MGAMAC_PW32 0x02 /* not a typo */
+#define MGAMAC_BYPASS332 0x10000000
+#define MGAMAC_NODITHER 0x40000000
#define MGAMAC_DIT555 0x80000000
/* DWGCTL register additives */