Commit 3bc01d1b authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXrender.c: call upstream versions of (S)ProcRenderDispatch

parent e5a93849
...@@ -1753,58 +1753,53 @@ static int ProcRenderCreateConicalGradient (ClientPtr client) ...@@ -1753,58 +1753,53 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
static int static int
ProcRenderDispatch (ClientPtr client) ProcRenderDispatch (ClientPtr client)
{ {
int result; #ifdef TEST
REQUEST(xReq); REQUEST(xReq);
if (stuff->data < RenderNumberRequests) if (stuff->data < RenderNumberRequests)
{ {
#ifdef TEST fprintf(stderr, "%s: Request [%s] OPCODE#%d.\n", __func__,
fprintf(stderr, "ProcRenderDispatch: Request [%s] OPCODE#%d.\n",
nxagentRenderRequestLiteral[stuff->data], stuff->data); nxagentRenderRequestLiteral[stuff->data], stuff->data);
}
#endif #endif
/* /*
* Set the nxagentGCTrap flag while * Set the nxagentGCTrap flag while dispatching a render
* dispatching a render operation to * operation to avoid reentrancy in GCOps.c.
* avoid reentrancy in GCOps.c.
*/ */
nxagentGCTrap = 1; nxagentGCTrap = 1;
result = (*ProcRenderVector[stuff->data]) (client); int result = xorg_ProcRenderDispatch(client);
nxagentGCTrap = 0; nxagentGCTrap = 0;
return result; return result;
}
else
return BadRequest;
} }
static int static int
SProcRenderDispatch (ClientPtr client) SProcRenderDispatch (ClientPtr client)
{ {
int result; #ifdef TEST
REQUEST(xReq); REQUEST(xReq);
if (stuff->data < RenderNumberRequests) if (stuff->data < RenderNumberRequests)
{ {
fprintf(stderr, "%s: Request [%s] OPCODE#%d.\n", __func__,
nxagentRenderRequestLiteral[stuff->data], stuff->data);
}
#endif
/* /*
* Set the nxagentGCTrap flag while * Set the nxagentGCTrap flag while dispatching a render
* dispatching a render operation to * operation to avoid reentrancy in GCOps.c.
* avoid reentrancy in GCOps.c.
*/ */
nxagentGCTrap = 1; nxagentGCTrap = 1;
result = (*SProcRenderVector[stuff->data]) (client); int result = xorg_SProcRenderDispatch(client);
nxagentGCTrap = 0; nxagentGCTrap = 0;
return result; return result;
}
else
return BadRequest;
} }
...@@ -126,6 +126,11 @@ static int SProcRenderCreateConicalGradient (ClientPtr pClient); ...@@ -126,6 +126,11 @@ static int SProcRenderCreateConicalGradient (ClientPtr pClient);
static int SProcRenderDispatch (ClientPtr pClient); static int SProcRenderDispatch (ClientPtr pClient);
#ifdef NXAGENT_SERVER
static int xorg_ProcRenderDispatch (ClientPtr pClient);
static int xorg_SProcRenderDispatch (ClientPtr pClient);
#endif
int (*ProcRenderVector[RenderNumberRequests])(ClientPtr) = { int (*ProcRenderVector[RenderNumberRequests])(ClientPtr) = {
ProcRenderQueryVersion, ProcRenderQueryVersion,
ProcRenderQueryPictFormats, ProcRenderQueryPictFormats,
...@@ -2022,10 +2027,15 @@ static int ProcRenderCreateConicalGradient (ClientPtr client) ...@@ -2022,10 +2027,15 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
return BadAlloc; return BadAlloc;
return Success; return Success;
} }
#endif /* NXAGENT_SERVER */
static int static int
#ifdef NXAGENT_SERVER
xorg_ProcRenderDispatch (ClientPtr client)
#else
ProcRenderDispatch (ClientPtr client) ProcRenderDispatch (ClientPtr client)
#endif
{ {
REQUEST(xReq); REQUEST(xReq);
...@@ -2034,7 +2044,6 @@ ProcRenderDispatch (ClientPtr client) ...@@ -2034,7 +2044,6 @@ ProcRenderDispatch (ClientPtr client)
else else
return BadRequest; return BadRequest;
} }
#endif /* NXAGENT_SERVER */
static int static int
SProcRenderQueryVersion (ClientPtr client) SProcRenderQueryVersion (ClientPtr client)
...@@ -2606,9 +2615,12 @@ SProcRenderCreateConicalGradient (ClientPtr client) ...@@ -2606,9 +2615,12 @@ SProcRenderCreateConicalGradient (ClientPtr client)
return (*ProcRenderVector[stuff->renderReqType]) (client); return (*ProcRenderVector[stuff->renderReqType]) (client);
} }
#ifndef NXAGENT_SERVER #ifdef NXAGENT_SERVER
static int static int
xorg_SProcRenderDispatch (ClientPtr client)
#else
SProcRenderDispatch (ClientPtr client) SProcRenderDispatch (ClientPtr client)
#endif
{ {
REQUEST(xReq); REQUEST(xReq);
...@@ -2617,7 +2629,6 @@ SProcRenderDispatch (ClientPtr client) ...@@ -2617,7 +2629,6 @@ SProcRenderDispatch (ClientPtr client)
else else
return BadRequest; return BadRequest;
} }
#endif /* NXAGENT_SERVER */
#ifdef PANORAMIX #ifdef PANORAMIX
#include "panoramiX.h" #include "panoramiX.h"
......
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