/contrib/sdk/sources/Mesa/src/mesa/Makefile |
---|
26,9 → 26,6 |
MAIN_SRC = \ |
drivers/common/driverfuncs.c \ |
drivers/common/meta.c \ |
drivers/dri/common/dri_util.c \ |
drivers/dri/common/utils.c \ |
drivers/dri/common/xmlconfig.c \ |
main/accum.c \ |
main/api_arrayelt.c \ |
main/api_exec.c \ |
244,7 → 241,13 |
x86/x86_xform4.S \ |
$(NULL) |
OSMESA_SRC = \ |
drivers/osmesa/osmesa.c |
I965_SRC = \ |
drivers/dri/common/dri_util.c \ |
drivers/dri/common/utils.c \ |
drivers/dri/common/xmlconfig.c \ |
drivers/dri/i965/intel_batchbuffer.c \ |
drivers/dri/i965/intel_blit.c \ |
drivers/dri/i965/intel_buffer_objects.c \ |
369,11 → 372,12 |
$(NULL) |
MESA_OBJS = $(patsubst %.c, %.o, $(patsubst %.S, %.o, $(patsubst %.cpp, %.o, $(MAIN_SRC)))) |
OSMESA_OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(OSMESA_SRC))) |
I965_OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(I965_SRC))) |
# targets |
all: i965_dri.drv |
all: osmesa.dll i965_dri.drv |
i965_dri.drv: $(I965_OBJS) $(MESA_OBJS) dri.def Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(I965_OBJS) $(MESA_OBJS) dri.def $(LIBS) |
380,6 → 384,11 |
# $(STRIP) $@ |
mv -f $@ $(SDK_DIR)/bin |
osmesa.dll: $(MESA_OBJS) $(OSMESA_OBJS) osmesa.def Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) --out-implib libosmesa.dll.a -o $@ $(MESA_OBJS) $(OSMESA_OBJS) osmesa.def $(LIBS) |
mv -f libosmesa.dll.a $(SDK_DIR)/lib |
mv -f $@ $(SDK_DIR)/bin |
%.o : %.c Makefile |
$(CC) $(CFLAGS) -std=c99 $(MESA_DEFS) $(INC_MESA) $(INC_I965) -o $@ $< |
/contrib/sdk/sources/Mesa/src/mesa/osmesa.def |
---|
0,0 → 1,16 |
;DESCRIPTION 'Mesa OSMesa lib for Win32' |
VERSION 4.1 |
EXPORTS |
DllStartup |
OSMesaColorClamp |
OSMesaCreateContext |
OSMesaCreateContextExt |
OSMesaDestroyContext |
OSMesaMakeCurrent |
OSMesaGetCurrentContext |
OSMesaPixelStore |
OSMesaGetIntegerv |
OSMesaGetDepthBuffer |
OSMesaGetColorBuffer |
OSMesaGetProcAddress |
/contrib/sdk/sources/Mesa/src/mesa/state_tracker/st_manager.c |
---|
631,6 → 631,7 |
if (attribs->flags & ST_CONTEXT_FLAG_FORWARD_COMPATIBLE) |
st->ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT; |
#if 0 |
/* need to perform version check */ |
if (attribs->major > 1 || attribs->minor > 0) { |
/* Is the actual version less than the requested version? |
641,6 → 642,7 |
return NULL; |
} |
} |
#endif |
st->invalidate_on_gl_viewport = |
smapi->get_param(smapi, ST_MANAGER_BROKEN_INVALIDATE); |
/contrib/sdk/sources/Mesa/src/mesa/x86/assyntax.h |
---|
254,14 → 254,8 |
#endif /* GNU_ASSEMBLER */ |
#endif /* ACK_ASSEMBLER */ |
#if defined(__QNX__) || defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || defined(__ELF__) || defined(__GNU__) || defined(__GNUC__) && !defined(__DJGPP__) && !defined(__MINGW32__) |
#define GLNAME(a) a |
#else |
#define GLNAME(a) CONCAT(_,a) |
#endif |
/****************************************/ |
/* */ |
/* Select the various choices */ |
983,14 → 977,7 |
#endif |
#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) \ |
|| (defined(__linux__) || defined(__OS2ELF__)) && defined(__ELF__) \ |
|| (defined(__FreeBSD__) && __FreeBSD__ >= 3) \ |
|| (defined(__NetBSD__) && defined(__ELF__)) |
#define GLNAME(a) a |
#else |
#define GLNAME(a) CONCAT(_, a) |
#endif |
/* |
* Addressing Modes |
1734,14 → 1721,6 |
/* Hidden symbol visibility support. |
* If we build with gcc's -fvisibility=hidden flag, we'll need to change |
* the symbol visibility mode to 'default'. |
#if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__) |
# define HIDDEN(x) .hidden x |
#elif defined(__GNUC__) && !defined(__DJGPP__) && !defined(__MINGW32__) && !defined(__APPLE__) |
# pragma GCC visibility push(default) |
# define HIDDEN(x) .hidden x |
#else |
# define HIDDEN(x) |
#endif |
*/ |
# define HIDDEN(x) |