glx: Remove enter/leave server API
Dead code since:
commit 8aacf47e17
Author: Adam Jackson <ajax@redhat.com>
Date: Fri Oct 4 12:58:19 2013 -0400
glx: Remove DRI1 AIGLX (v2)
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
0c8e6ed858
commit
7dfb9608d0
|
@ -1441,11 +1441,9 @@ DoCreatePbuffer(ClientPtr client, int screenNum, XID fbconfigId,
|
||||||
if (!validGlxFBConfig(client, pGlxScreen, fbconfigId, &config, &err))
|
if (!validGlxFBConfig(client, pGlxScreen, fbconfigId, &config, &err))
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
__glXenterServer(GL_FALSE);
|
|
||||||
pPixmap = (*pGlxScreen->pScreen->CreatePixmap) (pGlxScreen->pScreen,
|
pPixmap = (*pGlxScreen->pScreen->CreatePixmap) (pGlxScreen->pScreen,
|
||||||
width, height,
|
width, height,
|
||||||
config->rgbBits, 0);
|
config->rgbBits, 0);
|
||||||
__glXleaveServer(GL_FALSE);
|
|
||||||
if (!pPixmap)
|
if (!pPixmap)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
|
|
50
glx/glxext.c
50
glx/glxext.c
|
@ -107,7 +107,6 @@ ContextGone(__GLXcontext * cx, XID id)
|
||||||
|
|
||||||
static __GLXcontext *glxPendingDestroyContexts;
|
static __GLXcontext *glxPendingDestroyContexts;
|
||||||
static __GLXcontext *glxAllContexts;
|
static __GLXcontext *glxAllContexts;
|
||||||
static int glxServerLeaveCount;
|
|
||||||
static int glxBlockClients;
|
static int glxBlockClients;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -208,9 +207,7 @@ __glXFreeContext(__GLXcontext * cx)
|
||||||
* the latter case we need to lift the DRI lock manually. */
|
* the latter case we need to lift the DRI lock manually. */
|
||||||
|
|
||||||
if (!glxBlockClients) {
|
if (!glxBlockClients) {
|
||||||
__glXleaveServer(GL_FALSE);
|
|
||||||
cx->destroy(cx);
|
cx->destroy(cx);
|
||||||
__glXenterServer(GL_FALSE);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cx->next = glxPendingDestroyContexts;
|
cx->next = glxPendingDestroyContexts;
|
||||||
|
@ -531,53 +528,12 @@ glxResumeClients(void)
|
||||||
AttendClient(clients[i]);
|
AttendClient(clients[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
__glXleaveServer(GL_FALSE);
|
|
||||||
for (cx = glxPendingDestroyContexts; cx != NULL; cx = next) {
|
for (cx = glxPendingDestroyContexts; cx != NULL; cx = next) {
|
||||||
next = cx->next;
|
next = cx->next;
|
||||||
|
|
||||||
cx->destroy(cx);
|
cx->destroy(cx);
|
||||||
}
|
}
|
||||||
glxPendingDestroyContexts = NULL;
|
glxPendingDestroyContexts = NULL;
|
||||||
__glXenterServer(GL_FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
__glXnopEnterServer(GLboolean rendering)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
__glXnopLeaveServer(GLboolean rendering)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void (*__glXenterServerFunc) (GLboolean) = __glXnopEnterServer;
|
|
||||||
static void (*__glXleaveServerFunc) (GLboolean) = __glXnopLeaveServer;
|
|
||||||
|
|
||||||
void
|
|
||||||
__glXsetEnterLeaveServerFuncs(void (*enter) (GLboolean),
|
|
||||||
void (*leave) (GLboolean))
|
|
||||||
{
|
|
||||||
__glXenterServerFunc = enter;
|
|
||||||
__glXleaveServerFunc = leave;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
__glXenterServer(GLboolean rendering)
|
|
||||||
{
|
|
||||||
glxServerLeaveCount--;
|
|
||||||
|
|
||||||
if (glxServerLeaveCount == 0)
|
|
||||||
(*__glXenterServerFunc) (rendering);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
__glXleaveServer(GLboolean rendering)
|
|
||||||
{
|
|
||||||
if (glxServerLeaveCount == 0)
|
|
||||||
(*__glXleaveServerFunc) (rendering);
|
|
||||||
|
|
||||||
glxServerLeaveCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static glx_gpa_proc _get_proc_address;
|
static glx_gpa_proc _get_proc_address;
|
||||||
|
@ -635,13 +591,7 @@ __glXDispatch(ClientPtr client)
|
||||||
proc = __glXGetProtocolDecodeFunction(&Single_dispatch_info, opcode,
|
proc = __glXGetProtocolDecodeFunction(&Single_dispatch_info, opcode,
|
||||||
client->swapped);
|
client->swapped);
|
||||||
if (proc != NULL) {
|
if (proc != NULL) {
|
||||||
GLboolean rendering = opcode <= X_GLXRenderLarge;
|
|
||||||
|
|
||||||
__glXleaveServer(rendering);
|
|
||||||
|
|
||||||
retval = (*proc) (cl, (GLbyte *) stuff);
|
retval = (*proc) (cl, (GLbyte *) stuff);
|
||||||
|
|
||||||
__glXenterServer(rendering);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
retval = BadRequest;
|
retval = BadRequest;
|
||||||
|
|
|
@ -107,11 +107,6 @@ enum {
|
||||||
GLX_ALL_VISUALS
|
GLX_ALL_VISUALS
|
||||||
};
|
};
|
||||||
|
|
||||||
void __glXsetEnterLeaveServerFuncs(void (*enter) (GLboolean),
|
|
||||||
void (*leave) (GLboolean));
|
|
||||||
void __glXenterServer(GLboolean rendering);
|
|
||||||
void __glXleaveServer(GLboolean rendering);
|
|
||||||
|
|
||||||
void glxSuspendClients(void);
|
void glxSuspendClients(void);
|
||||||
void glxResumeClients(void);
|
void glxResumeClients(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue