unifdef -B -DRENDER to always include RENDER code
This patch was created with: git ls-files '*.[ch]' | while read f; do unifdef -B -DRENDER -o $f $f; done Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
10
exa/exa.c
10
exa/exa.c
@@ -753,9 +753,7 @@ static Bool
|
||||
exaCloseScreen(int i, ScreenPtr pScreen)
|
||||
{
|
||||
ExaScreenPriv(pScreen);
|
||||
#ifdef RENDER
|
||||
PictureScreenPtr ps = GetPictureScreenIfSet(pScreen);
|
||||
#endif
|
||||
|
||||
if (ps->Glyphs == exaGlyphs)
|
||||
exaGlyphsFini(pScreen);
|
||||
@@ -778,7 +776,6 @@ exaCloseScreen(int i, ScreenPtr pScreen)
|
||||
unwrap(pExaScr, pScreen, ChangeWindowAttributes);
|
||||
unwrap(pExaScr, pScreen, BitmapToRegion);
|
||||
unwrap(pExaScr, pScreen, CreateScreenResources);
|
||||
#ifdef RENDER
|
||||
if (ps) {
|
||||
unwrap(pExaScr, ps, Composite);
|
||||
if (pExaScr->SavedGlyphs)
|
||||
@@ -787,7 +784,6 @@ exaCloseScreen(int i, ScreenPtr pScreen)
|
||||
unwrap(pExaScr, ps, Triangles);
|
||||
unwrap(pExaScr, ps, AddTraps);
|
||||
}
|
||||
#endif
|
||||
|
||||
xfree (pExaScr);
|
||||
|
||||
@@ -825,9 +821,7 @@ exaDriverInit (ScreenPtr pScreen,
|
||||
ExaDriverPtr pScreenInfo)
|
||||
{
|
||||
ExaScreenPrivPtr pExaScr;
|
||||
#ifdef RENDER
|
||||
PictureScreenPtr ps;
|
||||
#endif
|
||||
|
||||
if (!pScreenInfo)
|
||||
return FALSE;
|
||||
@@ -895,9 +889,7 @@ exaDriverInit (ScreenPtr pScreen,
|
||||
pScreenInfo->maxPitchPixels = pScreenInfo->maxX;
|
||||
}
|
||||
|
||||
#ifdef RENDER
|
||||
ps = GetPictureScreenIfSet(pScreen);
|
||||
#endif
|
||||
|
||||
pExaScr = xcalloc (sizeof (ExaScreenPrivRec), 1);
|
||||
if (!pExaScr) {
|
||||
@@ -940,7 +932,6 @@ exaDriverInit (ScreenPtr pScreen,
|
||||
wrap(pExaScr, pScreen, BitmapToRegion, exaBitmapToRegion);
|
||||
wrap(pExaScr, pScreen, CreateScreenResources, exaCreateScreenResources);
|
||||
|
||||
#ifdef RENDER
|
||||
if (ps) {
|
||||
wrap(pExaScr, ps, Composite, exaComposite);
|
||||
if (pScreenInfo->PrepareComposite)
|
||||
@@ -949,7 +940,6 @@ exaDriverInit (ScreenPtr pScreen,
|
||||
wrap(pExaScr, ps, Triangles, exaTriangles);
|
||||
wrap(pExaScr, ps, AddTraps, ExaCheckAddTraps);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MITSHM
|
||||
/*
|
||||
|
||||
@@ -50,10 +50,8 @@
|
||||
#include "dix.h"
|
||||
#include "fb.h"
|
||||
#include "fboverlay.h"
|
||||
#ifdef RENDER
|
||||
#include "fbpict.h"
|
||||
#include "glyphstr.h"
|
||||
#endif
|
||||
#include "damage.h"
|
||||
|
||||
#define DEBUG_TRACE_FALL 0
|
||||
@@ -166,13 +164,11 @@ typedef struct {
|
||||
CreateScreenResourcesProcPtr SavedCreateScreenResources;
|
||||
ModifyPixmapHeaderProcPtr SavedModifyPixmapHeader;
|
||||
SourceValidateProcPtr SavedSourceValidate;
|
||||
#ifdef RENDER
|
||||
CompositeProcPtr SavedComposite;
|
||||
TrianglesProcPtr SavedTriangles;
|
||||
GlyphsProcPtr SavedGlyphs;
|
||||
TrapezoidsProcPtr SavedTrapezoids;
|
||||
AddTrapsProcPtr SavedAddTraps;
|
||||
#endif
|
||||
void (*do_migration) (ExaMigrationPtr pixmaps, int npixmaps, Bool can_accel);
|
||||
Bool (*pixmap_has_gpu_copy) (PixmapPtr pPixmap);
|
||||
void (*do_move_in_pixmap) (PixmapPtr pPixmap);
|
||||
@@ -499,7 +495,6 @@ exaCopyNtoN (DrawablePtr pSrcDrawable,
|
||||
|
||||
extern const GCOps exaOps;
|
||||
|
||||
#ifdef RENDER
|
||||
void
|
||||
ExaCheckComposite (CARD8 op,
|
||||
PicturePtr pSrc,
|
||||
@@ -513,7 +508,6 @@ ExaCheckComposite (CARD8 op,
|
||||
INT16 yDst,
|
||||
CARD16 width,
|
||||
CARD16 height);
|
||||
#endif
|
||||
|
||||
/* exa_offscreen.c */
|
||||
void
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "exa_priv.h"
|
||||
|
||||
#ifdef RENDER
|
||||
#include "mipict.h"
|
||||
|
||||
#if DEBUG_TRACE_FALL
|
||||
@@ -1072,7 +1071,6 @@ done:
|
||||
if (pMask)
|
||||
pMask->repeat = saveMaskRepeat;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Same as miCreateAlphaPicture, except it uses ExaCheckPolyFillRect instead
|
||||
|
||||
@@ -23,9 +23,7 @@
|
||||
|
||||
#include "exa_priv.h"
|
||||
|
||||
#ifdef RENDER
|
||||
#include "mipict.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These functions wrap the low-level fb rendering functions and
|
||||
@@ -617,9 +615,7 @@ ExaCheckComposite (CARD8 op,
|
||||
CARD16 height)
|
||||
{
|
||||
ScreenPtr pScreen = pDst->pDrawable->pScreen;
|
||||
#ifdef RENDER
|
||||
PictureScreenPtr ps = GetPictureScreen(pScreen);
|
||||
#endif /* RENDER */
|
||||
EXA_PRE_FALLBACK(pScreen);
|
||||
|
||||
if (pExaScr->prepare_access_reg) {
|
||||
@@ -652,7 +648,6 @@ ExaCheckComposite (CARD8 op,
|
||||
exaPrepareAccess (pMask->pDrawable, EXA_PREPARE_MASK);
|
||||
}
|
||||
|
||||
#ifdef RENDER
|
||||
swap(pExaScr, ps, Composite);
|
||||
ps->Composite (op,
|
||||
pSrc,
|
||||
@@ -667,7 +662,6 @@ ExaCheckComposite (CARD8 op,
|
||||
width,
|
||||
height);
|
||||
swap(pExaScr, ps, Composite);
|
||||
#endif /* RENDER */
|
||||
if (pMask && pMask->pDrawable != NULL)
|
||||
exaFinishAccess (pMask->pDrawable, EXA_PREPARE_MASK);
|
||||
if (pSrc->pDrawable != NULL)
|
||||
@@ -692,19 +686,15 @@ ExaCheckAddTraps (PicturePtr pPicture,
|
||||
xTrap *traps)
|
||||
{
|
||||
ScreenPtr pScreen = pPicture->pDrawable->pScreen;
|
||||
#ifdef RENDER
|
||||
PictureScreenPtr ps = GetPictureScreen(pScreen);
|
||||
#endif /* RENDER */
|
||||
EXA_PRE_FALLBACK(pScreen);
|
||||
|
||||
EXA_FALLBACK(("to pict %p (%c)\n",
|
||||
exaDrawableLocation(pPicture->pDrawable)));
|
||||
exaPrepareAccess(pPicture->pDrawable, EXA_PREPARE_DEST);
|
||||
#ifdef RENDER
|
||||
swap(pExaScr, ps, AddTraps);
|
||||
ps->AddTraps (pPicture, x_off, y_off, ntrap, traps);
|
||||
swap(pExaScr, ps, AddTraps);
|
||||
#endif /* RENDER */
|
||||
exaFinishAccess(pPicture->pDrawable, EXA_PREPARE_DEST);
|
||||
EXA_POST_FALLBACK(pScreen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user