Commit e60f281a authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/NXglxext.c: Shrink file, drop duplicate code that can identically be…

hw/nxagent/NXglxext.c: Shrink file, drop duplicate code that can identically be found in GL/glx/glxext.c.
parent b4e2ec70
...@@ -24,11 +24,19 @@ LinkSourceFile(glcontextmodes.h, $(MESASRCDIR)/src/mesa/drivers/dri/common) ...@@ -24,11 +24,19 @@ LinkSourceFile(glcontextmodes.h, $(MESASRCDIR)/src/mesa/drivers/dri/common)
LinkSourceFile(indirect_size.c, $(MESASRCDIR)/src/glx/x11) LinkSourceFile(indirect_size.c, $(MESASRCDIR)/src/glx/x11)
LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11) LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11)
#if (!(defined(NXAgentServer) && NXAgentServer))
NXAGENT_SKIP_SRCS = \
glxext.c \
$(NULL)
NXAGENT_SKIP_OBJS = \
glxext.o \
$(NULL)
#endif
SRCS = global.c \ SRCS = global.c \
glxbuf.c \ glxbuf.c \
glxcmds.c \ glxcmds.c \
glxcmdsswap.c \ glxcmdsswap.c \
glxext.c \
glxfb.c \ glxfb.c \
glximports.c \ glximports.c \
glxmem.c \ glxmem.c \
...@@ -56,13 +64,13 @@ LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11) ...@@ -56,13 +64,13 @@ LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11)
glcontextmodes. c \ glcontextmodes. c \
indirect_size.c \ indirect_size.c \
$(MSRCS) \ $(MSRCS) \
$(NXAGENT_SKIP_SRCS) \
$(NULL) $(NULL)
OBJS = global.o \ OBJS = global.o \
glxbuf.o \ glxbuf.o \
glxcmds.o \ glxcmds.o \
glxcmdsswap.o \ glxcmdsswap.o \
glxext.o \
glxfb.o \ glxfb.o \
glximports.o \ glximports.o \
glxmem.o \ glxmem.o \
...@@ -90,6 +98,7 @@ LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11) ...@@ -90,6 +98,7 @@ LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11)
glcontextmodes.o \ glcontextmodes.o \
indirect_size.o \ indirect_size.o \
$(MOBJS) \ $(MOBJS) \
$(NXAGENT_SKIP_OBJS) \
$(NULL) $(NULL)
INCLUDES = -I$(SERVERSRC)/GL/glx \ INCLUDES = -I$(SERVERSRC)/GL/glx \
......
...@@ -390,6 +390,8 @@ __GLXcontext *__glXForceCurrent(__GLXclientState *cl, GLXContextTag tag, ...@@ -390,6 +390,8 @@ __GLXcontext *__glXForceCurrent(__GLXclientState *cl, GLXContextTag tag,
/************************************************************************/ /************************************************************************/
#ifndef NXAGENT_SERVER
/* /*
** Top level dispatcher; all commands are executed from here down. ** Top level dispatcher; all commands are executed from here down.
*/ */
...@@ -493,6 +495,9 @@ static int __glXSwapDispatch(ClientPtr client) ...@@ -493,6 +495,9 @@ static int __glXSwapDispatch(ClientPtr client)
return (*proc)(cl, (GLbyte *) stuff); return (*proc)(cl, (GLbyte *) stuff);
} }
#endif /* NXAGENT_SERVER */
int __glXNoSuchSingleOpcode(__GLXclientState *cl, GLbyte *pc) int __glXNoSuchSingleOpcode(__GLXclientState *cl, GLbyte *pc)
{ {
return BadRequest; return BadRequest;
......
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