diff options
author | marha <marha@users.sourceforge.net> | 2009-07-25 19:39:46 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-07-25 19:39:46 +0000 |
commit | 4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05 (patch) | |
tree | c1e02b9d3509aa97703aa4b540d4cd22ec4600ed /xorg-server/mi/mibank.c | |
parent | dc3c299dd0995549e2a6973ca0f25b254afd38a5 (diff) | |
download | vcxsrv-4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05.tar.gz vcxsrv-4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05.tar.bz2 vcxsrv-4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05.zip |
Added xorg-server-1.6.2.tar.gz
Diffstat (limited to 'xorg-server/mi/mibank.c')
-rw-r--r-- | xorg-server/mi/mibank.c | 73 |
1 files changed, 5 insertions, 68 deletions
diff --git a/xorg-server/mi/mibank.c b/xorg-server/mi/mibank.c index ea79e9d36..dcaf4a14f 100644 --- a/xorg-server/mi/mibank.c +++ b/xorg-server/mi/mibank.c @@ -67,7 +67,6 @@ * dropped due to colour flashing concerns. * * TODO: - * - Allow miModifyBanking() to change BankSize and nBankDepth. * - Re-instate shared and double banking for framebuffers whose pixmap formats * don't describe how the server "sees" the screen. * - Remove remaining assumptions that a pixmap's devPrivate field points @@ -175,8 +174,11 @@ typedef struct _miBankQueue #define xalloc_ARRAY(atype, ntype) \ (atype *)xalloc((ntype) * sizeof(atype)) -static DevPrivateKey miBankScreenKey = &miBankScreenKey; -static DevPrivateKey miBankGCKey = &miBankGCKey; +static int miBankScreenKeyIndex; +static DevPrivateKey miBankScreenKey = &miBankScreenKeyIndex; +static int miBankGCKeyIndex; +static DevPrivateKey miBankGCKey = &miBankGCKeyIndex; + static unsigned long miBankGeneration = 0; #define BANK_SCRPRIVLVAL dixLookupPrivate(&pScreen->devPrivates, miBankScreenKey) @@ -2201,71 +2203,6 @@ miInitializeBanking( return TRUE; } -/* This is used to force GC revalidation when the banking type is changed */ -/*ARGSUSED*/ -static int -miBankNewSerialNumber( - WindowPtr pWin, - pointer unused -) -{ - pWin->drawable.serialNumber = NEXT_SERIAL_NUMBER; - return WT_WALKCHILDREN; -} - -/* This entry modifies the banking interface */ -_X_EXPORT Bool -miModifyBanking( - ScreenPtr pScreen, - miBankInfoPtr pBankInfo -) -{ - unsigned int type; - - if (!pScreen) - return FALSE; - - if (miBankGeneration == serverGeneration) - { - SCREEN_INIT; - - if (pScreenPriv) - { - if (!pBankInfo || !pBankInfo->BankSize || - !pBankInfo->pBankA || !pBankInfo->pBankB || - !pBankInfo->SetSourceBank || !pBankInfo->SetDestinationBank || - !pBankInfo->SetSourceAndDestinationBanks) - return FALSE; - - /* BankSize and nBankDepth cannot, as yet, be changed */ - if ((pScreenPriv->BankInfo.BankSize != pBankInfo->BankSize) || - (pScreenPriv->BankInfo.nBankDepth != pBankInfo->nBankDepth)) - return FALSE; - - if ((type = miBankDeriveType(pScreen, pBankInfo)) == BANK_NOBANK) - return FALSE; - - /* Reset banking info */ - pScreenPriv->BankInfo = *pBankInfo; - if (type != pScreenPriv->type) - { - /* - * Banking type is changing. Revalidate all window GC's. - */ - pScreenPriv->type = type; - WalkTree(pScreen, miBankNewSerialNumber, 0); - } - - return TRUE; - } - } - - if (!pBankInfo || !pBankInfo->BankSize) - return TRUE; /* No change requested */ - - return FALSE; -} - /* * Given various screen attributes, determine the minimum scanline width such * that each scanline is server and DDX padded and any pixels with imbedded |