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
39d45a0e
Unverified
Commit
39d45a0e
authored
Nov 17, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-small_fixes' into 3.6.x
Attributes GH PR #532:
https://github.com/ArcticaProject/nx-libs/pull/532
parents
56569f33
9a160437
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
135 deletions
+23
-135
keysym.h
nx-X11/include/keysym.h
+1
-1
glxext.c
nx-X11/programs/Xserver/GL/glx/glxext.c
+5
-49
Imakefile.inc
nx-X11/programs/Xserver/GL/mesa/shader/slang/Imakefile.inc
+10
-10
NXglxext.c
nx-X11/programs/Xserver/hw/nxagent/NXglxext.c
+7
-75
No files found.
nx-X11/include/keysym.h
View file @
39d45a0e
...
...
@@ -70,5 +70,5 @@ SOFTWARE.
#define XK_BRAILLE
#define XK_SINHALA
#include <X11/keysymdef.h>
#include <
nx-
X11/keysymdef.h>
nx-X11/programs/Xserver/GL/glx/glxext.c
View file @
39d45a0e
...
...
@@ -42,7 +42,6 @@ static __GLXextensionInfo *__glXExt /* = &__glDDXExtensionInfo */;
/*
** Forward declarations.
*/
static
int
__glXSwapDispatch
(
ClientPtr
);
static
int
__glXDispatch
(
ClientPtr
);
/*
...
...
@@ -246,7 +245,7 @@ void GlxExtensionInit(void)
*/
extEntry
=
AddExtension
(
GLX_EXTENSION_NAME
,
__GLX_NUMBER_EVENTS
,
__GLX_NUMBER_ERRORS
,
__glXDispatch
,
__glX
Swap
Dispatch
,
ResetExtension
,
__glXDispatch
,
ResetExtension
,
StandardMinorOpcode
);
if
(
!
extEntry
)
{
FatalError
(
"__glXExtensionInit: AddExtensions failed
\n
"
);
...
...
@@ -445,53 +444,10 @@ static int __glXDispatch(ClientPtr client)
/*
** Use the opcode to index into the procedure table.
*/
proc
=
__glXSingleTable
[
opcode
];
return
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
}
static
int
__glXSwapDispatch
(
ClientPtr
client
)
{
REQUEST
(
xGLXSingleReq
);
CARD8
opcode
;
int
(
*
proc
)(
__GLXclientState
*
cl
,
GLbyte
*
pc
);
__GLXclientState
*
cl
;
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
;
}
/*
** Use the opcode to index into the procedure table.
*/
proc
=
__glXSwapSingleTable
[
opcode
];
if
(
client
->
swapped
)
proc
=
__glXSwapSingleTable
[
opcode
];
else
proc
=
__glXSingleTable
[
opcode
];
return
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
}
...
...
nx-X11/programs/Xserver/GL/mesa/shader/slang/Imakefile.inc
View file @
39d45a0e
...
...
@@ -61,16 +61,16 @@ LinkSourceFile(traverse_wrap.h, $(MESASRCDIR)/src/mesa/shader/slang)
MESA_SLANG_UOBJS
=
$
(
MESA_SLANG_OBJS
)
#endif
MESA_SLANG_DOBJS
=
$
(
MESASLANGBUILDDIR
)
debuggerslang_assemble_assignment
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_assemble
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_assemble_conditional
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_assemble_constructor
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_assemble_typeinfo
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_compile
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_execute
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_preprocess
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_storage
.
o
\
$
(
MESASLANGBUILDDIR
)
debuggerslang_utility
.
o
MESA_SLANG_DOBJS
=
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_assemble_assignment
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_assemble
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_assemble_conditional
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_assemble_constructor
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_assemble_typeinfo
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_compile
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_execute
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_preprocess
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_storage
.
o
\
$
(
MESASLANGBUILDDIR
)
debugger
/
slang_utility
.
o
MESA_SLANG_POBJS
=
$
(
MESASLANGBUILDDIR
)
profiled
/
slang_assemble_assignment
.
o
\
$
(
MESASLANGBUILDDIR
)
profiled
/
slang_assemble
.
o
\
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglxext.c
View file @
39d45a0e
...
...
@@ -57,12 +57,11 @@
*/
static
int
__glXDispatch
(
ClientPtr
client
)
{
int
result
;
REQUEST
(
xGLXSingleReq
);
CARD8
opcode
;
int
(
*
proc
)(
__GLXclientState
*
cl
,
GLbyte
*
pc
);
__GLXclientState
*
cl
;
int
retval
;
opcode
=
stuff
->
glxCode
;
cl
=
__glXClients
[
client
->
index
];
...
...
@@ -107,77 +106,10 @@ static int __glXDispatch(ClientPtr client)
/*
** Use the opcode to index into the procedure table.
*/
proc
=
__glXSingleTable
[
opcode
];
/*
* Report upstream that we are
* dispatching a GLX operation.
*/
nxagentGlxTrap
=
1
;
#ifdef TEST
fprintf
(
stderr
,
"__glXDispatch: Going to dispatch GLX operation [%d] for client [%d].
\n
"
,
opcode
,
client
->
index
);
#endif
result
=
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
nxagentGlxTrap
=
0
;
#ifdef TEST
fprintf
(
stderr
,
"__glXDispatch: Dispatched GLX operation [%d] for client [%d].
\n
"
,
opcode
,
client
->
index
);
#endif
return
result
;
}
static
int
__glXSwapDispatch
(
ClientPtr
client
)
{
int
result
;
REQUEST
(
xGLXSingleReq
);
CARD8
opcode
;
int
(
*
proc
)(
__GLXclientState
*
cl
,
GLbyte
*
pc
);
__GLXclientState
*
cl
;
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
;
}
/*
** Use the opcode to index into the procedure table.
*/
proc
=
__glXSwapSingleTable
[
opcode
];
if
(
client
->
swapped
)
proc
=
__glXSwapSingleTable
[
opcode
];
else
proc
=
__glXSingleTable
[
opcode
];
/*
* Report upstream that we are
...
...
@@ -191,7 +123,7 @@ static int __glXSwapDispatch(ClientPtr client)
opcode
,
client
->
index
);
#endif
re
sult
=
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
re
tval
=
(
*
proc
)(
cl
,
(
GLbyte
*
)
stuff
);
nxagentGlxTrap
=
0
;
...
...
@@ -200,5 +132,5 @@ static int __glXSwapDispatch(ClientPtr client)
opcode
,
client
->
index
);
#endif
return
re
sult
;
return
re
tval
;
}
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