diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-09-20 20:51:36 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-09-20 20:51:36 +0200 |
commit | 954c8d06f2697d4f764583dd3336b4cc266b90fd (patch) | |
tree | 09a784c2d90b0a27cf5994a4f0aaccf60603d6a3 | |
parent | ecc155e27b6566196e56de241ae81266e03dc90e (diff) |
Removed the XAA atype tables.
Added a FIXME on BLK support for GXcopy instead.
-rw-r--r-- | src/mga_exa.c | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c index eca543c..ea2feb4 100644 --- a/src/mga_exa.c +++ b/src/mga_exa.c @@ -63,6 +63,11 @@ #define BLIT_LEFT 1 #define BLIT_UP 4 +/* FIXME + * We could use MGADWG_BLK for GXcopy if HaveSDRAM is FALSE. + * That will only work in some situations though (see mga_storm.c + * for details). + */ static const CARD32 mgaRop[16] = { /* GXclear */ MGADWG_RPL | 0x00000000, /* 0 */ /* GXand */ MGADWG_RSTR | 0x00080000, /* src AND dst */ @@ -82,28 +87,6 @@ static const CARD32 mgaRop[16] = { /* GXset */ MGADWG_RPL | 0x000f0000 /* 1 */ }; -static const CARD32 atype[16] = { - MGADWG_RPL | 0x00000000, MGADWG_RSTR | 0x00080000, - MGADWG_RSTR | 0x00040000, MGADWG_BLK | 0x000c0000, - MGADWG_RSTR | 0x00020000, MGADWG_RSTR | 0x000a0000, - MGADWG_RSTR | 0x00060000, MGADWG_RSTR | 0x000e0000, - MGADWG_RSTR | 0x00010000, MGADWG_RSTR | 0x00090000, - MGADWG_RSTR | 0x00050000, MGADWG_RSTR | 0x000d0000, - MGADWG_RPL | 0x00030000, MGADWG_RSTR | 0x000b0000, - MGADWG_RSTR | 0x00070000, MGADWG_RPL | 0x000f0000 -}; - -static const CARD32 atype_noblk[16] = { - MGADWG_RPL | 0x00000000, MGADWG_RSTR | 0x00080000, - MGADWG_RSTR | 0x00040000, MGADWG_RPL | 0x000c0000, - MGADWG_RSTR | 0x00020000, MGADWG_RSTR | 0x000a0000, - MGADWG_RSTR | 0x00060000, MGADWG_RSTR | 0x000e0000, - MGADWG_RSTR | 0x00010000, MGADWG_RSTR | 0x00090000, - MGADWG_RSTR | 0x00050000, MGADWG_RSTR | 0x000d0000, - MGADWG_RPL | 0x00030000, MGADWG_RSTR | 0x000b0000, - MGADWG_RSTR | 0x00070000, MGADWG_RPL | 0x000f0000 -}; - static const struct { Bool dst_alpha; Bool src_alpha; @@ -823,15 +806,5 @@ mgaExaInit(ScreenPtr pScreen) pExa->UploadToScreen = mgaUploadToScreen; - /* XXX fill in the XAA setup code here */ -#if 0 - if(pMga->HasSDRAM) { - pMga->Atype = pMga->AtypeNoBLK = atype_noblk; - } else { - pMga->Atype = atype; - pMga->AtypeNoBLK = atype_noblk; - } -#endif - return exaDriverInit(pScreen, pExa); } |