Updates for OpenVMS : New makefiles
added some type-casts Modified Files: Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/shader/program.c Mesa/src/mesa/shader/slang/slang_compile.c Mesa/src/mesa/shader/slang/slang_preprocess.c Added Files: Mesa/src/mesa/shader/slang/descrip.mms ----------------------------------------------------------------------
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Makefile for core library for VMS
|
# Makefile for core library for VMS
|
||||||
# contributed by Jouk Jansen joukj@hrem.stm.tudelft.nl
|
# contributed by Jouk Jansen joukj@hrem.stm.tudelft.nl
|
||||||
# Last revision : 23 March 2004
|
# Last revision : 15 April 2005
|
||||||
|
|
||||||
.first
|
.first
|
||||||
define gl [---.include.gl]
|
define gl [---.include.gl]
|
||||||
@@ -54,6 +54,12 @@ OBJECTS = \
|
|||||||
VERSION=Mesa V3.4
|
VERSION=Mesa V3.4
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
|
all :
|
||||||
|
$(MMS)$(MMSQUALIFIERS) $(LIBDIR)$(GL_LIB)
|
||||||
|
set def [.slang]
|
||||||
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
|
set def [-]
|
||||||
|
|
||||||
# Make the library
|
# Make the library
|
||||||
$(LIBDIR)$(GL_LIB) : $(OBJECTS)
|
$(LIBDIR)$(GL_LIB) : $(OBJECTS)
|
||||||
@ library $(LIBDIR)$(GL_LIB) $(OBJECTS)
|
@ library $(LIBDIR)$(GL_LIB) $(OBJECTS)
|
||||||
@@ -74,4 +80,5 @@ nvvertexec.obj : nvvertexec.c
|
|||||||
nvvertparse.obj : nvvertparse.c
|
nvvertparse.obj : nvvertparse.c
|
||||||
program.obj : program.c
|
program.obj : program.c
|
||||||
shaderobjects.obj : shaderobjects.c
|
shaderobjects.obj : shaderobjects.c
|
||||||
|
cc$(CFLAGS)/nowarn shaderobjects.c
|
||||||
shaderobjects_3dlabs.obj : shaderobjects_3dlabs.c
|
shaderobjects_3dlabs.obj : shaderobjects_3dlabs.c
|
||||||
|
@@ -810,7 +810,7 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
|
|||||||
modifier == STATE_MATRIX_INVTRANS) {
|
modifier == STATE_MATRIX_INVTRANS) {
|
||||||
/* Be sure inverse is up to date:
|
/* Be sure inverse is up to date:
|
||||||
*/
|
*/
|
||||||
_math_matrix_analyse( matrix );
|
_math_matrix_analyse( (GLmatrix*) matrix );
|
||||||
m = matrix->inv;
|
m = matrix->inv;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
41
src/mesa/shader/slang/descrip.mms
Normal file
41
src/mesa/shader/slang/descrip.mms
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Makefile for core library for VMS
|
||||||
|
# contributed by Jouk Jansen joukj@hrem.stm.tudelft.nl
|
||||||
|
# Last revision : 18 April 2005
|
||||||
|
|
||||||
|
.first
|
||||||
|
define gl [----.include.gl]
|
||||||
|
define math [--.math]
|
||||||
|
define swrast [--.swrast]
|
||||||
|
define array_cache [--.array_cache]
|
||||||
|
|
||||||
|
.include [----]mms-config.
|
||||||
|
|
||||||
|
##### MACROS #####
|
||||||
|
|
||||||
|
VPATH = RCS
|
||||||
|
|
||||||
|
INCDIR = [----.include],[--.main],[--.glapi],[-.slang],[-]
|
||||||
|
LIBDIR = [----.lib]
|
||||||
|
CFLAGS = /include=($(INCDIR),[])/define=(PTHREADS=1)/name=(as_is,short)
|
||||||
|
|
||||||
|
SOURCES = \
|
||||||
|
slang_compile.c,slang_preprocess.c
|
||||||
|
|
||||||
|
OBJECTS = \
|
||||||
|
slang_compile.obj,slang_preprocess.obj
|
||||||
|
|
||||||
|
##### RULES #####
|
||||||
|
|
||||||
|
VERSION=Mesa V3.4
|
||||||
|
|
||||||
|
##### TARGETS #####
|
||||||
|
# Make the library
|
||||||
|
$(LIBDIR)$(GL_LIB) : $(OBJECTS)
|
||||||
|
@ library $(LIBDIR)$(GL_LIB) $(OBJECTS)
|
||||||
|
|
||||||
|
clean :
|
||||||
|
purge
|
||||||
|
delete *.obj;*
|
||||||
|
|
||||||
|
slang_compile.obj : slang_compile.c
|
||||||
|
slang_preprocess.obj : slang_preprocess.c
|
@@ -1978,7 +1978,7 @@ static int compile_with_grammar (grammar id, const char *source, slang_translati
|
|||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
unsigned int pos;
|
unsigned int pos;
|
||||||
grammar_get_last_error (buf, 1024, &pos);
|
grammar_get_last_error ( (unsigned char*) buf, 1024, (int*) &pos);
|
||||||
slang_info_log_error (log, buf);
|
slang_info_log_error (log, buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2013,7 +2013,7 @@ int _slang_compile (const char *source, slang_translation_unit *unit, slang_unit
|
|||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
unsigned int pos;
|
unsigned int pos;
|
||||||
grammar_get_last_error (buf, 1024, &pos);
|
grammar_get_last_error ( (unsigned char*) buf, 1024, (int*) &pos);
|
||||||
slang_info_log_error (log, buf);
|
slang_info_log_error (log, buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,7 @@ int _slang_preprocess_version (const char *text, unsigned int *version, unsigned
|
|||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
unsigned int pos;
|
unsigned int pos;
|
||||||
grammar_get_last_error (buf, 1024, &pos);
|
grammar_get_last_error ( (unsigned char*) buf, 1024, (int*) &pos);
|
||||||
slang_info_log_error (log, buf);
|
slang_info_log_error (log, buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ int _slang_preprocess_version (const char *text, unsigned int *version, unsigned
|
|||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
unsigned int pos;
|
unsigned int pos;
|
||||||
grammar_get_last_error (buf, 1024, &pos);
|
grammar_get_last_error ( (unsigned char*) buf, 1024, (int*) &pos);
|
||||||
slang_info_log_error (log, buf);
|
slang_info_log_error (log, buf);
|
||||||
grammar_destroy (id);
|
grammar_destroy (id);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user