Patch from Thomas Winischhofer to kick out all pixmaps to system ram upon a

VT switch and vice versa when returning.
This commit is contained in:
Zack Rusin 2005-07-09 14:15:35 +00:00
commit 3c92389185
12 changed files with 162 additions and 18 deletions

View file

@ -44,11 +44,15 @@
#include "dix.h"
#include "fb.h"
#include "fboverlay.h"
#ifdef RENDER
#include "fbpict.h"
#endif
#ifndef EXA_MAX_FB
#define EXA_MAX_FB FB_OVERLAY_MAX
#endif
typedef void (*EnableDisableFBAccessProcPtr)(int, Bool);
typedef struct {
ExaDriverPtr info;
CreateGCProcPtr SavedCreateGC;
@ -63,6 +67,9 @@ typedef struct {
#ifdef RENDER
CompositeProcPtr SavedComposite;
#endif
EnableDisableFBAccessProcPtr SavedEnableDisableFBAccess;
Bool wrappedEnableDisableFB;
Bool swappedOut;
} ExaScreenPrivRec, *ExaScreenPrivPtr;
/*
@ -225,6 +232,9 @@ ExaOffscreenSwapIn (ScreenPtr pScreen);
void
ExaOffscreenFini (ScreenPtr pScreen);
void
exaEnableDisableFBAccess (int index, Bool enable);
/* exa.c */
void
exaPixmapUseScreen (PixmapPtr pPixmap);