Commit 95b5cf79 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

Lift dbe to xorg-xserver-1.4.2 state

parent 4c5e9a29
...@@ -80,36 +80,6 @@ static Bool firstRegistrationPass = TRUE; ...@@ -80,36 +80,6 @@ static Bool firstRegistrationPass = TRUE;
/****************************************************************************** /******************************************************************************
* *
* DBE DIX Procedure: DbeValidateBuffer
*
* Description:
*
* This function is called from VALIDATE_DRAWABLE_AND_GC and from
* various places in dispatch.c if the server has been compiled with
* the flags -DNEED_DBE_BUF_BITS and -DNEED_DBE_BUF_VALIDATE.
* When pWin->dstBuffer changes, this function will be called with pWin
* as the first argument, the drawable ID that was specified as the
* second argument (could be a back buffer id), and True for the third
* argument.
* When pWin->srcBuffer changes, the third argument will be False, and
* the first two arguments are as described for dstBuffer.
*
* This function should prepare the hardware to access the specified
* buffer for reads (if dstbuf is False) or writes (if dstbuf is True).
*
*****************************************************************************/
void
DbeValidateBuffer(WindowPtr pWin, XID drawID, Bool dstbuf)
{
DbeScreenPrivPtr pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(pWin);
if (pDbeScreenPriv->ValidateBuffer)
(*pDbeScreenPriv->ValidateBuffer)(pWin, drawID, dstbuf);
}
/******************************************************************************
*
* DBE DIX Procedure: DbeRegisterFunction * DBE DIX Procedure: DbeRegisterFunction
* *
* Description: * Description:
...@@ -315,7 +285,6 @@ DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens) ...@@ -315,7 +285,6 @@ DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens)
pDbeScreenPriv->EndIdiom = NULL; pDbeScreenPriv->EndIdiom = NULL;
pDbeScreenPriv->WinPrivDelete = NULL; pDbeScreenPriv->WinPrivDelete = NULL;
pDbeScreenPriv->ResetProc = NULL; pDbeScreenPriv->ResetProc = NULL;
pDbeScreenPriv->ValidateBuffer = NULL;
(*nStubbedScreens)++; (*nStubbedScreens)++;
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* INCLUDES */ /* INCLUDES */
#define NEED_DBE_PROTOCOL
#include <nx-X11/extensions/Xdbeproto.h> #include <nx-X11/extensions/Xdbeproto.h>
#include "windowstr.h" #include "windowstr.h"
...@@ -220,11 +219,6 @@ typedef struct _DbeScreenPrivRec ...@@ -220,11 +219,6 @@ typedef struct _DbeScreenPrivRec
void (*ResetProc)( void (*ResetProc)(
ScreenPtr /*pScreen*/ ScreenPtr /*pScreen*/
); );
void (*ValidateBuffer)(
WindowPtr /*pWin*/,
XID /*bufId*/,
Bool /*dstbuffer*/
);
/* Device-specific private information. /* Device-specific private information.
*/ */
......
...@@ -67,11 +67,10 @@ ...@@ -67,11 +67,10 @@
static int miDbePrivPrivGeneration = 0; static int miDbePrivPrivGeneration = 0;
static int miDbeWindowPrivPrivIndex = -1; static int miDbeWindowPrivPrivIndex = -1;
RESTYPE dbeDrawableResType; static RESTYPE dbeDrawableResType;
RESTYPE dbeWindowPrivResType; static RESTYPE dbeWindowPrivResType;
int dbeScreenPrivIndex = -1; static int dbeScreenPrivIndex = -1;
int dbeWindowPrivIndex = -1; static int dbeWindowPrivIndex = -1;
/****************************************************************************** /******************************************************************************
...@@ -766,11 +765,6 @@ miDbeResetProc(ScreenPtr pScreen) ...@@ -766,11 +765,6 @@ miDbeResetProc(ScreenPtr pScreen)
} /* miDbeResetProc() */ } /* miDbeResetProc() */
static void
miDbeNopValidateBuffer(WindowPtr pWin, XID bufId, Bool dstbuffer)
{
}
/****************************************************************************** /******************************************************************************
* *
...@@ -828,9 +822,6 @@ miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv) ...@@ -828,9 +822,6 @@ miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
pDbeScreenPriv->ResetProc = miDbeResetProc; pDbeScreenPriv->ResetProc = miDbeResetProc;
pDbeScreenPriv->WinPrivDelete = miDbeWinPrivDelete; pDbeScreenPriv->WinPrivDelete = miDbeWinPrivDelete;
/* The mi implementation doesn't need buffer validation. */
pDbeScreenPriv->ValidateBuffer = miDbeNopValidateBuffer;
return(TRUE); return(TRUE);
} /* miDbeInit() */ } /* miDbeInit() */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment