Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
1ae0ceb7
Unverified
Commit
1ae0ceb7
authored
Nov 02, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/simplify_glxext' into 3.6.x
Attributes GH PR #868:
https://github.com/ArcticaProject/nx-libs/pull/868
parents
eb8c16ef
f3bddad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
56 deletions
+5
-56
glxext.c
nx-X11/programs/Xserver/GL/glx/glxext.c
+4
-3
NXglxext.c
nx-X11/programs/Xserver/hw/nxagent/NXglxext.c
+1
-53
No files found.
nx-X11/programs/Xserver/GL/glx/glxext.c
View file @
1ae0ceb7
...
...
@@ -387,12 +387,15 @@ __GLXcontext *__glXForceCurrent(__GLXclientState *cl, GLXContextTag tag,
/************************************************************************/
#ifndef NXAGENT_SERVER
/*
** Top level dispatcher; all commands are executed from here down.
*/
#ifdef NXAGENT_SERVER
static
int
xorg__glXDispatch
(
ClientPtr
client
)
#else
static
int
__glXDispatch
(
ClientPtr
client
)
#endif
{
REQUEST
(
xGLXSingleReq
);
CARD8
opcode
;
...
...
@@ -449,8 +452,6 @@ static int __glXDispatch(ClientPtr client)
return
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
}
#endif
/* NXAGENT_SERVER */
int
__glXNoSuchSingleOpcode
(
__GLXclientState
*
cl
,
GLbyte
*
pc
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglxext.c
View file @
1ae0ceb7
...
...
@@ -57,60 +57,8 @@
*/
static
int
__glXDispatch
(
ClientPtr
client
)
{
REQUEST
(
xGLXSingleReq
);
CARD8
opcode
;
int
(
*
proc
)(
__GLXclientState
*
cl
,
GLbyte
*
pc
);
__GLXclientState
*
cl
;
int
retval
;
opcode
=
stuff
->
glxCode
;
cl
=
__glXClients
[
client
->
index
];
if
(
!
cl
)
{
cl
=
(
__GLXclientState
*
)
malloc
(
sizeof
(
__GLXclientState
));
__glXClients
[
client
->
index
]
=
cl
;
if
(
!
cl
)
{
return
BadAlloc
;
}
memset
(
cl
,
0
,
sizeof
(
__GLXclientState
));
}
if
(
!
cl
->
inUse
)
{
/*
** This is first request from this client. Associate a resource
** with the client so we will be notified when the client dies.
*/
XID
xid
=
FakeClientID
(
client
->
index
);
if
(
!
AddResource
(
xid
,
__glXClientRes
,
(
void
*
)(
long
)
client
->
index
))
{
return
BadAlloc
;
}
ResetClientState
(
client
->
index
);
cl
->
inUse
=
GL_TRUE
;
cl
->
client
=
client
;
}
/*
** Check for valid opcode.
*/
if
(
opcode
>=
__GLX_SINGLE_TABLE_SIZE
)
{
return
BadRequest
;
}
/*
** If we're expecting a glXRenderLarge request, this better be one.
*/
if
((
cl
->
largeCmdRequestsSoFar
!=
0
)
&&
(
opcode
!=
X_GLXRenderLarge
))
{
client
->
errorValue
=
stuff
->
glxCode
;
return
__glXBadLargeRequest
;
}
/*
** Use the opcode to index into the procedure table.
*/
if
(
client
->
swapped
)
proc
=
__glXSwapSingleTable
[
opcode
];
else
proc
=
__glXSingleTable
[
opcode
];
/*
* Report upstream that we are
* dispatching a GLX operation.
...
...
@@ -123,7 +71,7 @@ static int __glXDispatch(ClientPtr client)
opcode
,
client
->
index
);
#endif
retval
=
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
retval
=
xorg__glXDispatch
(
client
);
nxagentGlxTrap
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment