mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
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:
parent
327741486e
commit
3c92389185
12 changed files with 162 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue