From 954c8d06f2697d4f764583dd3336b4cc266b90fd Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Wed, 20 Sep 2006 20:51:36 +0200 Subject: Removed the XAA atype tables. Added a FIXME on BLK support for GXcopy instead. --- src/mga_exa.c | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) (limited to 'src/mga_exa.c') 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); } -- cgit v1.2.3