mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 20:00:06 +01:00
Drop unused DRI2 vblank infrastructure.
For this first iteration of DRI2 we don't have any vsync functionality in place yet, so back out the support in DRI2 and the protocol for now.
This commit is contained in:
parent
862d5b2dc5
commit
670ac5d097
2 changed files with 0 additions and 29 deletions
|
|
@ -66,9 +66,7 @@ typedef struct _DRI2Screen {
|
|||
DRI2CreateBuffersProcPtr CreateBuffers;
|
||||
DRI2DestroyBuffersProcPtr DestroyBuffers;
|
||||
DRI2CopyRegionProcPtr CopyRegion;
|
||||
DRI2WaitProcPtr Wait;
|
||||
|
||||
ClipNotifyProcPtr ClipNotify;
|
||||
HandleExposuresProcPtr HandleExposures;
|
||||
} DRI2ScreenRec, *DRI2ScreenPtr;
|
||||
|
||||
|
|
@ -251,23 +249,6 @@ DRI2Authenticate(ScreenPtr pScreen, drm_magic_t magic)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
DRI2ClipNotify(WindowPtr pWin, int dx, int dy)
|
||||
{
|
||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||
DRI2DrawablePtr dd = DRI2GetDrawable(&pWin->drawable);
|
||||
|
||||
if (dd && ds->lastSequence < dd->pendingSequence && ds->Wait)
|
||||
ds->Wait(pWin, dd->pendingSequence);
|
||||
|
||||
if (ds->ClipNotify) {
|
||||
pScreen->ClipNotify = ds->ClipNotify;
|
||||
pScreen->ClipNotify(pWin, dx, dy);
|
||||
pScreen->ClipNotify = DRI2ClipNotify;
|
||||
}
|
||||
}
|
||||
|
||||
Bool
|
||||
DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
||||
{
|
||||
|
|
@ -283,10 +264,6 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
|||
ds->CreateBuffers = info->CreateBuffers;
|
||||
ds->DestroyBuffers = info->DestroyBuffers;
|
||||
ds->CopyRegion = info->CopyRegion;
|
||||
ds->Wait = info->Wait;
|
||||
|
||||
ds->ClipNotify = pScreen->ClipNotify;
|
||||
pScreen->ClipNotify = DRI2ClipNotify;
|
||||
|
||||
dixSetPrivate(&pScreen->devPrivates, dri2ScreenPrivateKey, ds);
|
||||
|
||||
|
|
@ -300,7 +277,6 @@ DRI2CloseScreen(ScreenPtr pScreen)
|
|||
{
|
||||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||
|
||||
pScreen->ClipNotify = ds->ClipNotify;
|
||||
xfree(ds);
|
||||
dixSetPrivate(&pScreen->devPrivates, dri2ScreenPrivateKey, NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -243,10 +243,6 @@ ProcDRI2CopyRegion(ClientPtr client)
|
|||
|
||||
REQUEST_SIZE_MATCH(xDRI2CopyRegionReq);
|
||||
|
||||
/* No optional values supported for DRI2 2.0 protocol. */
|
||||
if (stuff->bitmask != 0)
|
||||
return BadValue;
|
||||
|
||||
if (!validDrawable(client, stuff->drawable, &pDrawable, &status))
|
||||
return status;
|
||||
|
||||
|
|
@ -266,7 +262,6 @@ ProcDRI2CopyRegion(ClientPtr client)
|
|||
rep.type = X_Reply;
|
||||
rep.length = 0;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.bitmask = 0;
|
||||
|
||||
WriteToClient(client, sizeof(xDRI2CopyRegionReply), &rep);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue