Compare commits
74 Commits
mesa_7_2
...
texmem_0_3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b87fafc91 | ||
|
|
7d553984e2 | ||
|
|
d431dd49cb | ||
|
|
b25c826e59 | ||
|
|
814cae6a45 | ||
|
|
410673f64c | ||
|
|
a83a3cfa1c | ||
|
|
da89238b13 | ||
|
|
984387b89c | ||
|
|
93bc5e8402 | ||
|
|
43722cae42 | ||
|
|
f397a2a1e5 | ||
|
|
87a0312068 | ||
|
|
ee525436cc | ||
|
|
520ba25dc3 | ||
|
|
6f9dc91045 | ||
|
|
d17637d47f | ||
|
|
980a25cd92 | ||
|
|
607c474f2d | ||
|
|
2f54146c1f | ||
|
|
72aeeef7c3 | ||
|
|
dadc8e2a50 | ||
|
|
02d401b475 | ||
|
|
9d695abcac | ||
|
|
e070007d16 | ||
|
|
39c4c8d54b | ||
|
|
4fa3cf225f | ||
|
|
1c2c1c4560 | ||
|
|
e3904516bb | ||
|
|
ceb222798b | ||
|
|
6abcf6a3d3 | ||
|
|
db0ed8942f | ||
|
|
bd9f38ccaa | ||
|
|
b15421c22b | ||
|
|
5db0e131ef | ||
|
|
b249ff8a86 | ||
|
|
9d6e0f5d64 | ||
|
|
4f8549634e | ||
|
|
3345ab8ccf | ||
|
|
cd3c9febda | ||
|
|
8c58a32360 | ||
|
|
0d646ea3a8 | ||
|
|
6a33e6d221 | ||
|
|
fc4bc6fc97 | ||
|
|
4239cfd534 | ||
|
|
b0902a4158 | ||
|
|
269219dc05 | ||
|
|
5dbadd418c | ||
|
|
71bce51324 | ||
|
|
308d377ca8 | ||
|
|
4f39d22c29 | ||
|
|
8dab7963b7 | ||
|
|
ec30116c9f | ||
|
|
5ac3ad7722 | ||
|
|
fe239744aa | ||
|
|
137dcd4a46 | ||
|
|
0d7755fc73 | ||
|
|
c863e63549 | ||
|
|
62920e2ab2 | ||
|
|
ce3885fc5f | ||
|
|
bf0c1ca618 | ||
|
|
64bc9caa1c | ||
|
|
89a2ea6fd3 | ||
|
|
41123a85ec | ||
|
|
f10469abe8 | ||
|
|
4a74de797c | ||
|
|
c745394242 | ||
|
|
f9f3de8c31 | ||
|
|
3d0a073a71 | ||
|
|
219ee91fa8 | ||
|
|
632eae3fec | ||
|
|
f378bcd8bf | ||
|
|
ded29089f3 | ||
|
|
527c05eb2a |
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1,4 +0,0 @@
|
|||||||
*.dsp -crlf
|
|
||||||
*.dsw -crlf
|
|
||||||
*.sln -crlf
|
|
||||||
*.vcproj -crlf
|
|
||||||
16
.gitignore
vendored
16
.gitignore
vendored
@@ -1,16 +0,0 @@
|
|||||||
*.a
|
|
||||||
*.o
|
|
||||||
*.so
|
|
||||||
*.sw[a-z]
|
|
||||||
*.pc
|
|
||||||
*~
|
|
||||||
depend
|
|
||||||
depend.bak
|
|
||||||
lib
|
|
||||||
lib64
|
|
||||||
configure
|
|
||||||
autom4te.cache
|
|
||||||
aclocal.m4
|
|
||||||
config.log
|
|
||||||
config.status
|
|
||||||
cscope*
|
|
||||||
145
Makefile
145
Makefile
@@ -7,61 +7,48 @@ SUBDIRS = src progs
|
|||||||
|
|
||||||
default: $(TOP)/configs/current
|
default: $(TOP)/configs/current
|
||||||
@for dir in $(SUBDIRS) ; do \
|
@for dir in $(SUBDIRS) ; do \
|
||||||
if [ -d $$dir ] ; then \
|
(cd $$dir ; $(MAKE)) || exit 1 ; \
|
||||||
(cd $$dir && $(MAKE)) || exit 1 ; \
|
|
||||||
fi \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
doxygen:
|
doxygen:
|
||||||
cd doxygen && $(MAKE)
|
(cd doxygen ; make) ; \
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@touch $(TOP)/configs/current
|
@for dir in $(SUBDIRS) ; do \
|
||||||
-@for dir in $(SUBDIRS) ; do \
|
(cd $$dir ; $(MAKE) clean) ; \
|
||||||
if [ -d $$dir ] ; then \
|
|
||||||
(cd $$dir && $(MAKE) clean) ; \
|
|
||||||
fi \
|
|
||||||
done
|
done
|
||||||
-@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
|
|
||||||
|
|
||||||
|
|
||||||
realclean: clean
|
realclean:
|
||||||
|
touch $(TOP)/configs/current
|
||||||
|
$(MAKE) clean
|
||||||
-rm -rf lib*
|
-rm -rf lib*
|
||||||
-rm -f $(TOP)/configs/current
|
-rm -f $(TOP)/configs/current
|
||||||
-rm -f $(TOP)/configs/autoconf
|
-rm -f `find . -name \*.o`
|
||||||
-rm -rf autom4te.cache
|
-rm -f `find . -name \*.a`
|
||||||
-find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
|
-rm -f `find . -name \*.so`
|
||||||
-name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
-rm -f `find . -name depend`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@for dir in $(SUBDIRS) ; do \
|
@for dir in $(SUBDIRS) ; do \
|
||||||
if [ -d $$dir ] ; then \
|
(cd $$dir ; $(MAKE) install) || exit 1 ; \
|
||||||
(cd $$dir && $(MAKE) install) || exit 1 ; \
|
|
||||||
fi \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# DirectFBGL module installation
|
# DirectFBGL module installation
|
||||||
linux-directfb-install:
|
linux-directfb-install:
|
||||||
cd src/mesa/drivers/directfb && $(MAKE) install
|
cd src/mesa/drivers/directfb && $(MAKE) install
|
||||||
|
|
||||||
.PHONY: default doxygen clean realclean install linux-directfb-install
|
|
||||||
|
|
||||||
# If there's no current configuration file
|
# If there's no current configuration file
|
||||||
$(TOP)/configs/current:
|
$(TOP)/configs/current:
|
||||||
@echo
|
@echo
|
||||||
@echo
|
@echo
|
||||||
@echo "Please choose a configuration from the following list:"
|
@echo "Please choose a configuration from the following list:"
|
||||||
@ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
|
@ls -1 $(TOP)/configs | grep -v "current\|default\|CVS"
|
||||||
@echo
|
@echo
|
||||||
@echo "Then type 'make <config>' (ex: 'make linux-x86')"
|
@echo "Then type 'make <config>' (ex: 'make linux-x86')"
|
||||||
@echo
|
|
||||||
@echo "Or, run './configure' then 'make'"
|
|
||||||
@echo "See './configure --help' for details"
|
|
||||||
@echo
|
|
||||||
@echo "(ignore the following error message)"
|
@echo "(ignore the following error message)"
|
||||||
@exit 1
|
@exit 1
|
||||||
|
|
||||||
@@ -72,16 +59,11 @@ aix-64 \
|
|||||||
aix-64-static \
|
aix-64-static \
|
||||||
aix-gcc \
|
aix-gcc \
|
||||||
aix-static \
|
aix-static \
|
||||||
autoconf \
|
|
||||||
bluegene-osmesa \
|
|
||||||
bluegene-xlc-osmesa \
|
|
||||||
beos \
|
beos \
|
||||||
catamount-osmesa-pgi \
|
|
||||||
darwin \
|
darwin \
|
||||||
darwin-fat-32bit \
|
|
||||||
darwin-fat-all \
|
|
||||||
darwin-static \
|
darwin-static \
|
||||||
darwin-static-x86ppc \
|
darwin-static-x86ppc \
|
||||||
|
darwin-x86ppc \
|
||||||
freebsd \
|
freebsd \
|
||||||
freebsd-dri \
|
freebsd-dri \
|
||||||
freebsd-dri-amd64 \
|
freebsd-dri-amd64 \
|
||||||
@@ -110,7 +92,6 @@ linux-alpha-static \
|
|||||||
linux-debug \
|
linux-debug \
|
||||||
linux-directfb \
|
linux-directfb \
|
||||||
linux-dri \
|
linux-dri \
|
||||||
linux-dri-debug \
|
|
||||||
linux-dri-x86 \
|
linux-dri-x86 \
|
||||||
linux-dri-x86-64 \
|
linux-dri-x86-64 \
|
||||||
linux-dri-ppc \
|
linux-dri-ppc \
|
||||||
@@ -162,46 +143,35 @@ sunos5-v8 \
|
|||||||
sunos5-v8-static \
|
sunos5-v8-static \
|
||||||
sunos5-v9 \
|
sunos5-v9 \
|
||||||
sunos5-v9-static \
|
sunos5-v9-static \
|
||||||
sunos5-v9-cc-g++ \
|
|
||||||
ultrix-gcc:
|
ultrix-gcc:
|
||||||
@ if test -f configs/current || test -L configs/current ; then \
|
|
||||||
echo "Please run 'make realclean' before changing configs" ; \
|
|
||||||
exit 1 ; \
|
|
||||||
fi
|
|
||||||
(cd configs && rm -f current && ln -s $@ current)
|
(cd configs && rm -f current && ln -s $@ current)
|
||||||
$(MAKE) default
|
$(MAKE) default
|
||||||
|
|
||||||
|
|
||||||
# Rules for making release tarballs
|
# Rules for making release tarballs
|
||||||
|
|
||||||
DIRECTORY = Mesa-7.2
|
DIRECTORY = Mesa-6.5.1
|
||||||
LIB_NAME = MesaLib-7.2
|
LIB_NAME = MesaLib-6.5.1
|
||||||
DEMO_NAME = MesaDemos-7.2
|
DEMO_NAME = MesaDemos-6.5.1
|
||||||
GLUT_NAME = MesaGLUT-7.2
|
GLUT_NAME = MesaGLUT-6.5.1
|
||||||
|
|
||||||
MAIN_FILES = \
|
MAIN_FILES = \
|
||||||
$(DIRECTORY)/Makefile* \
|
$(DIRECTORY)/Makefile* \
|
||||||
$(DIRECTORY)/configure \
|
|
||||||
$(DIRECTORY)/configure.ac \
|
|
||||||
$(DIRECTORY)/acinclude.m4 \
|
|
||||||
$(DIRECTORY)/aclocal.m4 \
|
|
||||||
$(DIRECTORY)/descrip.mms \
|
$(DIRECTORY)/descrip.mms \
|
||||||
$(DIRECTORY)/mms-config. \
|
$(DIRECTORY)/mms-config. \
|
||||||
$(DIRECTORY)/bin/config.guess \
|
|
||||||
$(DIRECTORY)/bin/config.sub \
|
|
||||||
$(DIRECTORY)/bin/install-sh \
|
|
||||||
$(DIRECTORY)/bin/mklib \
|
$(DIRECTORY)/bin/mklib \
|
||||||
$(DIRECTORY)/bin/minstall \
|
$(DIRECTORY)/bin/installmesa \
|
||||||
$(DIRECTORY)/bin/version.mk \
|
|
||||||
$(DIRECTORY)/configs/[a-z]* \
|
$(DIRECTORY)/configs/[a-z]* \
|
||||||
$(DIRECTORY)/docs/*.html \
|
$(DIRECTORY)/docs/*.html \
|
||||||
$(DIRECTORY)/docs/COPYING \
|
$(DIRECTORY)/docs/COPYING \
|
||||||
$(DIRECTORY)/docs/README.* \
|
$(DIRECTORY)/docs/README.* \
|
||||||
$(DIRECTORY)/docs/RELNOTES* \
|
$(DIRECTORY)/docs/RELNOTES* \
|
||||||
|
$(DIRECTORY)/docs/VERSIONS \
|
||||||
$(DIRECTORY)/docs/*.spec \
|
$(DIRECTORY)/docs/*.spec \
|
||||||
$(DIRECTORY)/include/GL/internal/glcore.h \
|
$(DIRECTORY)/include/GL/internal/glcore.h \
|
||||||
$(DIRECTORY)/include/GL/amesa.h \
|
$(DIRECTORY)/include/GL/amesa.h \
|
||||||
$(DIRECTORY)/include/GL/dmesa.h \
|
$(DIRECTORY)/include/GL/dmesa.h \
|
||||||
|
$(DIRECTORY)/include/GL/directfbgl.h \
|
||||||
$(DIRECTORY)/include/GL/fxmesa.h \
|
$(DIRECTORY)/include/GL/fxmesa.h \
|
||||||
$(DIRECTORY)/include/GL/ggimesa.h \
|
$(DIRECTORY)/include/GL/ggimesa.h \
|
||||||
$(DIRECTORY)/include/GL/gl.h \
|
$(DIRECTORY)/include/GL/gl.h \
|
||||||
@@ -229,12 +199,13 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/Makefile* \
|
$(DIRECTORY)/src/mesa/Makefile* \
|
||||||
$(DIRECTORY)/src/mesa/sources \
|
$(DIRECTORY)/src/mesa/sources \
|
||||||
$(DIRECTORY)/src/mesa/descrip.mms \
|
$(DIRECTORY)/src/mesa/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/gl.pc.in \
|
|
||||||
$(DIRECTORY)/src/mesa/depend \
|
$(DIRECTORY)/src/mesa/depend \
|
||||||
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
$(DIRECTORY)/src/mesa/main/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
$(DIRECTORY)/src/mesa/main/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/glapi/*.[chS] \
|
$(DIRECTORY)/src/mesa/glapi/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/glapi/descrip.mms \
|
$(DIRECTORY)/src/mesa/glapi/descrip.mms \
|
||||||
|
$(DIRECTORY)/src/mesa/array_cache/*.[ch] \
|
||||||
|
$(DIRECTORY)/src/mesa/array_cache/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/math/*.[ch] \
|
$(DIRECTORY)/src/mesa/math/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/math/descrip.mms \
|
$(DIRECTORY)/src/mesa/math/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/*.[ch] \
|
||||||
@@ -244,21 +215,15 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
|
$(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
|
$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/library/*.gc \
|
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/library/*.syn \
|
|
||||||
$(DIRECTORY)/src/mesa/shader/slang/library/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/swrast/*.[ch] \
|
$(DIRECTORY)/src/mesa/swrast/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/swrast/descrip.mms \
|
$(DIRECTORY)/src/mesa/swrast/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
|
$(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
|
$(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/vbo/*.[chS] \
|
|
||||||
$(DIRECTORY)/src/mesa/vbo/descrip.mms \
|
|
||||||
$(DIRECTORY)/src/mesa/tnl/*.[chS] \
|
$(DIRECTORY)/src/mesa/tnl/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/tnl/descrip.mms \
|
$(DIRECTORY)/src/mesa/tnl/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
|
$(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
|
$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
|
$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
|
||||||
$(DIRECTORY)/src/mesa/drivers/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
|
$(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
|
||||||
$(DIRECTORY)/src/mesa/drivers/beos/Makefile \
|
$(DIRECTORY)/src/mesa/drivers/beos/Makefile \
|
||||||
$(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
|
||||||
@@ -266,7 +231,6 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
|
$(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
|
$(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
|
$(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
|
||||||
$(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
|
||||||
@@ -276,7 +240,6 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
|
$(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
|
||||||
$(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
|
$(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
|
||||||
$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
|
$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
|
||||||
$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
|
$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
|
||||||
$(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
|
$(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
|
$(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
|
||||||
@@ -284,7 +247,6 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
|
$(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
|
||||||
$(DIRECTORY)/src/mesa/drivers/x11/Makefile \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
|
$(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
|
||||||
$(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/ppc/*.[ch] \
|
$(DIRECTORY)/src/mesa/ppc/*.[ch] \
|
||||||
@@ -302,26 +264,26 @@ MAIN_FILES = \
|
|||||||
$(DIRECTORY)/vms/analyze_map.com \
|
$(DIRECTORY)/vms/analyze_map.com \
|
||||||
$(DIRECTORY)/vms/xlib.opt \
|
$(DIRECTORY)/vms/xlib.opt \
|
||||||
$(DIRECTORY)/vms/xlib_share.opt \
|
$(DIRECTORY)/vms/xlib_share.opt \
|
||||||
$(DIRECTORY)/windows/VC8/mesa/mesa.sln \
|
$(DIRECTORY)/windows/VC6/mesa/gdi/gdi.dsp \
|
||||||
$(DIRECTORY)/windows/VC8/mesa/gdi/gdi.vcproj \
|
$(DIRECTORY)/windows/VC6/mesa/glu/*.txt \
|
||||||
$(DIRECTORY)/windows/VC8/mesa/glu/glu.vcproj \
|
$(DIRECTORY)/windows/VC6/mesa/glu/glu.dsp \
|
||||||
$(DIRECTORY)/windows/VC8/mesa/mesa/mesa.vcproj \
|
$(DIRECTORY)/windows/VC6/mesa/mesa.dsw \
|
||||||
$(DIRECTORY)/windows/VC8/mesa/osmesa/osmesa.vcproj \
|
$(DIRECTORY)/windows/VC6/mesa/mesa/mesa.dsp \
|
||||||
$(DIRECTORY)/windows/VC8/progs/progs.sln \
|
$(DIRECTORY)/windows/VC6/mesa/osmesa/osmesa.dsp \
|
||||||
$(DIRECTORY)/windows/VC8/progs/demos/gears.vcproj \
|
$(DIRECTORY)/windows/VC7/mesa/gdi/gdi.vcproj \
|
||||||
$(DIRECTORY)/windows/VC8/progs/glut/glut.vcproj
|
$(DIRECTORY)/windows/VC7/mesa/glu/glu.vcproj \
|
||||||
|
$(DIRECTORY)/windows/VC7/mesa/mesa.sln \
|
||||||
|
$(DIRECTORY)/windows/VC7/mesa/mesa/mesa.vcproj \
|
||||||
|
$(DIRECTORY)/windows/VC7/mesa/osmesa/osmesa.vcproj
|
||||||
|
|
||||||
DRI_FILES = \
|
DRI_FILES = \
|
||||||
$(DIRECTORY)/include/GL/internal/dri_interface.h \
|
$(DIRECTORY)/include/GL/internal/dri_interface.h \
|
||||||
$(DIRECTORY)/include/GL/internal/dri_sarea.h \
|
|
||||||
$(DIRECTORY)/include/GL/internal/sarea.h \
|
$(DIRECTORY)/include/GL/internal/sarea.h \
|
||||||
$(DIRECTORY)/src/glx/Makefile \
|
$(DIRECTORY)/src/glx/Makefile \
|
||||||
$(DIRECTORY)/src/glx/x11/Makefile \
|
$(DIRECTORY)/src/glx/x11/Makefile \
|
||||||
$(DIRECTORY)/src/glx/x11/*.[ch] \
|
$(DIRECTORY)/src/glx/x11/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/Makefile \
|
$(DIRECTORY)/src/mesa/drivers/dri/Makefile \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
|
$(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
|
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
|
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
|
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
|
||||||
$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
|
$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
|
||||||
@@ -332,16 +294,12 @@ DRI_FILES = \
|
|||||||
SGI_GLU_FILES = \
|
SGI_GLU_FILES = \
|
||||||
$(DIRECTORY)/src/glu/Makefile \
|
$(DIRECTORY)/src/glu/Makefile \
|
||||||
$(DIRECTORY)/src/glu/descrip.mms \
|
$(DIRECTORY)/src/glu/descrip.mms \
|
||||||
$(DIRECTORY)/src/glu/glu.pc.in \
|
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile \
|
$(DIRECTORY)/src/glu/sgi/Makefile \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \
|
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
$(DIRECTORY)/src/glu/sgi/Makefile.win \
|
||||||
$(DIRECTORY)/src/glu/sgi/Makefile.DJ \
|
$(DIRECTORY)/src/glu/sgi/Makefile.DJ \
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.def \
|
$(DIRECTORY)/src/glu/sgi/glu.def \
|
||||||
$(DIRECTORY)/src/glu/sgi/dummy.cc \
|
$(DIRECTORY)/src/glu/sgi/dummy.cc \
|
||||||
$(DIRECTORY)/src/glu/sgi/descrip.mms \
|
$(DIRECTORY)/src/glu/sgi/descrip.mms \
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.exports \
|
|
||||||
$(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
|
|
||||||
$(DIRECTORY)/src/glu/sgi/mesaglu.opt \
|
$(DIRECTORY)/src/glu/sgi/mesaglu.opt \
|
||||||
$(DIRECTORY)/src/glu/sgi/include/gluos.h \
|
$(DIRECTORY)/src/glu/sgi/include/gluos.h \
|
||||||
$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
|
$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
|
||||||
@@ -368,7 +326,6 @@ GLW_FILES = \
|
|||||||
$(DIRECTORY)/src/glw/*.[ch] \
|
$(DIRECTORY)/src/glw/*.[ch] \
|
||||||
$(DIRECTORY)/src/glw/Makefile* \
|
$(DIRECTORY)/src/glw/Makefile* \
|
||||||
$(DIRECTORY)/src/glw/README \
|
$(DIRECTORY)/src/glw/README \
|
||||||
$(DIRECTORY)/src/glw/glw.pc.in \
|
|
||||||
$(DIRECTORY)/src/glw/depend
|
$(DIRECTORY)/src/glw/depend
|
||||||
|
|
||||||
DEMO_FILES = \
|
DEMO_FILES = \
|
||||||
@@ -382,8 +339,6 @@ DEMO_FILES = \
|
|||||||
$(DIRECTORY)/progs/demos/*.cxx \
|
$(DIRECTORY)/progs/demos/*.cxx \
|
||||||
$(DIRECTORY)/progs/demos/*.dat \
|
$(DIRECTORY)/progs/demos/*.dat \
|
||||||
$(DIRECTORY)/progs/demos/README \
|
$(DIRECTORY)/progs/demos/README \
|
||||||
$(DIRECTORY)/progs/fbdev/Makefile \
|
|
||||||
$(DIRECTORY)/progs/fbdev/glfbdevtest.c \
|
|
||||||
$(DIRECTORY)/progs/osdemos/Makefile \
|
$(DIRECTORY)/progs/osdemos/Makefile \
|
||||||
$(DIRECTORY)/progs/osdemos/*.c \
|
$(DIRECTORY)/progs/osdemos/*.c \
|
||||||
$(DIRECTORY)/progs/xdemos/Makefile* \
|
$(DIRECTORY)/progs/xdemos/Makefile* \
|
||||||
@@ -395,10 +350,6 @@ DEMO_FILES = \
|
|||||||
$(DIRECTORY)/progs/samples/Makefile* \
|
$(DIRECTORY)/progs/samples/Makefile* \
|
||||||
$(DIRECTORY)/progs/samples/README \
|
$(DIRECTORY)/progs/samples/README \
|
||||||
$(DIRECTORY)/progs/samples/*.c \
|
$(DIRECTORY)/progs/samples/*.c \
|
||||||
$(DIRECTORY)/progs/glsl/Makefile* \
|
|
||||||
$(DIRECTORY)/progs/glsl/*.c \
|
|
||||||
$(DIRECTORY)/progs/glsl/*.frag \
|
|
||||||
$(DIRECTORY)/progs/glsl/*.vert \
|
|
||||||
$(DIRECTORY)/progs/windml/Makefile.ugl \
|
$(DIRECTORY)/progs/windml/Makefile.ugl \
|
||||||
$(DIRECTORY)/progs/windml/*.c \
|
$(DIRECTORY)/progs/windml/*.c \
|
||||||
$(DIRECTORY)/progs/windml/*.bmp \
|
$(DIRECTORY)/progs/windml/*.bmp \
|
||||||
@@ -413,7 +364,6 @@ GLUT_FILES = \
|
|||||||
$(DIRECTORY)/include/GL/glutf90.h \
|
$(DIRECTORY)/include/GL/glutf90.h \
|
||||||
$(DIRECTORY)/src/glut/glx/Makefile* \
|
$(DIRECTORY)/src/glut/glx/Makefile* \
|
||||||
$(DIRECTORY)/src/glut/glx/depend \
|
$(DIRECTORY)/src/glut/glx/depend \
|
||||||
$(DIRECTORY)/src/glut/glx/glut.pc.in \
|
|
||||||
$(DIRECTORY)/src/glut/glx/*def \
|
$(DIRECTORY)/src/glut/glx/*def \
|
||||||
$(DIRECTORY)/src/glut/glx/descrip.mms \
|
$(DIRECTORY)/src/glut/glx/descrip.mms \
|
||||||
$(DIRECTORY)/src/glut/glx/mms_depend \
|
$(DIRECTORY)/src/glut/glx/mms_depend \
|
||||||
@@ -427,12 +377,8 @@ GLUT_FILES = \
|
|||||||
$(DIRECTORY)/src/glut/ggi/*.[ch] \
|
$(DIRECTORY)/src/glut/ggi/*.[ch] \
|
||||||
$(DIRECTORY)/src/glut/ggi/Makefile \
|
$(DIRECTORY)/src/glut/ggi/Makefile \
|
||||||
$(DIRECTORY)/src/glut/fbdev/Makefile \
|
$(DIRECTORY)/src/glut/fbdev/Makefile \
|
||||||
$(DIRECTORY)/src/glut/fbdev/*[ch] \
|
$(DIRECTORY)/src/glut/fbdev/cursors.h \
|
||||||
$(DIRECTORY)/src/glut/mini/*[ch] \
|
$(DIRECTORY)/src/glut/fbdev/glut_fbdev.c \
|
||||||
$(DIRECTORY)/src/glut/mini/glut.pc.in \
|
|
||||||
$(DIRECTORY)/src/glut/directfb/Makefile \
|
|
||||||
$(DIRECTORY)/src/glut/directfb/NOTES \
|
|
||||||
$(DIRECTORY)/src/glut/directfb/*[ch] \
|
|
||||||
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
|
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
|
||||||
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
|
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
|
||||||
|
|
||||||
@@ -448,20 +394,9 @@ LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
|
|||||||
|
|
||||||
|
|
||||||
# Everything for new a Mesa release:
|
# Everything for new a Mesa release:
|
||||||
tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \
|
tarballs: rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
|
||||||
lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
|
|
||||||
|
|
||||||
|
|
||||||
# Helper for autoconf builds
|
|
||||||
ACLOCAL = aclocal
|
|
||||||
ACLOCAL_FLAGS =
|
|
||||||
AUTOCONF = autoconf
|
|
||||||
AC_FLAGS =
|
|
||||||
aclocal.m4: configure.ac acinclude.m4
|
|
||||||
$(ACLOCAL) $(ACLOCAL_FLAGS)
|
|
||||||
configure: configure.ac aclocal.m4 acinclude.m4
|
|
||||||
$(AUTOCONF) $(AC_FLAGS)
|
|
||||||
|
|
||||||
rm_depend:
|
rm_depend:
|
||||||
@for dep in $(DEPEND_FILES) ; do \
|
@for dep in $(DEPEND_FILES) ; do \
|
||||||
rm -f $$dep ; \
|
rm -f $$dep ; \
|
||||||
@@ -470,7 +405,6 @@ rm_depend:
|
|||||||
|
|
||||||
lib_gz:
|
lib_gz:
|
||||||
rm -f configs/current ; \
|
rm -f configs/current ; \
|
||||||
rm -f configs/autoconf ; \
|
|
||||||
cd .. ; \
|
cd .. ; \
|
||||||
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
|
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
|
||||||
gzip $(LIB_NAME).tar ; \
|
gzip $(LIB_NAME).tar ; \
|
||||||
@@ -490,7 +424,6 @@ glut_gz:
|
|||||||
|
|
||||||
lib_bz2:
|
lib_bz2:
|
||||||
rm -f configs/current ; \
|
rm -f configs/current ; \
|
||||||
rm -f configs/autoconf ; \
|
|
||||||
cd .. ; \
|
cd .. ; \
|
||||||
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
|
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
|
||||||
bzip2 $(LIB_NAME).tar ; \
|
bzip2 $(LIB_NAME).tar ; \
|
||||||
@@ -510,7 +443,6 @@ glut_bz2:
|
|||||||
|
|
||||||
lib_zip:
|
lib_zip:
|
||||||
rm -f configs/current ; \
|
rm -f configs/current ; \
|
||||||
rm -f configs/autoconf ; \
|
|
||||||
rm -f $(LIB_NAME).zip ; \
|
rm -f $(LIB_NAME).zip ; \
|
||||||
cd .. ; \
|
cd .. ; \
|
||||||
zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
|
zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
|
||||||
@@ -538,6 +470,3 @@ md5:
|
|||||||
@-md5sum $(GLUT_NAME).tar.gz
|
@-md5sum $(GLUT_NAME).tar.gz
|
||||||
@-md5sum $(GLUT_NAME).tar.bz2
|
@-md5sum $(GLUT_NAME).tar.bz2
|
||||||
@-md5sum $(GLUT_NAME).zip
|
@-md5sum $(GLUT_NAME).zip
|
||||||
|
|
||||||
.PHONY: tarballs rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 \
|
|
||||||
glut_bz2 lib_zip demo_zip glut_zip md5
|
|
||||||
|
|||||||
28
Makefile.mgw
28
Makefile.mgw
@@ -51,59 +51,37 @@
|
|||||||
# realclean: remove all generated files
|
# realclean: remove all generated files
|
||||||
#
|
#
|
||||||
|
|
||||||
# MinGW core makefile updated for Mesa 7.0
|
|
||||||
#
|
|
||||||
# Updated : by Heromyth, on 2007-7-21
|
|
||||||
# Email : zxpmyth@yahoo.com.cn
|
|
||||||
# Bugs : 1) All the default settings work fine. But the setting X86=1 can't work.
|
|
||||||
# The others havn't been tested yet.
|
|
||||||
# 2) The generated DLLs are *not* compatible with the ones built
|
|
||||||
# with the other compilers like VC8, especially for GLUT.
|
|
||||||
# 3) MAlthough more tests are needed, it can be used individually!
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY : all libgl clean realclean
|
.PHONY : all libgl clean realclean
|
||||||
|
|
||||||
ifeq ($(ICD),1)
|
ifeq ($(ICD),1)
|
||||||
# when -std=c99 mingw will not define WIN32
|
# when -std=c99 mingw will not define WIN32
|
||||||
CFLAGS = -Wall -Werror
|
CFLAGS = -Wall -W -Werror
|
||||||
else
|
else
|
||||||
# I love c89
|
# I love c89
|
||||||
CFLAGS = -Wall -pedantic
|
CFLAGS = -Wall -W -pedantic
|
||||||
endif
|
endif
|
||||||
CFLAGS += -O2 -ffast-math
|
CFLAGS += -O2 -ffast-math
|
||||||
|
|
||||||
export CFLAGS
|
export CFLAGS
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
|
ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
|
||||||
UNLINK = del $(subst /,\,$(1))
|
UNLINK = del $(subst /,\,$(1))
|
||||||
else
|
else
|
||||||
UNLINK = $(RM) $(1)
|
UNLINK = $(RM) $(1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: libgl libglu libglut example
|
all: libgl
|
||||||
|
|
||||||
libgl: lib
|
libgl: lib
|
||||||
$(MAKE) -f Makefile.mgw -C src/mesa
|
$(MAKE) -f Makefile.mgw -C src/mesa
|
||||||
|
|
||||||
libglu: libgl
|
|
||||||
$(MAKE) -f Makefile.mgw -C src/glu/sgi
|
|
||||||
|
|
||||||
libglut: libglu
|
|
||||||
$(MAKE) -f Makefile.mgw -C src/glut/glx
|
|
||||||
|
|
||||||
example: libglut
|
|
||||||
$(MAKE) -f Makefile.mgw star -C progs/samples
|
|
||||||
copy progs\samples\star.exe lib
|
|
||||||
|
|
||||||
lib:
|
lib:
|
||||||
mkdir lib
|
mkdir lib
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f Makefile.mgw clean -C src/mesa
|
$(MAKE) -f Makefile.mgw clean -C src/mesa
|
||||||
$(MAKE) -f Makefile.mgw clean -C src/glu/sgi
|
|
||||||
$(MAKE) -f Makefile.mgw clean -C src/glut/glx
|
|
||||||
|
|
||||||
realclean: clean
|
realclean: clean
|
||||||
-$(call UNLINK,lib/*.a)
|
-$(call UNLINK,lib/*.a)
|
||||||
|
|||||||
119
acinclude.m4
119
acinclude.m4
@@ -1,119 +0,0 @@
|
|||||||
# A few convenience macros for Mesa, mostly to keep all the platform
|
|
||||||
# specifics out of configure.ac.
|
|
||||||
|
|
||||||
# MESA_PIC_FLAGS()
|
|
||||||
#
|
|
||||||
# Find out whether to build PIC code using the option --enable-pic and
|
|
||||||
# the configure enable_static/enable_shared settings. If PIC is needed,
|
|
||||||
# figure out the necessary flags for the platform and compiler.
|
|
||||||
#
|
|
||||||
# The platform checks have been shamelessly taken from libtool and
|
|
||||||
# stripped down to just what's needed for Mesa. See _LT_COMPILER_PIC in
|
|
||||||
# /usr/share/aclocal/libtool.m4 or
|
|
||||||
# http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=blob;f=libltdl/m4/libtool.m4;hb=HEAD
|
|
||||||
#
|
|
||||||
AC_DEFUN([MESA_PIC_FLAGS],
|
|
||||||
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
||||||
AC_ARG_VAR([PIC_FLAGS], [compiler flags for PIC code])
|
|
||||||
AC_ARG_ENABLE([pic],
|
|
||||||
[AS_HELP_STRING([--disable-pic],
|
|
||||||
[compile PIC objects @<:@default=enabled for shared builds
|
|
||||||
on supported platforms@:>@])],
|
|
||||||
[enable_pic="$enableval"
|
|
||||||
test "x$enable_pic" = x && enable_pic=auto],
|
|
||||||
[enable_pic=auto])
|
|
||||||
# disable PIC by default for static builds
|
|
||||||
if test "$enable_pic" = auto && test "$enable_static" = yes; then
|
|
||||||
enable_pic=no
|
|
||||||
fi
|
|
||||||
# if PIC hasn't been explicitly disabled, try to figure out the flags
|
|
||||||
if test "$enable_pic" != no; then
|
|
||||||
AC_MSG_CHECKING([for $CC option to produce PIC])
|
|
||||||
# allow the user's flags to override
|
|
||||||
if test "x$PIC_FLAGS" = x; then
|
|
||||||
# see if we're using GCC
|
|
||||||
if test "x$GCC" = xyes; then
|
|
||||||
case "$host_os" in
|
|
||||||
aix*|beos*|cygwin*|irix5*|irix6*|osf3*|osf4*|osf5*)
|
|
||||||
# PIC is the default for these OSes.
|
|
||||||
;;
|
|
||||||
mingw*|os2*|pw32*)
|
|
||||||
# This hack is so that the source file can tell whether
|
|
||||||
# it is being built for inclusion in a dll (and should
|
|
||||||
# export symbols for example).
|
|
||||||
PIC_FLAGS="-DDLL_EXPORT"
|
|
||||||
;;
|
|
||||||
darwin*|rhapsody*)
|
|
||||||
# PIC is the default on this platform
|
|
||||||
# Common symbols not allowed in MH_DYLIB files
|
|
||||||
PIC_FLAGS="-fno-common"
|
|
||||||
;;
|
|
||||||
hpux*)
|
|
||||||
# PIC is the default for IA64 HP-UX and 64-bit HP-UX,
|
|
||||||
# but not for PA HP-UX.
|
|
||||||
case $host_cpu in
|
|
||||||
hppa*64*|ia64*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
PIC_FLAGS="-fPIC"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Everyone else on GCC uses -fPIC
|
|
||||||
PIC_FLAGS="-fPIC"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else # !GCC
|
|
||||||
case "$host_os" in
|
|
||||||
hpux9*|hpux10*|hpux11*)
|
|
||||||
# PIC is the default for IA64 HP-UX and 64-bit HP-UX,
|
|
||||||
# but not for PA HP-UX.
|
|
||||||
case "$host_cpu" in
|
|
||||||
hppa*64*|ia64*)
|
|
||||||
# +Z the default
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
PIC_FLAGS="+Z"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
linux*|k*bsd*-gnu)
|
|
||||||
case `basename "$CC"` in
|
|
||||||
icc*|ecc*|ifort*)
|
|
||||||
PIC_FLAGS="-KPIC"
|
|
||||||
;;
|
|
||||||
pgcc*|pgf77*|pgf90*|pgf95*)
|
|
||||||
# Portland Group compilers (*not* the Pentium gcc
|
|
||||||
# compiler, which looks to be a dead project)
|
|
||||||
PIC_FLAGS="-fpic"
|
|
||||||
;;
|
|
||||||
ccc*)
|
|
||||||
# All Alpha code is PIC.
|
|
||||||
;;
|
|
||||||
xl*)
|
|
||||||
# IBM XL C 8.0/Fortran 10.1 on PPC
|
|
||||||
PIC_FLAGS="-qpic"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
case `$CC -V 2>&1 | sed 5q` in
|
|
||||||
*Sun\ C*|*Sun\ F*)
|
|
||||||
# Sun C 5.9 or Sun Fortran
|
|
||||||
PIC_FLAGS="-KPIC"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
solaris*)
|
|
||||||
PIC_FLAGS="-KPIC"
|
|
||||||
;;
|
|
||||||
sunos4*)
|
|
||||||
PIC_FLAGS="-PIC"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi # GCC
|
|
||||||
fi # PIC_FLAGS
|
|
||||||
AC_MSG_RESULT([$PIC_FLAGS])
|
|
||||||
fi
|
|
||||||
AC_SUBST([PIC_FLAGS])
|
|
||||||
])# MESA_PIC_FLAGS
|
|
||||||
16
autogen.sh
16
autogen.sh
@@ -1,16 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
srcdir=`dirname "$0"`
|
|
||||||
test -z "$srcdir" && srcdir=.
|
|
||||||
|
|
||||||
SRCDIR=`(cd "$srcdir" && pwd)`
|
|
||||||
ORIGDIR=`pwd`
|
|
||||||
|
|
||||||
if test "x$SRCDIR" != "x$ORIGDIR"; then
|
|
||||||
echo "Mesa cannot be built when srcdir != builddir" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
autoreconf -v --install || exit 1
|
|
||||||
|
|
||||||
"$srcdir"/configure "$@"
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
usage()
|
|
||||||
{
|
|
||||||
echo "Usage: $0 <target1> <target2>"
|
|
||||||
echo "Highlight differences between Mesa configs"
|
|
||||||
echo "Example:"
|
|
||||||
echo " $0 linux linux-x86"
|
|
||||||
}
|
|
||||||
|
|
||||||
die()
|
|
||||||
{
|
|
||||||
echo "$@" >&2
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
-h|--help) usage; exit 0;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[ $# -lt 2 ] && die 2 targets needed. See $0 --help
|
|
||||||
target1=$1
|
|
||||||
target2=$2
|
|
||||||
|
|
||||||
topdir=$(cd "`dirname $0`"/..; pwd)
|
|
||||||
cd "$topdir"
|
|
||||||
|
|
||||||
[ -f "./configs/$target1" ] || die Missing configs/$target1
|
|
||||||
[ -f "./configs/$target2" ] || die Missing configs/$target2
|
|
||||||
|
|
||||||
trap 'rm -f "$t1" "$t2"' 0
|
|
||||||
|
|
||||||
t1=$(mktemp)
|
|
||||||
t2=$(mktemp)
|
|
||||||
|
|
||||||
make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t1
|
|
||||||
TOP = .
|
|
||||||
include \$(TOP)/configs/$target1
|
|
||||||
default:
|
|
||||||
EOF
|
|
||||||
|
|
||||||
make -f- -n -p <<EOF | sed '/^# Not a target/,/^$/d' > $t2
|
|
||||||
TOP = .
|
|
||||||
include \$(TOP)/configs/$target2
|
|
||||||
default:
|
|
||||||
EOF
|
|
||||||
|
|
||||||
diff -pu -I'^#' $t1 $t2
|
|
||||||
1516
bin/config.guess
vendored
1516
bin/config.guess
vendored
File diff suppressed because it is too large
Load Diff
1626
bin/config.sub
vendored
1626
bin/config.sub
vendored
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
|||||||
minstall
|
|
||||||
@@ -62,10 +62,10 @@ fi
|
|||||||
|
|
||||||
set -v
|
set -v
|
||||||
|
|
||||||
mkdir -p ${INCLUDE_DIR}
|
mkdir ${INCLUDE_DIR}
|
||||||
mkdir -p ${INCLUDE_DIR}/GL
|
mkdir ${INCLUDE_DIR}/GL
|
||||||
# NOT YET: mkdir -p ${INCLUDE_DIR}/GLES
|
# NOT YET: mkdir ${INCLUDE_DIR}/GLES
|
||||||
mkdir -p ${LIB_DIR}
|
mkdir ${LIB_DIR}
|
||||||
cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
|
cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
|
||||||
cp -f ${TOP}/src/glw/*.h ${INCLUDE_DIR}/GL
|
cp -f ${TOP}/src/glw/*.h ${INCLUDE_DIR}/GL
|
||||||
# NOT YET: cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES
|
# NOT YET: cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES
|
||||||
|
|||||||
90
bin/minstall
90
bin/minstall
@@ -1,90 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
# A minimal replacement for 'install' that supports installing symbolic links.
|
|
||||||
# Only a limited number of options are supported:
|
|
||||||
# -d dir Create a directory
|
|
||||||
# -m mode Sets a file's mode when installing
|
|
||||||
|
|
||||||
|
|
||||||
# If these commands aren't portable, we'll need some "if (arch)" type stuff
|
|
||||||
SYMLINK="ln -s"
|
|
||||||
MKDIR="mkdir -p"
|
|
||||||
RM="rm -f"
|
|
||||||
|
|
||||||
MODE=""
|
|
||||||
|
|
||||||
if [ "$1" = "-d" ] ; then
|
|
||||||
# make a directory path
|
|
||||||
$MKDIR "$2"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" = "-m" ] ; then
|
|
||||||
# set file mode
|
|
||||||
MODE=$2
|
|
||||||
shift 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
# install file(s) into destination
|
|
||||||
if [ $# -ge 2 ] ; then
|
|
||||||
|
|
||||||
# Last cmd line arg is the dest dir
|
|
||||||
for FILE in $@ ; do
|
|
||||||
DEST="$FILE"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Loop over args, moving them to DEST directory
|
|
||||||
I=1
|
|
||||||
for FILE in $@ ; do
|
|
||||||
if [ $I = $# ] ; then
|
|
||||||
# stop, don't want to install $DEST into $DEST
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
PWDSAVE=`pwd`
|
|
||||||
|
|
||||||
# determine file's type
|
|
||||||
if [ -h "$FILE" ] ; then
|
|
||||||
#echo $FILE is a symlink
|
|
||||||
# Unfortunately, cp -d isn't universal so we have to
|
|
||||||
# use a work-around.
|
|
||||||
|
|
||||||
# Use ls -l to find the target that the link points to
|
|
||||||
LL=`ls -l "$FILE"`
|
|
||||||
for L in $LL ; do
|
|
||||||
TARGET=$L
|
|
||||||
done
|
|
||||||
#echo $FILE is a symlink pointing to $TARGET
|
|
||||||
|
|
||||||
FILE=`basename "$FILE"`
|
|
||||||
# Go to $DEST and make the link
|
|
||||||
cd "$DEST" # pushd
|
|
||||||
$RM "$FILE"
|
|
||||||
$SYMLINK "$TARGET" "$FILE"
|
|
||||||
cd "$PWDSAVE" # popd
|
|
||||||
|
|
||||||
elif [ -f "$FILE" ] ; then
|
|
||||||
#echo "$FILE" is a regular file
|
|
||||||
$RM "$DEST/`basename $FILE`"
|
|
||||||
cp "$FILE" "$DEST"
|
|
||||||
if [ $MODE ] ; then
|
|
||||||
FILE=`basename "$FILE"`
|
|
||||||
chmod $MODE "$DEST/$FILE"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Unknown type of argument: " "$FILE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
I=`expr $I + 1`
|
|
||||||
done
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If we get here, we didn't find anything to do
|
|
||||||
echo "Usage:"
|
|
||||||
echo " install -d dir Create named directory"
|
|
||||||
echo " install [-m mode] file [...] dest Install files in destination"
|
|
||||||
|
|
||||||
199
bin/mklib
199
bin/mklib
@@ -34,7 +34,6 @@ MINOR=0
|
|||||||
PATCH=""
|
PATCH=""
|
||||||
DEPS=""
|
DEPS=""
|
||||||
LINK=""
|
LINK=""
|
||||||
LDFLAGS=""
|
|
||||||
CPLUSPLUS=0
|
CPLUSPLUS=0
|
||||||
STATIC=0
|
STATIC=0
|
||||||
DLOPEN=0
|
DLOPEN=0
|
||||||
@@ -43,7 +42,7 @@ ARCH="auto"
|
|||||||
ARCHOPT=""
|
ARCHOPT=""
|
||||||
NOPREFIX=0
|
NOPREFIX=0
|
||||||
EXPORTS=""
|
EXPORTS=""
|
||||||
ID=""
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
@@ -61,21 +60,17 @@ do
|
|||||||
echo ' -minor N specifies minor version number (default is 0)'
|
echo ' -minor N specifies minor version number (default is 0)'
|
||||||
echo ' -patch N specifies patch version number (default is 0)'
|
echo ' -patch N specifies patch version number (default is 0)'
|
||||||
echo ' -lLIBRARY specifies a dependency on LIBRARY'
|
echo ' -lLIBRARY specifies a dependency on LIBRARY'
|
||||||
echo ' -LDIR search in DIR for library dependencies at build time'
|
echo ' -LDIR search in DIR for library dependencies'
|
||||||
echo ' -RDIR search in DIR for library dependencies at run time'
|
|
||||||
echo ' -linker L explicity specify the linker program to use (eg: gcc, g++)'
|
echo ' -linker L explicity specify the linker program to use (eg: gcc, g++)'
|
||||||
echo ' Not observed on all systems at this time.'
|
echo ' Not observed on all systems at this time.'
|
||||||
echo ' -ldflags OPT specify any additional linker flags in OPT'
|
|
||||||
echo ' -cplusplus link with C++ runtime'
|
echo ' -cplusplus link with C++ runtime'
|
||||||
echo ' -static make a static library (default is dynamic/shared)'
|
echo ' -static make a static library (default is dynamic/shared)'
|
||||||
echo ' -dlopen make a shared library suitable for dynamic loading'
|
echo ' -dlopen make a shared library suitable for dynamic loading'
|
||||||
echo ' -install DIR put resulting library file(s) in DIR'
|
echo ' -install DIR put resulting library file(s) in DIR'
|
||||||
echo ' -arch ARCH override using `uname` to determine host system'
|
echo ' -arch ARCH override using `uname` to determine host system'
|
||||||
echo ' -archopt OPT specify an extra achitecture-specific option OPT'
|
echo ' -archopt OPT specify an extra achitecture-specific option OPT'
|
||||||
echo ' -altopts OPTS alternate options to override all others'
|
|
||||||
echo " -noprefix don't prefix library name with 'lib' nor add any suffix"
|
echo " -noprefix don't prefix library name with 'lib' nor add any suffix"
|
||||||
echo ' -exports FILE only export the symbols listed in FILE'
|
echo ' -exports FILE only export the symbols listed in FILE'
|
||||||
echo ' -id NAME Sets the id of the dylib (Darwin)'
|
|
||||||
echo ' -h, --help display this information and exit'
|
echo ' -h, --help display this information and exit'
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@@ -99,29 +94,12 @@ do
|
|||||||
shift 1;
|
shift 1;
|
||||||
LINK=$1
|
LINK=$1
|
||||||
;;
|
;;
|
||||||
'-ldflags')
|
|
||||||
shift 1;
|
|
||||||
LDFLAGS=$1
|
|
||||||
;;
|
|
||||||
-l*)
|
-l*)
|
||||||
DEPS="$DEPS $1"
|
DEPS="$DEPS $1"
|
||||||
;;
|
;;
|
||||||
-L*)
|
-L*)
|
||||||
DEPS="$DEPS $1"
|
DEPS="$DEPS $1"
|
||||||
;;
|
;;
|
||||||
-R*)
|
|
||||||
DEPS="$DEPS $1"
|
|
||||||
;;
|
|
||||||
-Wl*)
|
|
||||||
DEPS="$DEPS $1"
|
|
||||||
;;
|
|
||||||
-pthread)
|
|
||||||
# this is a special case (see bugzilla 10876)
|
|
||||||
DEPS="$DEPS $1"
|
|
||||||
;;
|
|
||||||
'-pthread')
|
|
||||||
DEPS="$DEPS -pthread"
|
|
||||||
;;
|
|
||||||
'-cplusplus')
|
'-cplusplus')
|
||||||
CPLUSPLUS=1
|
CPLUSPLUS=1
|
||||||
;;
|
;;
|
||||||
@@ -143,10 +121,6 @@ do
|
|||||||
shift 1;
|
shift 1;
|
||||||
ARCHOPT=$1
|
ARCHOPT=$1
|
||||||
;;
|
;;
|
||||||
'-altopts')
|
|
||||||
shift 1;
|
|
||||||
ALTOPTS=$1
|
|
||||||
;;
|
|
||||||
'-noprefix')
|
'-noprefix')
|
||||||
NOPREFIX=1
|
NOPREFIX=1
|
||||||
;;
|
;;
|
||||||
@@ -154,10 +128,6 @@ do
|
|||||||
shift 1;
|
shift 1;
|
||||||
EXPORTS=$1
|
EXPORTS=$1
|
||||||
;;
|
;;
|
||||||
'-id')
|
|
||||||
shift 1;
|
|
||||||
ID=$1
|
|
||||||
;;
|
|
||||||
-*)
|
-*)
|
||||||
echo "mklib: Unknown option: " $1 ;
|
echo "mklib: Unknown option: " $1 ;
|
||||||
exit 1
|
exit 1
|
||||||
@@ -201,7 +171,6 @@ if [ ] ; then
|
|||||||
echo PATCH is $PATCH
|
echo PATCH is $PATCH
|
||||||
echo DEPS are $DEPS
|
echo DEPS are $DEPS
|
||||||
echo "EXPORTS in" $EXPORTS
|
echo "EXPORTS in" $EXPORTS
|
||||||
echo ID is $ID
|
|
||||||
echo "-----------------"
|
echo "-----------------"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -211,7 +180,7 @@ fi
|
|||||||
#
|
#
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
|
|
||||||
'Linux' | 'OpenBSD' | 'DragonFly' | 'GNU' | GNU/*)
|
'Linux' | 'OpenBSD' | 'GNU' | GNU/*)
|
||||||
# we assume gcc
|
# we assume gcc
|
||||||
|
|
||||||
if [ "x$LINK" = "x" ] ; then
|
if [ "x$LINK" = "x" ] ; then
|
||||||
@@ -226,13 +195,8 @@ case $ARCH in
|
|||||||
if [ $NOPREFIX = 1 ] ; then
|
if [ $NOPREFIX = 1 ] ; then
|
||||||
# No "lib" or ".so" part
|
# No "lib" or ".so" part
|
||||||
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
|
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
|
||||||
case $ARCH in 'Linux' | 'GNU' | GNU/*)
|
#OPTS="-shared -Wl,-soname,${LIBNAME}" # soname???
|
||||||
OPTS="-Xlinker -Bsymbolic -shared"
|
OPTS="-shared"
|
||||||
;;
|
|
||||||
*)
|
|
||||||
OPTS="-shared"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Check if objects are 32-bit and we're running in 64-bit
|
# Check if objects are 32-bit and we're running in 64-bit
|
||||||
# environment. If so, pass -m32 flag to linker.
|
# environment. If so, pass -m32 flag to linker.
|
||||||
@@ -242,29 +206,21 @@ case $ARCH in
|
|||||||
OPTS="-m32 ${OPTS}"
|
OPTS="-m32 ${OPTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
# finish up
|
# finish up
|
||||||
FINAL_LIBS="${LIBNAME}"
|
FINAL_LIBS="${LIBNAME}"
|
||||||
elif [ $STATIC = 1 ] ; then
|
elif [ $STATIC = 1 ] ; then
|
||||||
LIBNAME="lib${LIBNAME}.a" # prefix with "lib", suffix with ".a"
|
LIBNAME="lib${LIBNAME}" # prefix with "lib"
|
||||||
echo "mklib: Making" $ARCH "static library: " ${LIBNAME}
|
echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
|
||||||
LINK="ar"
|
LINK="ar"
|
||||||
OPTS="-ru"
|
OPTS="-ru"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
rm -f ${LIBNAME}
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
|
${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
|
||||||
ranlib ${LIBNAME}
|
ranlib ${LIBNAME}.a
|
||||||
# finish up
|
# finish up
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}.a
|
||||||
else
|
else
|
||||||
LIBNAME="lib${LIBNAME}" # prefix with "lib"
|
LIBNAME="lib${LIBNAME}" # prefix with "lib"
|
||||||
case $ARCH in 'Linux' | 'GNU' | GNU/*)
|
case $ARCH in 'Linux' | 'GNU' | GNU/*)
|
||||||
@@ -277,7 +233,7 @@ case $ARCH in
|
|||||||
if [ $EXPORTS ] ; then
|
if [ $EXPORTS ] ; then
|
||||||
#OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
|
#OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
|
||||||
# Make the 'exptmp' file for --version-script option
|
# Make the 'exptmp' file for --version-script option
|
||||||
echo "{" > exptmp
|
echo "VERSION_${MAJOR}.${MINOR} {" > exptmp
|
||||||
echo "global:" >> exptmp
|
echo "global:" >> exptmp
|
||||||
sed 's/$/;/' ${EXPORTS} >> exptmp
|
sed 's/$/;/' ${EXPORTS} >> exptmp
|
||||||
echo "local:" >> exptmp
|
echo "local:" >> exptmp
|
||||||
@@ -294,9 +250,6 @@ case $ARCH in
|
|||||||
if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
|
if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
|
||||||
OPTS="-m32 ${OPTS}"
|
OPTS="-m32 ${OPTS}"
|
||||||
fi
|
fi
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x${PATCH} = "x" ] ; then
|
if [ x${PATCH} = "x" ] ; then
|
||||||
VERSION="${MAJOR}.${MINOR}"
|
VERSION="${MAJOR}.${MINOR}"
|
||||||
@@ -312,7 +265,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.so
|
rm -f ${LIBNAME}.so
|
||||||
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
||||||
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
||||||
@@ -330,9 +283,7 @@ case $ARCH in
|
|||||||
ar -ruv ${LIBNAME} ${OBJECTS}
|
ar -ruv ${LIBNAME} ${OBJECTS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
else
|
else
|
||||||
if [ $NOPREFIX = 0 ] ; then
|
LIBNAME="lib${LIBNAME}.so"
|
||||||
LIBNAME="lib${LIBNAME}.so"
|
|
||||||
fi
|
|
||||||
echo "mklib: Making SunOS shared library: " ${LIBNAME}
|
echo "mklib: Making SunOS shared library: " ${LIBNAME}
|
||||||
|
|
||||||
if [ "x$LINK" = "x" ] ; then
|
if [ "x$LINK" = "x" ] ; then
|
||||||
@@ -346,7 +297,7 @@ case $ARCH in
|
|||||||
# use g++
|
# use g++
|
||||||
LINK="g++"
|
LINK="g++"
|
||||||
else
|
else
|
||||||
echo "mklib: warning: can't find C++ compiler, trying CC."
|
echo "mklib: warning: can't find C++ comiler, trying CC."
|
||||||
LINK="CC"
|
LINK="CC"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -375,25 +326,16 @@ case $ARCH in
|
|||||||
# Check if objects are SPARC v9
|
# Check if objects are SPARC v9
|
||||||
# file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
|
# file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
|
||||||
set ${OBJECTS}
|
set ${OBJECTS}
|
||||||
if [ ${LINK} = "cc" -o ${LINK} = "CC" ] ; then
|
SPARCV9=`file $1 | grep SPARCV9`
|
||||||
SPARCV9=`file $1 | grep SPARCV9`
|
if [ "${SPARCV9}" ] ; then
|
||||||
if [ "${SPARCV9}" ] ; then
|
OPTS="${OPTS} -xarch=v9"
|
||||||
OPTS="${OPTS} -xarch=v9"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
# for debug:
|
# for debug:
|
||||||
#echo "mklib: linker is" ${LINK} ${OPTS}
|
#echo "mklib: linker is" ${LINK} ${OPTS}
|
||||||
if [ $NOPREFIX = 1 ] ; then
|
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
rm -f ${LIBNAME}
|
${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
||||||
else
|
|
||||||
rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
|
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.${MAJOR} -h ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
|
|
||||||
ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
|
|
||||||
fi
|
|
||||||
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -414,11 +356,8 @@ case $ARCH in
|
|||||||
# No "lib" or ".so" part
|
# No "lib" or ".so" part
|
||||||
echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
|
echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
|
||||||
OPTS="-shared"
|
OPTS="-shared"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
elif [ $STATIC = 1 ] ; then
|
elif [ $STATIC = 1 ] ; then
|
||||||
STLIB="lib${LIBNAME}.a"
|
STLIB="lib${LIBNAME}.a"
|
||||||
@@ -430,12 +369,9 @@ case $ARCH in
|
|||||||
else
|
else
|
||||||
SHLIB="lib${LIBNAME}.so.${MAJOR}"
|
SHLIB="lib${LIBNAME}.so.${MAJOR}"
|
||||||
OPTS="-shared -Wl,-soname,${SHLIB}"
|
OPTS="-shared -Wl,-soname,${SHLIB}"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
echo "mklib: Making FreeBSD shared library: " ${SHLIB}
|
echo "mklib: Making FreeBSD shared library: " ${SHLIB}
|
||||||
rm -f ${SHLIB}
|
rm -f ${SHLIB}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${SHLIB} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS}
|
||||||
ln -sf ${SHLIB} "lib${LIBNAME}.so"
|
ln -sf ${SHLIB} "lib${LIBNAME}.so"
|
||||||
FINAL_LIBS="${SHLIB} lib${LIBNAME}.so"
|
FINAL_LIBS="${SHLIB} lib${LIBNAME}.so"
|
||||||
fi
|
fi
|
||||||
@@ -486,10 +422,6 @@ case $ARCH in
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $CPLUSPLUS = 1 ] ; then
|
if [ $CPLUSPLUS = 1 ] ; then
|
||||||
LINK="CC"
|
LINK="CC"
|
||||||
else
|
else
|
||||||
@@ -497,7 +429,7 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
|
echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@@ -570,16 +502,12 @@ case $ARCH in
|
|||||||
}
|
}
|
||||||
}' | sort -u >> ${EXPFILE}
|
}' | sort -u >> ${EXPFILE}
|
||||||
|
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# On AIX a shared library is linked differently when
|
# On AIX a shared library is linked differently when
|
||||||
# you want to dlopen the file
|
# you want to dlopen the file
|
||||||
if [ $DLOPEN = "1" ] ; then
|
if [ $DLOPEN = "1" ] ; then
|
||||||
cc -G ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
cc -G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
else
|
else
|
||||||
cc ${OPTS} ${LDFLAGS} -o ${OFILE} ${OBJECTS} ${DEPS}
|
cc ${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
|
||||||
ar ${X64} -r ${LIBNAME} ${OFILE}
|
ar ${X64} -r ${LIBNAME} ${OFILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -625,9 +553,6 @@ case $ARCH in
|
|||||||
echo "mklib: Making Darwin static library: " ${LIBNAME}
|
echo "mklib: Making Darwin static library: " ${LIBNAME}
|
||||||
LINK="ar"
|
LINK="ar"
|
||||||
OPTS="-ruvs"
|
OPTS="-ruvs"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
|
${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
else
|
else
|
||||||
@@ -636,46 +561,22 @@ case $ARCH in
|
|||||||
LIBSUFFIX="bundle"
|
LIBSUFFIX="bundle"
|
||||||
OPTS="${ARCHOPT} -bundle -multiply_defined suppress"
|
OPTS="${ARCHOPT} -bundle -multiply_defined suppress"
|
||||||
else
|
else
|
||||||
LIBSUFFIX="dylib"
|
LIBSUFFIX="dylib"
|
||||||
if [ -z "$ID" ] ; then
|
OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
|
||||||
ID="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
|
|
||||||
fi
|
|
||||||
OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name ${ID}"
|
|
||||||
fi
|
fi
|
||||||
|
LINKNAME="lib${LIBNAME}.${LIBSUFFIX}"
|
||||||
if [ ${EXPORTS} ] ; then
|
LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
|
||||||
if [ -f ${EXPORTS}".darwin" ] ; then
|
|
||||||
EXPORTS=$EXPORTS".darwin"
|
|
||||||
fi
|
|
||||||
OPTS="${OPTS} -exported_symbols_list ${EXPORTS}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LINKNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
|
|
||||||
LINKNAME2="lib${LIBNAME}.${LIBSUFFIX}"
|
|
||||||
LIBNAME="lib${LIBNAME}.${MAJOR}.${MINOR}.${LIBSUFFIX}"
|
|
||||||
|
|
||||||
# examine first object to determine ABI
|
# examine first object to determine ABI
|
||||||
set ${OBJECTS}
|
set ${OBJECTS}
|
||||||
ABI_PPC=`file $1 | grep ' ppc'`
|
ABI_PPC=`file $1 | grep 'object ppc'`
|
||||||
ABI_I386=`file $1 | grep ' i386'`
|
ABI_I386=`file $1 | grep 'object i386'`
|
||||||
ABI_PPC64=`file $1 | grep ' ppc64'`
|
if [ "${ABI_PPC}" ] ; then
|
||||||
ABI_X86_64=`file $1 | grep ' x86_64'`
|
OPTS="${OPTS} -arch ppc"
|
||||||
if [ "${ABI_PPC}" ] ; then
|
fi
|
||||||
OPTS="${OPTS} -arch ppc"
|
if [ "${ABI_I386}" ] ; then
|
||||||
fi
|
OPTS="${OPTS} -arch i386"
|
||||||
if [ "${ABI_I386}" ] ; then
|
fi
|
||||||
OPTS="${OPTS} -arch i386"
|
|
||||||
fi
|
|
||||||
if [ "${ABI_PPC64}" ] ; then
|
|
||||||
OPTS="${OPTS} -arch ppc64"
|
|
||||||
fi
|
|
||||||
if [ "${ABI_X86_64}" ] ; then
|
|
||||||
OPTS="${OPTS} -arch x86_64"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
|
# XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
|
||||||
# to OPTS here?
|
# to OPTS here?
|
||||||
@@ -688,11 +589,9 @@ case $ARCH in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "mklib: Making Darwin shared library: " ${LIBNAME}
|
echo "mklib: Making Darwin shared library: " ${LIBNAME}
|
||||||
|
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
|
||||||
ln -s ${LIBNAME} ${LINKNAME}
|
ln -s ${LIBNAME} ${LINKNAME}
|
||||||
ln -s ${LIBNAME} ${LINKNAME2}
|
FINAL_LIBS="${LIBNAME} ${LINKNAME}"
|
||||||
FINAL_LIBS="${LIBNAME} ${LINKNAME} ${LINKNAME2}"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -744,9 +643,6 @@ case $ARCH in
|
|||||||
echo "mklib: Making Intel ICC static library: " ${LIBNAME}.a
|
echo "mklib: Making Intel ICC static library: " ${LIBNAME}.a
|
||||||
LINK="ar"
|
LINK="ar"
|
||||||
OPTS="-ruv"
|
OPTS="-ruv"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
|
${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
|
||||||
# finish up
|
# finish up
|
||||||
@@ -757,9 +653,6 @@ case $ARCH in
|
|||||||
else
|
else
|
||||||
OPTS="-shared"
|
OPTS="-shared"
|
||||||
fi
|
fi
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
VERSION="${MAJOR}.${MINOR}.${PATCH}"
|
VERSION="${MAJOR}.${MINOR}.${PATCH}"
|
||||||
echo "mklib: Making Intel ICC shared library: " ${LIBNAME}.so.${VERSION}
|
echo "mklib: Making Intel ICC shared library: " ${LIBNAME}.so.${VERSION}
|
||||||
|
|
||||||
@@ -773,7 +666,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.so.${MAJOR}
|
rm -f ${LIBNAME}.so.${MAJOR}
|
||||||
rm -f ${LIBNAME}.so
|
rm -f ${LIBNAME}.so
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
|
||||||
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
|
||||||
@@ -824,9 +717,6 @@ case $ARCH in
|
|||||||
echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
|
echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
|
||||||
LINK="ar"
|
LINK="ar"
|
||||||
OPTS="-ru"
|
OPTS="-ru"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
|
${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
|
||||||
ranlib ${LIBNAME}.a
|
ranlib ${LIBNAME}.a
|
||||||
@@ -834,9 +724,6 @@ case $ARCH in
|
|||||||
FINAL_LIBS=${LIBNAME}.a
|
FINAL_LIBS=${LIBNAME}.a
|
||||||
else
|
else
|
||||||
OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a"
|
OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a"
|
||||||
if [ "${ALTOPTS}" ] ; then
|
|
||||||
OPTS=${ALTOPTS}
|
|
||||||
fi
|
|
||||||
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}-${MAJOR}.dll
|
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}-${MAJOR}.dll
|
||||||
|
|
||||||
if [ $CPLUSPLUS = 1 ] ; then
|
if [ $CPLUSPLUS = 1 ] ; then
|
||||||
@@ -851,7 +738,7 @@ case $ARCH in
|
|||||||
rm -f ${LIBNAME}.a
|
rm -f ${LIBNAME}.a
|
||||||
|
|
||||||
# make lib
|
# make lib
|
||||||
${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
|
||||||
# make usual symlinks
|
# make usual symlinks
|
||||||
ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
|
ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
|
||||||
# finish up
|
# finish up
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/make -sf
|
|
||||||
# Print the various Mesa version fields. This is mostly used to add the
|
|
||||||
# version to configure.
|
|
||||||
|
|
||||||
# This reflects that this script is usually called from the toplevel
|
|
||||||
TOP = .
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
version:
|
|
||||||
@echo $(MESA_VERSION)
|
|
||||||
major:
|
|
||||||
@echo $(MESA_MAJOR)
|
|
||||||
minor:
|
|
||||||
@echo $(MESA_MINOR)
|
|
||||||
tiny:
|
|
||||||
@echo $(MESA_TINY)
|
|
||||||
2
configs/.gitignore
vendored
2
configs/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
current
|
|
||||||
autoconf
|
|
||||||
@@ -13,6 +13,7 @@ CXXFLAGS = -O -DAIXV3 -DPTHREADS
|
|||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
MKLIB_OPTIONS =
|
MKLIB_OPTIONS =
|
||||||
|
COPY_LIBS = cp -f -h
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ CXX = g++
|
|||||||
CFLAGS = -O2 -DAIXV3
|
CFLAGS = -O2 -DAIXV3
|
||||||
CXXFLAGS = -O2 -DAIXV3
|
CXXFLAGS = -O2 -DAIXV3
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -arch aix-gcc
|
MKLIB_OPTIONS = -arch aix-gcc
|
||||||
GL_LIB_DEPS = -lX11 -lXext -lm
|
GL_LIB_DEPS = -lX11 -lXext -lm
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
|
|||||||
@@ -1,106 +0,0 @@
|
|||||||
# Autoconf configuration
|
|
||||||
|
|
||||||
# Pull in the defaults
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
# This is generated by configure
|
|
||||||
CONFIG_NAME = autoconf
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = @CC@
|
|
||||||
CXX = @CXX@
|
|
||||||
OPT_FLAGS = @OPT_FLAGS@
|
|
||||||
ARCH_FLAGS = @ARCH_FLAGS@
|
|
||||||
ASM_FLAGS = @ASM_FLAGS@
|
|
||||||
PIC_FLAGS = @PIC_FLAGS@
|
|
||||||
DEFINES = @DEFINES@
|
|
||||||
CFLAGS = @CPPFLAGS@ @CFLAGS@ \
|
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
|
||||||
CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \
|
|
||||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
||||||
LDFLAGS = @LDFLAGS@
|
|
||||||
EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
|
|
||||||
|
|
||||||
# Assembler
|
|
||||||
ASM_SOURCES = @ASM_SOURCES@
|
|
||||||
ASM_API = @ASM_API@
|
|
||||||
|
|
||||||
# Misc tools and flags
|
|
||||||
MAKE = @MAKE@
|
|
||||||
SHELL = @SHELL@
|
|
||||||
MKLIB_OPTIONS = @MKLIB_OPTIONS@
|
|
||||||
MKDEP = @MKDEP@
|
|
||||||
MKDEP_OPTIONS = @MKDEP_OPTIONS@
|
|
||||||
|
|
||||||
# Python and flags (generally only needed by the developers)
|
|
||||||
PYTHON2 = python
|
|
||||||
PYTHON_FLAGS = -t -O -O
|
|
||||||
|
|
||||||
# Library names (base name)
|
|
||||||
GL_LIB = GL
|
|
||||||
GLU_LIB = GLU
|
|
||||||
GLUT_LIB = glut
|
|
||||||
GLW_LIB = GLw
|
|
||||||
OSMESA_LIB = @OSMESA_LIB@
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
|
||||||
GL_LIB_NAME = @GL_LIB_NAME@
|
|
||||||
GLU_LIB_NAME = @GLU_LIB_NAME@
|
|
||||||
GLUT_LIB_NAME = @GLUT_LIB_NAME@
|
|
||||||
GLW_LIB_NAME = @GLW_LIB_NAME@
|
|
||||||
OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
|
|
||||||
|
|
||||||
# Directories to build
|
|
||||||
LIB_DIR = @LIB_DIR@
|
|
||||||
SRC_DIRS = @SRC_DIRS@
|
|
||||||
GLU_DIRS = @GLU_DIRS@
|
|
||||||
DRIVER_DIRS = @DRIVER_DIRS@
|
|
||||||
# Which subdirs under $(TOP)/progs/ to enter:
|
|
||||||
PROGRAM_DIRS = @PROGRAM_DIRS@
|
|
||||||
|
|
||||||
# Driver specific build vars
|
|
||||||
DRI_DIRS = @DRI_DIRS@
|
|
||||||
WINDOW_SYSTEM = @WINDOW_SYSTEM@
|
|
||||||
USING_EGL = @USING_EGL@
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
X11_INCLUDES = @X11_INCLUDES@
|
|
||||||
|
|
||||||
# GLw motif setup
|
|
||||||
GLW_SOURCES = @GLW_SOURCES@
|
|
||||||
MOTIF_CFLAGS = @MOTIF_CFLAGS@
|
|
||||||
|
|
||||||
# Library/program dependencies
|
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
|
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
|
|
||||||
$(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
|
|
||||||
$(EXTRA_LIB_PATH) @GLU_LIB_DEPS@
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \
|
|
||||||
$(EXTRA_LIB_PATH) @GLUT_LIB_DEPS@
|
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \
|
|
||||||
$(EXTRA_LIB_PATH) @GLW_LIB_DEPS@
|
|
||||||
APP_LIB_DEPS = $(EXTRA_LIB_PATH) @APP_LIB_DEPS@
|
|
||||||
|
|
||||||
# DRI dependencies
|
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) @DRI_LIB_DEPS@
|
|
||||||
LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
|
|
||||||
LIBDRM_LIB = @LIBDRM_LIBS@
|
|
||||||
EXPAT_INCLUDES = @EXPAT_INCLUDES@
|
|
||||||
|
|
||||||
# Autoconf directories
|
|
||||||
prefix = @prefix@
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
libdir = @libdir@
|
|
||||||
includedir = @includedir@
|
|
||||||
|
|
||||||
# Installation directories (for make install)
|
|
||||||
INSTALL_DIR = $(prefix)
|
|
||||||
INSTALL_LIB_DIR = $(libdir)
|
|
||||||
INSTALL_INC_DIR = $(includedir)
|
|
||||||
|
|
||||||
# DRI installation directories
|
|
||||||
DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
|
|
||||||
|
|
||||||
# Where libGL will look for DRI hardware drivers
|
|
||||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
|
||||||
@@ -39,10 +39,6 @@ ifeq ($(CPU), x86)
|
|||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
LDFLAGS += -Xlinker
|
LDFLAGS += -Xlinker
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
# Configuration for building only libOSMesa on BlueGene, no Xlib driver
|
|
||||||
# This doesn't really have a lot of dependencies, so it should be usable
|
|
||||||
# on other (gcc-based) systems too.
|
|
||||||
# It uses static linking and disables multithreading.
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = bluegene-osmesa
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc
|
|
||||||
CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++
|
|
||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
|
||||||
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.a
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = mesa glu
|
|
||||||
DRIVER_DIRS = osmesa
|
|
||||||
PROGRAM_DIRS = osdemos
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
OSMESA_LIB_DEPS = -lm
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
|
||||||
APP_LIB_DEPS = -lOSMesa -lGLU -lm
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Configuration for building only libOSMesa on BlueGene using the IBM xlc compiler
|
|
||||||
# This doesn't really have a lot of dependencies, so it should be usable
|
|
||||||
# on similar systems too.
|
|
||||||
# It uses static linking and disables multithreading.
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = bluegene-osmesa
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc
|
|
||||||
CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC
|
|
||||||
CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
|
||||||
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.a
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = mesa glu
|
|
||||||
DRIVER_DIRS = osmesa
|
|
||||||
PROGRAM_DIRS = osdemos
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
OSMESA_LIB_DEPS = -lm
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
|
||||||
APP_LIB_DEPS = -lOSMesa -lGLU -lm
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# Configuration for building only libOSMesa on Cray Xt3
|
|
||||||
# for the compute nodes running Catamount using the
|
|
||||||
# Portland Group compiler. The Portland Group toolchain has to be
|
|
||||||
# enabled before using "module switch PrgEnv-gnu PrgEnv-pgi" .
|
|
||||||
# This doesn't really have a lot of dependencies, so it should be usable
|
|
||||||
# on other similar systems too.
|
|
||||||
# It uses static linking and disables multithreading.
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = catamount-osmesa-pgi
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = cc
|
|
||||||
CXX = CC
|
|
||||||
CFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
CXXFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
|
||||||
|
|
||||||
OSMESA_LIB_NAME = libOSMesa.a
|
|
||||||
|
|
||||||
# Directories
|
|
||||||
SRC_DIRS = mesa glu
|
|
||||||
DRIVER_DIRS = osmesa
|
|
||||||
PROGRAM_DIRS = osdemos
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
OSMESA_LIB_DEPS = -lm
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
|
||||||
APP_LIB_DEPS = -lOSMesa -lGLU -lm
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
# MinGW config include file updated for Mesa 7.0
|
|
||||||
#
|
|
||||||
# Updated : by Heromyth, on 2007-7-21
|
|
||||||
# Email : zxpmyth@yahoo.com.cn
|
|
||||||
# Bugs : 1) All the default settings work fine. But the setting X86=1 can't work.
|
|
||||||
# The others havn't been tested yet.
|
|
||||||
# 2) The generated DLLs are *not* compatible with the ones built
|
|
||||||
# with the other compilers like VC8, especially for GLUT.
|
|
||||||
# 3) Although more tests are needed, it can be used individually!
|
|
||||||
|
|
||||||
# The generated DLLs by MingW with STDCALL are not totally compatible
|
|
||||||
# with the ones linked by Microsoft's compilers.
|
|
||||||
#
|
|
||||||
# xxx_USING_STDCALL = 1 Compiling MESA with __stdcall. This is default!
|
|
||||||
#
|
|
||||||
# xxx_USING_STDCALL = 0 Compiling MESA without __stdcall. I like this:)
|
|
||||||
#
|
|
||||||
|
|
||||||
# In fact, GL_USING_STDCALL and GLUT_USING_STDCALL can be
|
|
||||||
# different. For example:
|
|
||||||
#
|
|
||||||
# GL_USING_STDCALL = 0
|
|
||||||
# GLUT_USING_STDCALL = 1
|
|
||||||
#
|
|
||||||
# Suggested setting:
|
|
||||||
#
|
|
||||||
# ALL_USING_STDCALL = 1
|
|
||||||
#
|
|
||||||
# That's default!
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
ALL_USING_STDCALL = 1
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(ALL_USING_STDCALL),1)
|
|
||||||
GL_USING_STDCALL = 1
|
|
||||||
GLUT_USING_STDCALL = 1
|
|
||||||
else
|
|
||||||
GL_USING_STDCALL = 0
|
|
||||||
GLUT_USING_STDCALL = 0
|
|
||||||
endif
|
|
||||||
@@ -4,26 +4,11 @@ include $(TOP)/configs/default
|
|||||||
|
|
||||||
CONFIG_NAME = darwin
|
CONFIG_NAME = darwin
|
||||||
|
|
||||||
INSTALL_DIR = /usr/X11
|
|
||||||
|
|
||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CC = gcc
|
CC = cc
|
||||||
CXX = gcc
|
CXX = cc
|
||||||
PIC_FLAGS = -fPIC
|
CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \
|
CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS \
|
|
||||||
-DGLX_INDIRECT_RENDERING \
|
|
||||||
-DGLX_ALIAS_UNSUPPORTED
|
|
||||||
|
|
||||||
# -DGLX_DIRECT_RENDERING - pulls in libdrm stuff in glx/x11
|
|
||||||
# -DIN_DRI_DRIVER
|
|
||||||
|
|
||||||
ARCH_FLAGS += $(RC_CFLAGS)
|
|
||||||
|
|
||||||
CFLAGS = -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
|
|
||||||
-I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
|
||||||
CXXFLAGS = -g -O2 -Wall -fno-strict-aliasing \
|
|
||||||
-I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.dylib
|
GL_LIB_NAME = libGL.dylib
|
||||||
@@ -32,24 +17,13 @@ GLUT_LIB_NAME = libglut.dylib
|
|||||||
GLW_LIB_NAME = libGLw.dylib
|
GLW_LIB_NAME = libGLw.dylib
|
||||||
OSMESA_LIB_NAME = libOSMesa.dylib
|
OSMESA_LIB_NAME = libOSMesa.dylib
|
||||||
|
|
||||||
# globs used to install the lib and all symlinks
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
GL_LIB_GLOB = libGL.*dylib
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
||||||
GLU_LIB_GLOB = libGLU.*dylib
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
||||||
GLUT_LIB_GLOB = libglut.*dylib
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext
|
||||||
GLW_LIB_GLOB = libGLw.*dylib
|
GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
|
||||||
OSMESA_LIB_GLOB = libOSMesa.*dylib
|
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|
||||||
GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread
|
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext
|
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXt
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
|
|
||||||
|
|
||||||
# omit glw lib for now:
|
# omit glw lib for now:
|
||||||
SRC_DIRS = glx/x11 mesa glu glw glut/glx
|
SRC_DIRS = mesa glu glut/glx
|
||||||
GLU_DIRS = sgi
|
|
||||||
DRIVER_DIRS = osmesa
|
|
||||||
#DRIVER_DIRS = dri
|
|
||||||
DRI_DIRS = swrast
|
|
||||||
PROGRAM_DIRS = xdemos
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# Configuration for Darwin / MacOS X, making 32bit fat dynamic libs
|
|
||||||
|
|
||||||
RC_CFLAGS=-arch ppc -arch i386
|
|
||||||
|
|
||||||
include $(TOP)/configs/darwin
|
|
||||||
|
|
||||||
CONFIG_NAME = darwin-fat-32bit
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Configuration for Darwin / MacOS X, making 32bit and 64bit fat dynamic libs
|
|
||||||
|
|
||||||
RC_CFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x86_64
|
|
||||||
|
|
||||||
include $(TOP)/configs/darwin
|
|
||||||
|
|
||||||
CONFIG_NAME = darwin-fat-all
|
|
||||||
24
configs/darwin-static
Normal file
24
configs/darwin-static
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/darwin
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
CXXFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLUT_LIB_NAME = libglut.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLUT_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
APP_LIB_DEPS = -Wl,-search_paths_first -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lstdc++ -lgcc_s.1 -lm
|
||||||
26
configs/darwin-static-x86ppc
Normal file
26
configs/darwin-static-x86ppc
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making static libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/darwin
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin-static
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
||||||
|
-I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
||||||
|
-I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.a
|
||||||
|
GLU_LIB_NAME = libGLU.a
|
||||||
|
GLUT_LIB_NAME = libglut.a
|
||||||
|
GLW_LIB_NAME = libGLw.a
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.a
|
||||||
|
|
||||||
|
GL_LIB_DEPS =
|
||||||
|
OSMESA_LIB_DEPS =
|
||||||
|
GLU_LIB_DEPS =
|
||||||
|
GLUT_LIB_DEPS =
|
||||||
|
GLW_LIB_DEPS =
|
||||||
|
APP_LIB_DEPS = -Wl,-search_paths_first -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lstdc++ -lgcc_s.1 -lm
|
||||||
33
configs/darwin-x86ppc
Normal file
33
configs/darwin-x86ppc
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Configuration for Darwin / MacOS X, making dynamic libs
|
||||||
|
|
||||||
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
|
CONFIG_NAME = darwin
|
||||||
|
|
||||||
|
# Compiler and flags
|
||||||
|
CC = cc
|
||||||
|
CXX = cc
|
||||||
|
CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
||||||
|
-I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
|
||||||
|
-I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin
|
||||||
|
|
||||||
|
MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
|
|
||||||
|
# Library names (actual file names)
|
||||||
|
GL_LIB_NAME = libGL.dylib
|
||||||
|
GLU_LIB_NAME = libGLU.dylib
|
||||||
|
GLUT_LIB_NAME = libglut.dylib
|
||||||
|
GLW_LIB_NAME = libGLw.dylib
|
||||||
|
OSMESA_LIB_NAME = libOSMesa.dylib
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
||||||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
|
||||||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext
|
||||||
|
GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
|
||||||
|
APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|
||||||
|
# omit glw lib for now:
|
||||||
|
SRC_DIRS = mesa glu glut/glx
|
||||||
|
|
||||||
@@ -8,10 +8,9 @@
|
|||||||
CONFIG_NAME = default
|
CONFIG_NAME = default
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
MESA_MAJOR=7
|
MESA_MAJOR=6
|
||||||
MESA_MINOR=2
|
MESA_MINOR=5
|
||||||
MESA_TINY=0
|
MESA_TINY=1
|
||||||
MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
|
||||||
|
|
||||||
# external projects. This should be useless now that we use libdrm.
|
# external projects. This should be useless now that we use libdrm.
|
||||||
DRM_SOURCE_PATH=$(TOP)/../drm
|
DRM_SOURCE_PATH=$(TOP)/../drm
|
||||||
@@ -21,23 +20,19 @@ CC = cc
|
|||||||
CXX = CC
|
CXX = CC
|
||||||
CFLAGS = -O
|
CFLAGS = -O
|
||||||
CXXFLAGS = -O
|
CXXFLAGS = -O
|
||||||
LDFLAGS =
|
|
||||||
GLU_CFLAGS =
|
GLU_CFLAGS =
|
||||||
|
|
||||||
# Misc tools and flags
|
# Misc tools and flags
|
||||||
SHELL = /bin/sh
|
|
||||||
MKLIB = $(SHELL) $(TOP)/bin/mklib
|
|
||||||
MKLIB_OPTIONS =
|
MKLIB_OPTIONS =
|
||||||
MKDEP = makedepend
|
MKDEP = makedepend
|
||||||
MKDEP_OPTIONS = -fdepend
|
MKDEP_OPTIONS = -fdepend
|
||||||
MAKE = make
|
MAKE = make
|
||||||
INSTALL = $(SHELL) $(TOP)/bin/minstall
|
INSTALL = install
|
||||||
|
COPY_LIBS = cp -f -d
|
||||||
|
|
||||||
# Tools for regenerating glapi (generally only needed by the developers)
|
# Python and flags (generally only needed by the developers)
|
||||||
PYTHON2 = python
|
PYTHON2 = python
|
||||||
PYTHON_FLAGS = -t -O -O
|
PYTHON_FLAGS = -t -O -O
|
||||||
INDENT = indent
|
|
||||||
INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
|
|
||||||
|
|
||||||
# Library names (base name)
|
# Library names (base name)
|
||||||
GL_LIB = GL
|
GL_LIB = GL
|
||||||
@@ -54,12 +49,6 @@ GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
|||||||
GLW_LIB_NAME = lib$(GLW_LIB).so
|
GLW_LIB_NAME = lib$(GLW_LIB).so
|
||||||
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
||||||
|
|
||||||
# globs used to install the lib and all symlinks
|
|
||||||
GL_LIB_GLOB = $(GL_LIB_NAME)*
|
|
||||||
GLU_LIB_GLOB = $(GLU_LIB_NAME)*
|
|
||||||
GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
|
|
||||||
GLW_LIB_GLOB = $(GLW_LIB_NAME)*
|
|
||||||
OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
|
|
||||||
|
|
||||||
# Optional assembly language optimization files for libGL
|
# Optional assembly language optimization files for libGL
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
@@ -67,7 +56,6 @@ ASM_SOURCES =
|
|||||||
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
||||||
# order to build the Motif widget too)
|
# order to build the Motif widget too)
|
||||||
GLW_SOURCES = GLwDrawA.c
|
GLW_SOURCES = GLwDrawA.c
|
||||||
MOTIF_CFLAGS = -I/usr/include/Motif1.2
|
|
||||||
|
|
||||||
|
|
||||||
# Directories to build
|
# Directories to build
|
||||||
@@ -76,26 +64,23 @@ SRC_DIRS = mesa glu glut/glx glw
|
|||||||
GLU_DIRS = sgi
|
GLU_DIRS = sgi
|
||||||
DRIVER_DIRS = x11 osmesa
|
DRIVER_DIRS = x11 osmesa
|
||||||
# Which subdirs under $(TOP)/progs/ to enter:
|
# Which subdirs under $(TOP)/progs/ to enter:
|
||||||
PROGRAM_DIRS = demos redbook samples glsl xdemos
|
PROGRAM_DIRS = demos redbook samples xdemos
|
||||||
|
|
||||||
|
|
||||||
# Library dependencies
|
# Library/program dependencies
|
||||||
#EXTRA_LIB_PATH ?=
|
EXTRA_LIB_PATH ?=
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
||||||
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
||||||
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
||||||
|
|
||||||
# Program dependencies - specific GL/glut libraries added in Makefiles
|
|
||||||
APP_LIB_DEPS = -lm
|
|
||||||
|
|
||||||
|
|
||||||
# Installation directories (for make install)
|
# Installation directories (for make install)
|
||||||
INSTALL_DIR = /usr/local
|
INSTALL_DIR = /usr/local
|
||||||
INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
|
DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
|
||||||
INSTALL_INC_DIR = $(INSTALL_DIR)/include
|
|
||||||
DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
|
|
||||||
|
|
||||||
# Where libGL will look for DRI hardware drivers
|
# Where libGL will look for DRI hardware drivers
|
||||||
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
||||||
|
|||||||
@@ -9,13 +9,15 @@ CC = cc
|
|||||||
CXX = c++
|
CXX = c++
|
||||||
MAKE = gmake
|
MAKE = gmake
|
||||||
|
|
||||||
|
# cp -d not supported on FreeBSD (see bug 4435)
|
||||||
|
COPY_LIBS = cp -f
|
||||||
|
|
||||||
OPT_FLAGS = -O2
|
OPT_FLAGS = -O2
|
||||||
PIC_FLAGS = -fPIC
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM -DHZ=100
|
||||||
-DHZ=100
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/local/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
|
CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
|
||||||
|
|
||||||
@@ -23,9 +25,5 @@ CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
EXTRA_LIB_PATH = -L/usr/local/lib
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|||||||
@@ -9,34 +9,27 @@ CONFIG_NAME = freebsd-dri
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
WARN_FLAGS = -Wall
|
WARN_FLAGS = -Wall
|
||||||
OPT_FLAGS = -O -g
|
OPT_FLAGS = -O
|
||||||
|
|
||||||
EXPAT_INCLUDES = -I/usr/local/include
|
EXPAT_INCLUDES = -I/usr/local/include
|
||||||
X11_INCLUDES = -I/usr/local/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
-DGLX_DIRECT_RENDERING -DHAVE_ALIAS
|
||||||
-DHAVE_ALIAS
|
|
||||||
|
|
||||||
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \
|
CFLAGS = -Wmissing-prototypes -g -std=c99 -Wundef -fPIC -ffast-math \
|
||||||
$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
|
$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
|
||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
|
CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
|
||||||
LIBDRM_LIB = `pkg-config --libs libdrm`
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
|
DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lm -lpthread $(LIBDRM_LIB)
|
||||||
-lm -pthread $(LIBDRM_LIB)
|
|
||||||
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11
|
||||||
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
@@ -49,6 +42,6 @@ DRM_SOURCE_PATH=$(TOP)/../drm
|
|||||||
|
|
||||||
# ffb and gamma are missing because they have not been converted to use the new
|
# ffb and gamma are missing because they have not been converted to use the new
|
||||||
# interface.
|
# interface.
|
||||||
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
|
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon tdfx \
|
||||||
unichrome savage sis
|
unichrome savage sis
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ CONFIG_NAME = hpux10
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
|
||||||
|
|
||||||
APP_LIB_DEPS = -$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|||||||
@@ -12,9 +12,5 @@ CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/incl
|
|||||||
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
|
CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ CONFIG_NAME = hpux10-static
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +z -Ae +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = +z -Ae -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +z -Aa +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS =
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32-static
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +O3 +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +O3 +DA2.0 -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-32-static
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
CFLAGS = +O3 +DA2.0 -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
|
|
||||||
CXXFLAGS = -O +DA2.0 -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
|
CXXFLAGS = +O3 +DA2.0 -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-64
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +z -Ae +DD64 +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = +z -Ae +DD64 -O +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +z -Aa +DD64 +O2 +Onolimit +Oaggressive -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS =
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-64-static
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +O3 +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = -O +DA2.0W -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +O3 +DA2.0W -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-ia64
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +z -Ae +DD64 +O3 +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = +z -Ae +DD64 -O +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +z -Aa +DD64 +O3 +DSmckinley -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS =
|
MKLIB_OPTIONS =
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ CONFIG_NAME = hpux11-ia64-static
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
CFLAGS = +O3 +DD64 -Aa -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM -DPTHREADS
|
||||||
|
|
||||||
CXXFLAGS = -O +DD64 -Ae -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
CXXFLAGS = +O3 +DD64 -Aa -D_HPUX_SOURCE +DSmckinley -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DPTHREADS
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ CC = cc
|
|||||||
# XXX fix this
|
# XXX fix this
|
||||||
CXX = c++
|
CXX = c++
|
||||||
|
|
||||||
CFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM
|
CFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DUSE_XSHM
|
||||||
CXXFLAGS = +z -O +Olibcalls +ESlit -Ae +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5
|
CXXFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ CONFIG_NAME = hpux9-gcc
|
|||||||
CC = cc
|
CC = cc
|
||||||
CXX = aCC
|
CXX = aCC
|
||||||
|
|
||||||
CFLAGS = -O +DAportable +z -Ae -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
CFLAGS = +O3 +DAportable +z -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DUSE_XSHM
|
||||||
CXXFLAGS = -O +DAportable +Z -Ae -D_HPUX_SOURCE
|
CXXFLAGS = +O3 +DAportable +Z -Aa -D_HPUX_SOURCE
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ PIC_FLAGS = -fPIC
|
|||||||
ARCH_FLAGS ?=
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
-D_BSD_SOURCE -DPTHREADS -DUSE_XSHM
|
||||||
-DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
@@ -28,10 +27,6 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
|||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
$(X11_INCLUDES)
|
$(X11_INCLUDES)
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
EXTRA_LIB_PATH = -L/usr/X11R6/lib
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
||||||
|
|||||||
@@ -11,11 +11,7 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE
|
CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
|
|||||||
@@ -13,10 +13,6 @@ CFLAGS = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D
|
|||||||
|
|
||||||
CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
|
||||||
ifeq ($(HAVE_X86), yes)
|
ifeq ($(HAVE_X86), yes)
|
||||||
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ ARCH_FLAGS ?=
|
|||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
-DGLX_DIRECT_RENDERING -DHAVE_ALIAS
|
||||||
-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
@@ -32,22 +31,16 @@ CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
|||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
|
||||||
LIBDRM_LIB = `pkg-config --libs libdrm`
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
||||||
-lm -lpthread -ldl $(LIBDRM_LIB)
|
$(LIBDRM_LIB)
|
||||||
|
|
||||||
|
|
||||||
# This is now 0 by default since it seems to confuse the hell out of people
|
# This is now 0 by default since it seems to confuse the hell out of people
|
||||||
@@ -59,10 +52,10 @@ USING_EGL=0
|
|||||||
# Directories
|
# Directories
|
||||||
ifeq ($(USING_EGL), 1)
|
ifeq ($(USING_EGL), 1)
|
||||||
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = egl xdemos
|
PROGRAM_DIRS = egl
|
||||||
else
|
else
|
||||||
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = xdemos
|
PROGRAM_DIRS =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
@@ -70,5 +63,5 @@ WINDOW_SYSTEM=dri
|
|||||||
|
|
||||||
# gamma are missing because they have not been converted to use the new
|
# gamma are missing because they have not been converted to use the new
|
||||||
# interface.
|
# interface.
|
||||||
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
|
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon s3v \
|
||||||
savage sis tdfx trident unichrome ffb
|
savage sis tdfx trident unichrome ffb
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# -*-makefile-*-
|
|
||||||
# Configuration for linux-dri-debug: Linux DRI hardware drivers for XFree86 & others
|
|
||||||
|
|
||||||
include $(TOP)/configs/linux-dri
|
|
||||||
|
|
||||||
CONFIG_NAME = linux-dri-debug
|
|
||||||
OPT_FLAGS = -O0 -g
|
|
||||||
ARCH_FLAGS = -DDEBUG
|
|
||||||
|
|
||||||
# Helpful to reduce the amount of stuff that gets built sometimes:
|
|
||||||
#DRI_DIRS = i915tex i915
|
|
||||||
#DRI_DIRS = i965
|
|
||||||
#DRI_DIRS = radeon r200 r300
|
|
||||||
#DRI_DIRS = unichrome sis trident
|
|
||||||
#DRI_DIRS = i810 mga r128 tdfx
|
|
||||||
|
|
||||||
@@ -5,6 +5,9 @@ include $(TOP)/configs/linux-dri
|
|||||||
|
|
||||||
CONFIG_NAME = linux-dri-x86
|
CONFIG_NAME = linux-dri-x86
|
||||||
|
|
||||||
|
# Unnecessary on x86, generally.
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
# Add -m32 to CFLAGS:
|
# Add -m32 to CFLAGS:
|
||||||
ARCH_FLAGS = -m32
|
ARCH_FLAGS = -m32
|
||||||
|
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ EXTRA_LIB_PATH=-L/usr/X11R6/lib64
|
|||||||
# the new interface. i810 are missing because there is no x86-64
|
# the new interface. i810 are missing because there is no x86-64
|
||||||
# system where they could *ever* be used.
|
# system where they could *ever* be used.
|
||||||
#
|
#
|
||||||
DRI_DIRS = i915 i965 mach64 mga r128 r200 r300 radeon savage tdfx unichrome
|
DRI_DIRS = i915 mach64 mga r128 r200 radeon tdfx unichrome savage r300
|
||||||
|
|
||||||
|
|||||||
@@ -22,31 +22,25 @@ ARCH_FLAGS ?=
|
|||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
||||||
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
-DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_XCB
|
||||||
-DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I x11-xcb` `pkg-config --cflags-only-I xcb-glx`
|
X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I xcb-glx`
|
||||||
|
|
||||||
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
|
||||||
$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
|
$(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
|
|
||||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
|
EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
|
||||||
|
|
||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
|
||||||
LIBDRM_LIB = `pkg-config --libs libdrm`
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
||||||
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
||||||
-lm -lpthread -ldl $(LIBDRM_LIB) `pkg-config --libs xcb` \
|
$(LIBDRM_LIB) `pkg-config --libs xcb` `pkg-config --libs xcb-glx`
|
||||||
`pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`
|
|
||||||
|
|
||||||
|
|
||||||
# This is now 0 by default since it seems to confuse the hell out of people
|
# This is now 0 by default since it seems to confuse the hell out of people
|
||||||
@@ -58,10 +52,10 @@ USING_EGL=0
|
|||||||
# Directories
|
# Directories
|
||||||
ifeq ($(USING_EGL), 1)
|
ifeq ($(USING_EGL), 1)
|
||||||
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = egl xdemos
|
PROGRAM_DIRS = egl
|
||||||
else
|
else
|
||||||
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
SRC_DIRS = glx/x11 mesa glu glut/glx glw
|
||||||
PROGRAM_DIRS = xdemos
|
PROGRAM_DIRS =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
@@ -70,4 +64,4 @@ WINDOW_SYSTEM=dri
|
|||||||
# gamma are missing because they have not been converted to use the new
|
# gamma are missing because they have not been converted to use the new
|
||||||
# interface.
|
# interface.
|
||||||
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon s3v \
|
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon s3v \
|
||||||
savage sis tdfx trident unichrome ffb
|
savage sis tdfx trident unichrome ffb
|
||||||
|
|||||||
@@ -3,17 +3,8 @@
|
|||||||
include $(TOP)/configs/linux
|
include $(TOP)/configs/linux
|
||||||
|
|
||||||
CONFIG_NAME = linux-fbdev
|
CONFIG_NAME = linux-fbdev
|
||||||
|
DRIVER_DIRS = fbdev
|
||||||
|
|
||||||
CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DUSE_GLFBDEV_DRIVER
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
SRC_DIRS = mesa glu glut/fbdev
|
|
||||||
DRIVER_DIRS = fbdev osmesa
|
|
||||||
PROGRAM_DIRS = fbdev demos redbook samples
|
|
||||||
|
|
||||||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread
|
|
||||||
OSMESA_LIB_DEPS = -lm -lpthread
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lgpm -lm
|
|
||||||
|
|
||||||
|
PROGRAM_DIRS = fbdev
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE
|
|||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ ARCH_FLAGS ?=
|
|||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE \
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
-DGLX_INDIRECT_RENDERING \
|
-DPTHREADS -DHAVE_ALIAS
|
||||||
-DPTHREADS -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
X11_INCLUDES = -I/usr/X11R6/include
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
@@ -33,9 +32,6 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ CXX = g++
|
|||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
SRC_DIRS = mesa glu
|
SRC_DIRS = mesa glu
|
||||||
@@ -25,4 +22,4 @@ PROGRAM_DIRS = osdemos
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
OSMESA_LIB_DEPS = -lm -lpthread
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
||||||
APP_LIB_DEPS = -lm -lpthread
|
APP_LIB_DEPS = -lOSMesa -lGLU
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ CXX = g++
|
|||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library names
|
# Library names
|
||||||
OSMESA_LIB = OSMesa16
|
OSMESA_LIB = OSMesa16
|
||||||
@@ -28,4 +25,4 @@ PROGRAM_DIRS =
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
OSMESA_LIB_DEPS = -lm -lpthread
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
||||||
APP_LIB_DEPS = -lm -lpthread
|
APP_LIB_DEPS = -lOSMesa16
|
||||||
|
|||||||
@@ -10,11 +10,7 @@ CXX = g++
|
|||||||
CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library names
|
# Library names
|
||||||
OSMESA_LIB = OSMesa16
|
OSMESA_LIB = OSMesa16
|
||||||
@@ -29,4 +25,4 @@ PROGRAM_DIRS =
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
OSMESA_LIB_DEPS = -lm -lpthread
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
APP_LIB_DEPS = -lm -lpthread
|
APP_LIB_DEPS = -lOSMesa16
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ CXX = g++
|
|||||||
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
|
||||||
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library names
|
# Library names
|
||||||
OSMESA_LIB = OSMesa32
|
OSMESA_LIB = OSMesa32
|
||||||
@@ -28,4 +25,4 @@ PROGRAM_DIRS =
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
OSMESA_LIB_DEPS = -lm -lpthread
|
OSMESA_LIB_DEPS = -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
|
||||||
APP_LIB_DEPS = -lm -lpthread
|
APP_LIB_DEPS = -lOSMesa32
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ include $(TOP)/configs/linux-ppc
|
|||||||
CONFIG_NAME = linux-ppc-static
|
CONFIG_NAME = linux-ppc-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
|
|||||||
@@ -15,31 +15,20 @@ PIC_FLAGS = -fPIC
|
|||||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||||
ARCH_FLAGS ?=
|
ARCH_FLAGS ?=
|
||||||
|
|
||||||
# DRM and pciaccess
|
|
||||||
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
|
||||||
LIBDRM_LIB = `pkg-config --libs libdrm`
|
|
||||||
PCIACCESS_CFLAGS = `pkg-config --cflags pciaccess`
|
|
||||||
PCIACCESS_LIB = `pkg-config --libs pciaccess`
|
|
||||||
|
|
||||||
|
|
||||||
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
|
||||||
-D_BSD_SOURCE -D_GNU_SOURCE -DHAVE_POSIX_MEMALIGN \
|
-D_BSD_SOURCE -D_GNU_SOURCE \
|
||||||
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
-DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DDRM_USE_MALLOC -DIN_DRI_DRIVER
|
||||||
-DHAVE_ALIAS
|
|
||||||
|
|
||||||
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
$(ASM_FLAGS) -std=c99 -ffast-math
|
$(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
|
|
||||||
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES =
|
ASM_SOURCES =
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB)
|
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR)
|
||||||
GL_LIB_DEPS = -lm -lpthread -ldl
|
GL_LIB_DEPS = -lm -lpthread -ldl
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
||||||
@@ -50,5 +39,5 @@ SRC_DIRS = glx/mini mesa glu glut/mini
|
|||||||
DRIVER_DIRS = dri
|
DRIVER_DIRS = dri
|
||||||
PROGRAM_DIRS = miniglx
|
PROGRAM_DIRS = miniglx
|
||||||
|
|
||||||
#DRI_DIRS = ffb gamma sis savage tdfx unichrome fb
|
#DRI_DIRS = ffb gamma sis savage
|
||||||
DRI_DIRS = i810 i915tex i915 mach64 mga r128 r200 radeon
|
DRI_DIRS = i810 i915 mach64 mga r128 r200 radeon tdfx unichrome fb
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ include $(TOP)/configs/linux-solo
|
|||||||
|
|
||||||
CONFIG_NAME = linux-solo-x86
|
CONFIG_NAME = linux-solo-x86
|
||||||
|
|
||||||
|
# Unnecessary on x86, generally.
|
||||||
|
PIC_FLAGS =
|
||||||
|
|
||||||
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
||||||
ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
ASM_API = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -1,9 +1,30 @@
|
|||||||
# Configuration for Linux on Sparc
|
# Configuration for Linux on Sparc
|
||||||
|
|
||||||
include $(TOP)/configs/linux
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
CONFIG_NAME = linux-sparc
|
CONFIG_NAME = linux-sparc
|
||||||
|
|
||||||
#ASM_FLAGS = -DUSE_SPARC_ASM
|
# Compiler and flags
|
||||||
#ASM_SOURCES = $(SPARC_SOURCES)
|
CC = gcc
|
||||||
#ASM_API = $(SPARC_API)
|
CXX = g++
|
||||||
|
|
||||||
|
WARN_FLAGS = -Wall
|
||||||
|
OPT_FLAGS = -O2
|
||||||
|
PIC_FLAGS = -fPIC
|
||||||
|
|
||||||
|
DEFINES = -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM
|
||||||
|
|
||||||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||||||
|
|
||||||
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
||||||
|
$(ASM_FLAGS) -std=c99 -ffast-math
|
||||||
|
|
||||||
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
EXTRA_LIB_PATH=-L/usr/X11R6/lib
|
||||||
|
|
||||||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
||||||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
|
||||||
|
|||||||
@@ -1,7 +1,17 @@
|
|||||||
# Configuration for Linux on Sparc5
|
# Configuration for Linux on Sparc5
|
||||||
|
|
||||||
include $(TOP)/configs/linux-sparc
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
CONFIG_NAME = linux-sparc5
|
CONFIG_NAME = linux-sparc5
|
||||||
|
|
||||||
ARCH_FLAGS += -mcpu=ultrasparc
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -mcpu=ultrasparc -O2 -ffast-math -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -mcpu=ultrasparc -O2 -ffast-math -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ include $(TOP)/configs/linux
|
|||||||
CONFIG_NAME = linux-static
|
CONFIG_NAME = linux-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -20,7 +19,3 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
|
|
||||||
# Need to specify all libraries we may need
|
|
||||||
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
|
||||||
-lstdc++ -lm
|
|
||||||
|
|||||||
@@ -1,7 +1,17 @@
|
|||||||
# Configuration for Linux on UltraSparc
|
# Configuration for Linux on UltraSparc
|
||||||
|
|
||||||
include $(TOP)/configs/linux-sparc
|
include $(TOP)/configs/default
|
||||||
|
|
||||||
CONFIG_NAME = linux-ultrasparc
|
CONFIG_NAME = linux-ultrasparc
|
||||||
|
|
||||||
ARCH_FLAGS += -mv8 -mtune=ultrasparc
|
# Compiler and flags
|
||||||
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -mv8 -O2 -mtune=ultrasparc -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM
|
||||||
|
CXXFLAGS = -mv8 -O2 -mtune=ultrasparc -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE
|
||||||
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
|
||||||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11
|
||||||
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR)-l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ include $(TOP)/configs/linux-x86-64
|
|||||||
CONFIG_NAME = linux-x86-64-static
|
CONFIG_NAME = linux-x86-64-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -20,5 +19,5 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \
|
||||||
-lstdc++ -lm
|
$(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
ASM_SOURCES = $(X86_SOURCES)
|
ASM_SOURCES = $(X86_SOURCES)
|
||||||
ASM_API = $(X86_API)
|
ASM_API = $(X86_API)
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ include $(TOP)/configs/linux-x86
|
|||||||
CONFIG_NAME = linux-x86-static
|
CONFIG_NAME = linux-x86-static
|
||||||
|
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
PIC_FLAGS =
|
|
||||||
|
|
||||||
# Library names (actual file names)
|
# Library names (actual file names)
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
@@ -20,5 +19,5 @@ OSMESA_LIB_DEPS =
|
|||||||
GLU_LIB_DEPS =
|
GLU_LIB_DEPS =
|
||||||
GLUT_LIB_DEPS =
|
GLUT_LIB_DEPS =
|
||||||
GLW_LIB_DEPS =
|
GLW_LIB_DEPS =
|
||||||
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \
|
||||||
-lstdc++ -lm
|
$(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm
|
||||||
|
|||||||
@@ -12,6 +12,3 @@ CXXFLAGS = -O2 -fPIC
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ CXX = g++
|
|||||||
CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
|
CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
|
||||||
CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100
|
CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
|
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
|
||||||
OSMESA_LIB_DEPS = -lm
|
OSMESA_LIB_DEPS = -lm
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM
|
|||||||
CXXFLAGS = -O3 -march=i486 -fPIC
|
CXXFLAGS = -O3 -march=i486 -fPIC
|
||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ CXXFLAGS = -O3 -march=i486 -fPIC
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm
|
||||||
|
|||||||
@@ -11,9 +11,5 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1
|
|||||||
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
|
CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4
|
||||||
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
|
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,6 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
|
|||||||
|
|
||||||
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Library/program dependencies
|
# Library/program dependencies
|
||||||
EXTRA_LIB_PATH=-L/usr/openwin/lib
|
EXTRA_LIB_PATH=-L/usr/openwin/lib
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
# Configuration for SunOS 5, SPARC V9 and cc/g++ (for C and C++ sources)
|
|
||||||
|
|
||||||
include $(TOP)/configs/default
|
|
||||||
|
|
||||||
CONFIG_NAME = sunos5-v9-cc-g++
|
|
||||||
|
|
||||||
MKLIB_OPTIONS = -cplusplus
|
|
||||||
|
|
||||||
LIB_DIR = lib64
|
|
||||||
|
|
||||||
# Compiler and flags
|
|
||||||
CC = cc
|
|
||||||
CXX = g++
|
|
||||||
|
|
||||||
CXX_WARN_FLAGS = -Wall
|
|
||||||
CXX_PIC_FLAGS = -fPIC
|
|
||||||
CXX_OPT_FLAGS = -O3 -m64 -mcpu=ultrasparc -mv8plus -mvis -g -fomit-frame-pointer -pipe
|
|
||||||
CXX_ARCH_FLAGS = -m64
|
|
||||||
|
|
||||||
|
|
||||||
CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS) $(CXX_ARCH_FLAGS) $(DEFINES) \
|
|
||||||
-I/usr/openwin/include
|
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS
|
|
||||||
#CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS
|
|
||||||
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
|
|
||||||
|
|
||||||
GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -lm -lpthread
|
|
||||||
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCstd -lCrun
|
|
||||||
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
|
||||||
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
|
|
||||||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
|
||||||
@@ -12,10 +12,6 @@ CXXFLAGS = -pedantic -O2
|
|||||||
GLUT_CFLAGS = -fexceptions
|
GLUT_CFLAGS = -fexceptions
|
||||||
MKLIB_OPTIONS = -static
|
MKLIB_OPTIONS = -static
|
||||||
|
|
||||||
# Work around aliasing bugs - developers should comment this out
|
|
||||||
CFLAGS += -fno-strict-aliasing
|
|
||||||
CXXFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
GL_LIB_NAME = libGL.a
|
GL_LIB_NAME = libGL.a
|
||||||
GLU_LIB_NAME = libGLU.a
|
GLU_LIB_NAME = libGLU.a
|
||||||
GLUT_LIB_NAME = libglut.a
|
GLUT_LIB_NAME = libglut.a
|
||||||
|
|||||||
1085
configure.ac
1085
configure.ac
File diff suppressed because it is too large
Load Diff
@@ -19,4 +19,4 @@ all :
|
|||||||
$(MMS)$(MMSQUALIFIERS)
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
set default [-.xdemos]
|
set default [-.xdemos]
|
||||||
$(MMS)$(MMSQUALIFIERS)
|
$(MMS)$(MMSQUALIFIERS)
|
||||||
if f$search("[-]tests.DIR") .nes. "" then pipe set default [-.tests] ; $(MMS)$(MMSQUALIFIERS)
|
if f$search("[-]test.DIR") .nes. "" then pipe set default [-.test] ; $(MMS)$(MMSQUALIFIERS)
|
||||||
|
|||||||
@@ -1,805 +0,0 @@
|
|||||||
Name
|
|
||||||
|
|
||||||
MESA_texture_array
|
|
||||||
|
|
||||||
Name Strings
|
|
||||||
|
|
||||||
GL_MESA_texture_array
|
|
||||||
|
|
||||||
Contact
|
|
||||||
|
|
||||||
Ian Romanick, IBM (idr 'at' us.ibm.com)
|
|
||||||
|
|
||||||
IP Status
|
|
||||||
|
|
||||||
No known IP issues.
|
|
||||||
|
|
||||||
Status
|
|
||||||
|
|
||||||
Shipping in Mesa 7.1
|
|
||||||
|
|
||||||
Version
|
|
||||||
|
|
||||||
$Date: 2007/05/16$ $Revision: 0.4$
|
|
||||||
|
|
||||||
Number
|
|
||||||
|
|
||||||
TBD
|
|
||||||
|
|
||||||
Dependencies
|
|
||||||
|
|
||||||
OpenGL 1.2 or GL_EXT_texture3D is required.
|
|
||||||
|
|
||||||
Support for ARB_fragment_program is assumed, but not required.
|
|
||||||
|
|
||||||
Support for ARB_fragment_program_shadow is assumed, but not required.
|
|
||||||
|
|
||||||
Support for EXT_framebuffer_object is assumed, but not required.
|
|
||||||
|
|
||||||
Written based on the wording of the OpenGL 2.0 specification and
|
|
||||||
ARB_fragment_program_shadow but not dependent on them.
|
|
||||||
|
|
||||||
Overview
|
|
||||||
|
|
||||||
There are a number of circumstances where an application may wish to
|
|
||||||
blend two textures out of a larger set of textures. Moreover, in some
|
|
||||||
cases the selected textures may vary on a per-fragment basis within
|
|
||||||
a polygon. Several examples include:
|
|
||||||
|
|
||||||
1. High dynamic range textures. The application stores several
|
|
||||||
different "exposures" of an image as different textures. On a
|
|
||||||
per-fragment basis, the application selects which exposures are
|
|
||||||
used.
|
|
||||||
|
|
||||||
2. A terrain engine where the altitude of a point determines the
|
|
||||||
texture applied to it. If the transition is from beach sand to
|
|
||||||
grass to rocks to snow, the application will store each texture
|
|
||||||
in a different texture map, and dynamically select which two
|
|
||||||
textures to blend at run-time.
|
|
||||||
|
|
||||||
3. Storing short video clips in textures. Each depth slice is a
|
|
||||||
single frame of video.
|
|
||||||
|
|
||||||
Several solutions to this problem have been proposed, but they either
|
|
||||||
involve using a separate texture unit for each texture map or using 3D
|
|
||||||
textures without mipmaps. Both of these options have major drawbacks.
|
|
||||||
|
|
||||||
This extension provides a third alternative that eliminates the major
|
|
||||||
drawbacks of both previous methods. A new texture target,
|
|
||||||
TEXTURE_2D_ARRAY, is added that functions identically to TEXTURE_3D in
|
|
||||||
all aspects except the sizes of the non-base level images. In
|
|
||||||
traditional 3D texturing, the size of the N+1 LOD is half the size
|
|
||||||
of the N LOD in all three dimensions. For the TEXTURE_2D_ARRAY target,
|
|
||||||
the height and width of the N+1 LOD is halved, but the depth is the
|
|
||||||
same for all levels of detail. The texture then becomes an array of
|
|
||||||
2D textures. The per-fragment texel is selected by the R texture
|
|
||||||
coordinate.
|
|
||||||
|
|
||||||
References:
|
|
||||||
|
|
||||||
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=011557
|
|
||||||
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=000516
|
|
||||||
http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=3;t=011903
|
|
||||||
http://www.delphi3d.net/articles/viewarticle.php?article=terraintex.htm
|
|
||||||
|
|
||||||
New Procedures and Functions
|
|
||||||
|
|
||||||
All functions come directly from EXT_texture_array.
|
|
||||||
|
|
||||||
void FramebufferTextureLayerEXT(enum target, enum attachment,
|
|
||||||
uint texture, int level, int layer);
|
|
||||||
|
|
||||||
New Tokens
|
|
||||||
|
|
||||||
All token names and values come directly from EXT_texture_array.
|
|
||||||
|
|
||||||
Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, by
|
|
||||||
the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and
|
|
||||||
GetDoublev, and by the <target> parameter of TexImage3D, GetTexImage,
|
|
||||||
GetTexLevelParameteriv, GetTexLevelParameterfv, GetTexParameteriv, and
|
|
||||||
GetTexParameterfv:
|
|
||||||
|
|
||||||
TEXTURE_1D_ARRAY_EXT 0x8C18
|
|
||||||
TEXTURE_2D_ARRAY_EXT 0x8C1A
|
|
||||||
|
|
||||||
Accepted by the <target> parameter of TexImage2D, TexSubImage2D,
|
|
||||||
CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D,
|
|
||||||
CompressedTexSubImage2D, GetTexLevelParameteriv, and
|
|
||||||
GetTexLevelParameterfv:
|
|
||||||
|
|
||||||
TEXTURE_1D_ARRAY_EXT
|
|
||||||
PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19
|
|
||||||
|
|
||||||
Accepted by the <target> parameter of TexImage3D, TexSubImage3D,
|
|
||||||
CopyTexSubImage3D, CompressedTexImage3D, CompressedTexSubImage3D,
|
|
||||||
GetTexLevelParameteriv, and GetTexLevelParameterfv:
|
|
||||||
|
|
||||||
TEXTURE_2D_ARRAY_EXT
|
|
||||||
PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B
|
|
||||||
|
|
||||||
Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
|
|
||||||
GetFloatv, and GetDoublev
|
|
||||||
|
|
||||||
TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C
|
|
||||||
TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D
|
|
||||||
MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF
|
|
||||||
|
|
||||||
Accepted by the <param> parameter of TexParameterf, TexParameteri,
|
|
||||||
TexParameterfv, and TexParameteriv when the <pname> parameter is
|
|
||||||
TEXTURE_COMPARE_MODE_ARB:
|
|
||||||
|
|
||||||
COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E
|
|
||||||
|
|
||||||
(Note: COMPARE_REF_DEPTH_TO_TEXTURE_EXT is simply an alias for the
|
|
||||||
existing COMPARE_R_TO_TEXTURE token in OpenGL 2.0; the alternate name
|
|
||||||
reflects the fact that the R coordinate is not always used.)
|
|
||||||
|
|
||||||
Accepted by the <internalformat> parameter of TexImage3D and
|
|
||||||
CompressedTexImage3D, and by the <format> parameter of
|
|
||||||
CompressedTexSubImage3D:
|
|
||||||
|
|
||||||
COMPRESSED_RGB_S3TC_DXT1_EXT
|
|
||||||
COMPRESSED_RGBA_S3TC_DXT1_EXT
|
|
||||||
COMPRESSED_RGBA_S3TC_DXT3_EXT
|
|
||||||
COMPRESSED_RGBA_S3TC_DXT5_EXT
|
|
||||||
|
|
||||||
Accepted by the <pname> parameter of
|
|
||||||
GetFramebufferAttachmentParameterivEXT:
|
|
||||||
|
|
||||||
FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
|
|
||||||
|
|
||||||
(Note: FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER is simply an alias for the
|
|
||||||
FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT token provided in
|
|
||||||
EXT_framebuffer_object. This extension generalizes the notion of
|
|
||||||
"<zoffset>" to include layers of an array texture.)
|
|
||||||
|
|
||||||
Additions to Chapter 2 of the OpenGL 2.0 Specification (OpenGL Operation)
|
|
||||||
|
|
||||||
None
|
|
||||||
|
|
||||||
Additions to Chapter 3 of the OpenGL 2.0 Specification (Rasterization)
|
|
||||||
|
|
||||||
-- Section 3.8.1 "Texture Image Specification"
|
|
||||||
|
|
||||||
Change the first paragraph (page 150) to say (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"The command
|
|
||||||
|
|
||||||
void TexImage3D(enum target, int level, int internalformat,
|
|
||||||
sizei width, sizei height, sizei depth, int border,
|
|
||||||
enum format, enum type, void *data);
|
|
||||||
|
|
||||||
is used to specify a three-dimensional texture image. target must be one
|
|
||||||
one of TEXTURE_3D for a three-dimensional texture or
|
|
||||||
TEXTURE_2D_ARRAY_EXT for an two-dimensional array texture.
|
|
||||||
Additionally, target may be either PROXY_TEXTURE_3D for a
|
|
||||||
three-dimensional proxy texture, or PROXY_TEXTURE_2D_ARRAY_EXT for a
|
|
||||||
two-dimensional proxy array texture."
|
|
||||||
|
|
||||||
Change the fourth paragraph on page 151 to say (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"Textures with a base internal format of DEPTH_COMPONENT are supported
|
|
||||||
by texture image specification commands only if target is TEXTURE_1D,
|
|
||||||
TEXTURE_2D, TEXTURE_1D_ARRAY_EXT, TEXTURE_2D_ARRAY_EXT,
|
|
||||||
PROXY_TEXTURE_1D, PROXY_TEXTURE_2D, PROXY_TEXTURE_1D_ARRAY_EXT, or
|
|
||||||
PROXY_TEXTURE_2D_ARRAY_EXT. Using this format in conjunction with any
|
|
||||||
other target will result in an INVALID_OPERATION error."
|
|
||||||
|
|
||||||
|
|
||||||
Change the fourth paragraph on page 156 to say (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"The command
|
|
||||||
|
|
||||||
void TexImage2D(enum target, int level,
|
|
||||||
int internalformat, sizei width, sizei height,
|
|
||||||
int border, enum format, enum type, void *data);
|
|
||||||
|
|
||||||
is used to specify a two-dimensional texture image. target must be one
|
|
||||||
of TEXTURE_2D for a two-dimensional texture, TEXTURE_1D_ARRAY_EXT for a
|
|
||||||
one-dimensional array texture, or one of TEXTURE_CUBE_MAP_POSITIVE_X,
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_X, TEXTURE_CUBE_MAP_POSITIVE_Y,
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_Y, TEXTURE_CUBE_MAP_POSITIVE_Z, or
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_Z for a cube map texture. Additionally,
|
|
||||||
target may be either PROXY_TEXTURE_2D for a two-dimensional proxy
|
|
||||||
texture, PROXY_TEXTURE_1D_ARRAY_EXT for a one-dimensional proxy array
|
|
||||||
texture, or PROXY TEXTURE_CUBE_MAP for a cube map proxy texture in the
|
|
||||||
special case discussed in section 3.8.11. The other parameters match
|
|
||||||
the corresponding parameters of TexImage3D.
|
|
||||||
|
|
||||||
For the purposes of decoding the texture image, TexImage2D is
|
|
||||||
equivalent to calling TexImage3D with corresponding arguments and depth
|
|
||||||
of 1, except that
|
|
||||||
|
|
||||||
* The border depth, d_b, is zero, and the depth of the image is
|
|
||||||
always 1 regardless of the value of border.
|
|
||||||
|
|
||||||
* The border height, h_b, is zero if <target> is
|
|
||||||
TEXTURE_1D_ARRAY_EXT, and <border> otherwise.
|
|
||||||
|
|
||||||
* Convolution will be performed on the image (possibly changing its
|
|
||||||
width and height) if SEPARABLE 2D or CONVOLUTION 2D is enabled.
|
|
||||||
|
|
||||||
* UNPACK SKIP IMAGES is ignored."
|
|
||||||
|
|
||||||
-- Section 3.8.2 "Alternate Texture Image Specification Commands"
|
|
||||||
|
|
||||||
Change the second paragraph (page 159) (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"The command
|
|
||||||
|
|
||||||
void CopyTexImage2D(enum target, int level,
|
|
||||||
enum internalformat, int x, int y, sizei width,
|
|
||||||
sizei height, int border);
|
|
||||||
|
|
||||||
defines a two-dimensional texture image in exactly the manner of
|
|
||||||
TexImage2D, except that the image data are taken from the framebuffer
|
|
||||||
rather than from client memory. Currently, target must be one of
|
|
||||||
TEXTURE_2D, TEXTURE_1D_ARRAY_EXT, TEXTURE_CUBE_MAP_POSITIVE_X,
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_X, TEXTURE_CUBE MAP_POSITIVE_Y,
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_Y, TEXTURE_CUBE_MAP_POSITIVE_Z, or
|
|
||||||
TEXTURE_CUBE_MAP_NEGATIVE_Z.
|
|
||||||
|
|
||||||
|
|
||||||
Change the last paragraph on page 160 to say (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"Currently the target arguments of TexSubImage1D and CopyTexSubImage1D
|
|
||||||
must be TEXTURE_1D, the target arguments of TexSubImage2D and
|
|
||||||
CopyTexSubImage2D must be one of TEXTURE_2D, TEXTURE_1D_ARRAY_EXT,
|
|
||||||
TEXTURE_CUBE_MAP_POSITIVE_X, TEXTURE_CUBE_MAP_NEGATIVE_X,
|
|
||||||
TEXTURE_CUBE_MAP_POSITIVE_Y, TEXTURE_CUBE_MAP_NEGATIVE_Y,
|
|
||||||
TEXTURE_CUBE_MAP_POSITIVE_Z, or TEXTURE_CUBE_MAP_NEGATIVE_Z, and the
|
|
||||||
target arguments of TexSubImage3D and CopyTexSubImage3D must be
|
|
||||||
TEXTURE_3D or TEXTURE_2D_ARRAY_EXT. ..."
|
|
||||||
|
|
||||||
|
|
||||||
-- Section 3.8.4 "Texture Parameters"
|
|
||||||
|
|
||||||
Change the first paragraph (page 166) to say:
|
|
||||||
|
|
||||||
"Various parameters control how the texel array is treated when
|
|
||||||
specified or changed, and when applied to a fragment. Each parameter is
|
|
||||||
set by calling
|
|
||||||
|
|
||||||
void TexParameter{if}(enum target, enum pname, T param);
|
|
||||||
void TexParameter{if}v(enum target, enum pname, T params);
|
|
||||||
|
|
||||||
target is the target, either TEXTURE_1D, TEXTURE_2D, TEXTURE_3D,
|
|
||||||
TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, or TEXTURE_2D_ARRAY_EXT."
|
|
||||||
|
|
||||||
|
|
||||||
-- Section 3.8.8 "Texture Minification" in the section "Scale Factor and Level of Detail"
|
|
||||||
|
|
||||||
Change the first paragraph (page 172) to say:
|
|
||||||
|
|
||||||
"Let s(x,y) be the function that associates an s texture coordinate
|
|
||||||
with each set of window coordinates (x,y) that lie within a primitive;
|
|
||||||
define t(x,y) and r(x,y) analogously. Let u(x,y) = w_t * s(x,y),
|
|
||||||
v(x,y) = h_t * t(x,y), and w(x,y) = d_t * r(x,y), where w_t, h_t,
|
|
||||||
and d_t are as defined by equations 3.15, 3.16, and 3.17 with
|
|
||||||
w_s, h_s, and d_s equal to the width, height, and depth of the
|
|
||||||
image array whose level is level_base. For a one-dimensional
|
|
||||||
texture or a one-dimensional array texture, define v(x,y) = 0 and
|
|
||||||
w(x,y) = 0; for a two-dimensional texture or a two-dimensional array
|
|
||||||
texture, define w(x,y) = 0..."
|
|
||||||
|
|
||||||
-- Section 3.8.8 "Texture Minification" in the section "Mipmapping"
|
|
||||||
|
|
||||||
Change the third paragraph (page 174) to say:
|
|
||||||
|
|
||||||
"For a two-dimensional texture, two-dimensional array texture, or
|
|
||||||
cube map texture,"
|
|
||||||
|
|
||||||
Change the fourth paragraph (page 174) to say:
|
|
||||||
|
|
||||||
"And for a one-dimensional texture or a one-dimensional array texture,"
|
|
||||||
|
|
||||||
After the first paragraph (page 175) add:
|
|
||||||
|
|
||||||
"For one-dimensional array textures, h_b and d_b are treated as 1,
|
|
||||||
regardless of the actual values, when performing mipmap calculations.
|
|
||||||
For two-dimensional array textures, d_b is always treated as one,
|
|
||||||
regardless of the actual value, when performing mipmap calculations."
|
|
||||||
|
|
||||||
-- Section 3.8.8 "Automatic Mipmap Generation" in the section "Mipmapping"
|
|
||||||
|
|
||||||
Change the third paragraph (page 176) to say (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"The contents of the derived arrays are computed by repeated, filtered
|
|
||||||
reduction of the level_base array. For one- and two-dimensional array
|
|
||||||
textures, each layer is filtered independently. ..."
|
|
||||||
|
|
||||||
-- Section 3.8.8 "Manual Mipmap Generation" in the section "Mipmapping"
|
|
||||||
|
|
||||||
Change first paragraph to say (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"Mipmaps can be generated manually with the command
|
|
||||||
|
|
||||||
void GenerateMipmapEXT(enum target);
|
|
||||||
|
|
||||||
where <target> is one of TEXTURE_1D, TEXTURE_2D, TEXTURE_CUBE_MAP,
|
|
||||||
TEXTURE_3D, TEXTURE_1D_ARRAY, or TEXTURE_2D_ARRAY. Mipmap generation
|
|
||||||
affects the texture image attached to <target>. ..."
|
|
||||||
|
|
||||||
-- Section 3.8.10 "Texture Completeness"
|
|
||||||
|
|
||||||
Change the second paragaph (page 177) to say (spec changes identical
|
|
||||||
to EXT_texture_array):
|
|
||||||
|
|
||||||
"For one-, two-, or three-dimensional textures and one- or
|
|
||||||
two-dimensional array textures, a texture is complete if the following
|
|
||||||
conditions all hold true:"
|
|
||||||
|
|
||||||
-- Section 3.8.11 "Texture State and Proxy State"
|
|
||||||
|
|
||||||
Change the second and third paragraphs (page 179) to say (spec changes
|
|
||||||
identical to EXT_texture_array):
|
|
||||||
|
|
||||||
"In addition to image arrays for one-, two-, and three-dimensional
|
|
||||||
textures, one- and two-dimensional array textures, and the six image
|
|
||||||
arrays for the cube map texture, partially instantiated image arrays
|
|
||||||
are maintained for one-, two-, and three-dimensional textures and one-
|
|
||||||
and two-dimensional array textures. Additionally, a single proxy image
|
|
||||||
array is maintained for the cube map texture. Each proxy image array
|
|
||||||
includes width, height, depth, border width, and internal format state
|
|
||||||
values, as well as state for the red, green, blue, alpha, luminance,
|
|
||||||
and intensity component resolutions. Proxy image arrays do not include
|
|
||||||
image data, nor do they include texture properties. When TexImage3D is
|
|
||||||
executed with target specified as PROXY_TEXTURE_3D, the
|
|
||||||
three-dimensional proxy state values of the specified level-of-detail
|
|
||||||
are recomputed and updated. If the image array would not be supported
|
|
||||||
by TexImage3D called with target set to TEXTURE 3D, no error is
|
|
||||||
generated, but the proxy width, height, depth, border width, and
|
|
||||||
component resolutions are set to zero. If the image array would be
|
|
||||||
supported by such a call to TexImage3D, the proxy state values are set
|
|
||||||
exactly as though the actual image array were being specified. No pixel
|
|
||||||
data are transferred or processed in either case.
|
|
||||||
|
|
||||||
Proxy arrays for one- and two-dimensional textures and one- and
|
|
||||||
two-dimensional array textures are operated on in the same way when
|
|
||||||
TexImage1D is executed with target specified as PROXY_TEXTURE_1D,
|
|
||||||
TexImage2D is executed with target specified as PROXY_TEXTURE_2D or
|
|
||||||
PROXY_TEXTURE_1D_ARRAY_EXT, or TexImage3D is executed with target
|
|
||||||
specified as PROXY_TETXURE_2D_ARRAY_EXT."
|
|
||||||
|
|
||||||
-- Section 3.8.12 "Texture Objects"
|
|
||||||
|
|
||||||
Change section (page 180) to say (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"In addition to the default textures TEXTURE_1D, TEXTURE_2D,
|
|
||||||
TEXTURE_3D, TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, and TEXTURE_2D_EXT,
|
|
||||||
named one-, two-, and three-dimensional, cube map, and one- and
|
|
||||||
two-dimensional array texture objects can be created and operated upon.
|
|
||||||
The name space for texture objects is the unsigned integers, with zero
|
|
||||||
reserved by the GL.
|
|
||||||
|
|
||||||
A texture object is created by binding an unused name to TEXTURE_1D,
|
|
||||||
TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, or
|
|
||||||
TEXTURE_2D_ARRAY_EXT. The binding is effected by calling
|
|
||||||
|
|
||||||
void BindTexture(enum target, uint texture);
|
|
||||||
|
|
||||||
with <target> set to the desired texture target and <texture> set to
|
|
||||||
the unused name. The resulting texture object is a new state vector,
|
|
||||||
comprising all the state values listed in section 3.8.11, set to the
|
|
||||||
same initial values. If the new texture object is bound to TEXTURE_1D,
|
|
||||||
TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, or
|
|
||||||
TEXTURE_2D_ARRAY_EXT, it is and remains a one-, two-,
|
|
||||||
three-dimensional, cube map, one- or two-dimensional array texture
|
|
||||||
respectively until it is deleted.
|
|
||||||
|
|
||||||
BindTexture may also be used to bind an existing texture object to
|
|
||||||
either TEXTURE_1D, TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP,
|
|
||||||
TEXTURE_1D_ARRAY_EXT, or TEXTURE_2D_ARRAY_EXT. The error
|
|
||||||
INVALID_OPERATION is generated if an attempt is made to bind a texture
|
|
||||||
object of different dimensionality than the specified target. If the
|
|
||||||
bind is successful no change is made to the state of the bound texture
|
|
||||||
object, and any previous binding to target is broken.
|
|
||||||
|
|
||||||
While a texture object is bound, GL operations on the target to which
|
|
||||||
it is bound affect the bound object, and queries of the target to which
|
|
||||||
it is bound return state from the bound object. If texture mapping of
|
|
||||||
the dimensionality of the target to which a texture object is bound is
|
|
||||||
enabled, the state of the bound texture object directs the texturing
|
|
||||||
operation.
|
|
||||||
|
|
||||||
In the initial state, TEXTURE_1D, TEXTURE_2D, TEXTURE_3D,
|
|
||||||
TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, and TEXTURE_2D_ARRAY_EXT have
|
|
||||||
one-, two-, three-dimensional, cube map, and one- and two-dimensional
|
|
||||||
array texture state vectors respectively associated with them. In order
|
|
||||||
that access to these initial textures not be lost, they are treated as
|
|
||||||
texture objects all of whose names are 0. The initial one-, two-,
|
|
||||||
three-dimensional, cube map, one- and two-dimensional array textures
|
|
||||||
are therefore operated upon, queried, and applied as TEXTURE_1D,
|
|
||||||
TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, and
|
|
||||||
TEXTURE_2D_ARRAY_EXT respectively while 0 is bound to the corresponding
|
|
||||||
targets.
|
|
||||||
|
|
||||||
Change second paragraph on page 181 to say (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"... If a texture that is currently bound to one of the targets
|
|
||||||
TEXTURE_1D, TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP,
|
|
||||||
TEXTURE_1D_ARRAY_EXT, or TEXTURE_2D_ARRAY_EXT is deleted, it is as
|
|
||||||
though BindTexture had been executed with the same target and texture
|
|
||||||
zero. ..."
|
|
||||||
|
|
||||||
Change second paragraph on page 182 to say (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"The texture object name space, including the initial one-, two-, and
|
|
||||||
three dimensional, cube map, and one- and two-dimensional array texture
|
|
||||||
objects, is shared among all texture units. ..."
|
|
||||||
|
|
||||||
|
|
||||||
-- Section 3.8.14 "Depth Texture Comparison Modes" in "Texture Comparison Modes"
|
|
||||||
|
|
||||||
Change second through fourth paragraphs (page 188) to say:
|
|
||||||
|
|
||||||
"Let D_t be the depth texture value, in the range [0, 1]. For
|
|
||||||
texture lookups from one- and two-dimesional, rectangle, and
|
|
||||||
one-dimensional array targets, let R be the interpolated <r>
|
|
||||||
texture coordinate, clamped to the range [0, 1]. For texture lookups
|
|
||||||
from two-dimesional array texture targets, let R be the interpolated
|
|
||||||
<q> texture coordinate, clamped to the range [0, 1]. Then the
|
|
||||||
effective texture value L_t, I_t, or A_t is computed as follows:
|
|
||||||
|
|
||||||
If the value of TEXTURE_COMPARE_MODE is NONE, then
|
|
||||||
|
|
||||||
r = Dt
|
|
||||||
|
|
||||||
If the value of TEXTURE_COMPARE_MODE is
|
|
||||||
COMPARE_REF_DEPTH_TO_TEXTURE_EXT), then r depends on the texture
|
|
||||||
comparison function as shown in table 3.27."
|
|
||||||
|
|
||||||
-- Section 3.8.15 "Texture Application"
|
|
||||||
|
|
||||||
Change the first paragraph (page 189) to say:
|
|
||||||
|
|
||||||
"Texturing is enabled or disabled using the generic Enable and Disable
|
|
||||||
commands, respectively, with the symbolic constants TEXTURE_1D,
|
|
||||||
TEXTURE_2D, TEXTURE_3D, TEXTURE_CUBE_MAP, TEXTURE_1D_ARRAY_EXT, or
|
|
||||||
TEXTURE_2D_ARRAY_EXT to enable one-, two-, three-dimensional, cube
|
|
||||||
map, one-dimensional array, or two-dimensional array texture,
|
|
||||||
respectively. If both two- and one-dimensional textures are enabled,
|
|
||||||
the two-dimensional texture is used. If the three-dimensional and
|
|
||||||
either of the two- or one-dimensional textures is enabled, the
|
|
||||||
three-dimensional texture is used. If the cube map texture and any of
|
|
||||||
the three-, two-, or one-dimensional textures is enabled, then cube map
|
|
||||||
texturing is used. If one-dimensional array texture is enabled and any
|
|
||||||
of cube map, three-, two-, or one-dimensional textures is enabled,
|
|
||||||
one-dimensional array texturing is used. If two-dimensional array
|
|
||||||
texture is enabled and any of cube map, three-, two-, one-dimensional
|
|
||||||
textures or one-dimensional array texture is enabled, two-dimensional
|
|
||||||
array texturing is used..."
|
|
||||||
|
|
||||||
-- Section 3.11.2 of ARB_fragment_program (Fragment Program Grammar and Restrictions):
|
|
||||||
|
|
||||||
(mostly add to existing grammar rules)
|
|
||||||
|
|
||||||
<optionName> ::= "MESA_texture_array"
|
|
||||||
|
|
||||||
<texTarget> ::= "1D"
|
|
||||||
| "2D"
|
|
||||||
| "3D"
|
|
||||||
| "CUBE"
|
|
||||||
| "RECT"
|
|
||||||
| <arrayTarget> (if program option is present)
|
|
||||||
| <shadowTarget> (if program option is present)
|
|
||||||
|
|
||||||
<arrayTarget> ::= "ARRAY1D"
|
|
||||||
| "ARRAY2D"
|
|
||||||
|
|
||||||
<shadowTarget> ::= "SHADOW1D"
|
|
||||||
| "SHADOW2D"
|
|
||||||
| "SHADOWRECT"
|
|
||||||
| <shadowArrayTarget> (if program option is present)
|
|
||||||
|
|
||||||
<shadowArrayTarget> ::= "SHADOWARRAY1D"
|
|
||||||
| "SHADOWARRAY2D"
|
|
||||||
|
|
||||||
|
|
||||||
-- Add Section 3.11.4.5.4 "Texture Stack Option"
|
|
||||||
|
|
||||||
"If a fragment program specifies the "MESA_texture_array" program
|
|
||||||
option, the <texTarget> rule is modified to add the texture targets
|
|
||||||
ARRAY1D and ARRAY2D (See Section 3.11.2)."
|
|
||||||
|
|
||||||
-- Section 3.11.6 "Fragment Program Texture Instruction Set"
|
|
||||||
|
|
||||||
(replace 1st and 2nd paragraphs with the following paragraphs)
|
|
||||||
|
|
||||||
"The first three texture instructions described below specify the
|
|
||||||
mapping of 4-tuple input vectors to 4-tuple output vectors.
|
|
||||||
The sampling of the texture works as described in section 3.8,
|
|
||||||
except that texture environments and texture functions are not
|
|
||||||
applicable, and the texture enables hierarchy is replaced by explicit
|
|
||||||
references to the desired texture target (i.e., 1D, 2D, 3D, cube map,
|
|
||||||
rectangle, ARRAY1D, ARRAY2D). These texture instructions specify
|
|
||||||
how the 4-tuple is mapped into the coordinates used for sampling. The
|
|
||||||
following function is used to describe the texture sampling in the
|
|
||||||
descriptions below:
|
|
||||||
|
|
||||||
vec4 TextureSample(vec4 coord, float lodBias, int texImageUnit,
|
|
||||||
enum texTarget);
|
|
||||||
|
|
||||||
Note that not all four components of the texture coordinates <coord>
|
|
||||||
are used by all texture targets. Component usage for each <texTarget>
|
|
||||||
is defined in table X.
|
|
||||||
|
|
||||||
coordinates used
|
|
||||||
texTarget Texture Type s t r layer shadow
|
|
||||||
---------------- --------------------- ----- ----- ------
|
|
||||||
1D TEXTURE_1D x - - - -
|
|
||||||
2D TEXTURE_2D x y - - -
|
|
||||||
3D TEXTURE_3D x y z - -
|
|
||||||
CUBE TEXTURE_CUBE_MAP x y z - -
|
|
||||||
RECT TEXTURE_RECTANGLE_ARB x y - - -
|
|
||||||
ARRAY1D TEXTURE_1D_ARRAY_EXT x - - y -
|
|
||||||
ARRAY2D TEXTURE_2D_ARRAY_EXT x y - z -
|
|
||||||
SHADOW1D TEXTURE_1D x - - - z
|
|
||||||
SHADOW2D TEXTURE_2D x y - - z
|
|
||||||
SHADOWRECT TEXTURE_RECTANGLE_ARB x y - - z
|
|
||||||
SHADOWARRAY1D TEXTURE_1D_ARRAY_EXT x - - y z
|
|
||||||
SHADOWARRAY2D TEXTURE_2D_ARRAY_EXT x y - z w
|
|
||||||
|
|
||||||
Table X: Texture types accessed for each of the <texTarget>, and
|
|
||||||
coordinate mappings. The "coordinates used" column indicate the
|
|
||||||
input values used for each coordinate of the texture lookup, the
|
|
||||||
layer selector for array textures, and the reference value for
|
|
||||||
texture comparisons."
|
|
||||||
|
|
||||||
-- Section 3.11.6.2 "TXP: Project coordinate and map to color"
|
|
||||||
|
|
||||||
Add to the end of the section:
|
|
||||||
|
|
||||||
"A program will fail to load if the TXP instruction is used in
|
|
||||||
conjunction with the SHADOWARRAY2D target."
|
|
||||||
|
|
||||||
Additions to Chapter 4 of the OpenGL 2.0 Specification (Per-Fragment Operations)
|
|
||||||
|
|
||||||
-- Section 4.4.2.3 "Attaching Texture Images to a Framebuffer"
|
|
||||||
|
|
||||||
Add to the end of the section (spec changes identical to
|
|
||||||
EXT_texture_array):
|
|
||||||
|
|
||||||
"The command
|
|
||||||
|
|
||||||
void FramebufferTextureLayerEXT(enum target, enum attachment,
|
|
||||||
uint texture, int level, int layer);
|
|
||||||
|
|
||||||
operates identically to FramebufferTexture3DEXT, except that it
|
|
||||||
attaches a single layer of a three-dimensional texture or a one- or
|
|
||||||
two-dimensional array texture. <layer> is an integer indicating the
|
|
||||||
layer number, and is treated identically to the <zoffset> parameter in
|
|
||||||
FramebufferTexture3DEXT. The error INVALID_VALUE is generated if
|
|
||||||
<layer> is negative. The error INVALID_OPERATION is generated if
|
|
||||||
<texture> is non-zero and is not the name of a three dimensional
|
|
||||||
texture or one- or two-dimensional array texture. Unlike
|
|
||||||
FramebufferTexture3D, no <textarget> parameter is accepted.
|
|
||||||
|
|
||||||
If <texture> is non-zero and the command does not result in an error,
|
|
||||||
the framebuffer attachment state corresponding to <attachment> is
|
|
||||||
updated as in the other FramebufferTexture commands, except that
|
|
||||||
FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT is set to <layer>."
|
|
||||||
|
|
||||||
-- Section 4.4.4.1 "Framebuffer Attachment Completeness"
|
|
||||||
|
|
||||||
Add to the end of the list of completeness rules (spec changes
|
|
||||||
identical to EXT_texture_array):
|
|
||||||
|
|
||||||
"* If FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT is TEXTURE and
|
|
||||||
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT names a one- or
|
|
||||||
two-dimensional array texture, then
|
|
||||||
FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT must be smaller than the
|
|
||||||
number of layers in the texture."
|
|
||||||
|
|
||||||
Additions to Chapter 5 of the OpenGL 2.0 Specification (Special Functions)
|
|
||||||
|
|
||||||
-- Section 5.4 "Display Lists"
|
|
||||||
|
|
||||||
Change the first paragraphi on page 242 to say (spec changes
|
|
||||||
identical to EXT_texture_array):
|
|
||||||
|
|
||||||
"TexImage3D, TexImage2D, TexImage1D, Histogram, and ColorTable are
|
|
||||||
executed immediately when called with the corresponding proxy arguments
|
|
||||||
PROXY_TEXTURE_3D or PROXY_TEXTURE_2D_ARRAY_EXT; PROXY_TEXTURE_2D,
|
|
||||||
PROXY_TEXTURE_CUBE_MAP, or PROXY_TEXTURE_1D_ARRAY_EXT;
|
|
||||||
PROXY_TEXTURE_1D; PROXY_HISTOGRAM; and PROXY_COLOR_TABLE,
|
|
||||||
PROXY_POST_CONVOLUTION_COLOR_TABLE, or
|
|
||||||
PROXY_POST_COLOR_MATRIX_COLOR_TABLE."
|
|
||||||
|
|
||||||
Additions to Chapter 6 of the OpenGL 2.0 Specification (State and State Requests)
|
|
||||||
|
|
||||||
-- Section 6.1.3 "Enumerated Queries"
|
|
||||||
|
|
||||||
Add after the line beginning "If the value of
|
|
||||||
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT is TEXTURE" (spec changes
|
|
||||||
identical to EXT_texture_array):
|
|
||||||
|
|
||||||
"If <pname> is FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT and the
|
|
||||||
texture object named FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT is a
|
|
||||||
three-dimensional texture or a one- or two-dimensional array texture,
|
|
||||||
then <params> will contain the number of texture layer attached to the
|
|
||||||
attachment point. Otherwise, <params> will contain the value zero."
|
|
||||||
|
|
||||||
-- Section 6.1.4 "Texture Queries"
|
|
||||||
|
|
||||||
Change the first three paragraphs (page 248) to say (spec changes
|
|
||||||
identical to EXT_texture_array):
|
|
||||||
|
|
||||||
"The command
|
|
||||||
|
|
||||||
void GetTexImage(enum tex, int lod, enum format,
|
|
||||||
enum type, void *img);
|
|
||||||
|
|
||||||
is used to obtain texture images. It is somewhat different from the
|
|
||||||
other get commands; tex is a symbolic value indicating which texture
|
|
||||||
(or texture face in the case of a cube map texture target name) is to
|
|
||||||
be obtained. TEXTURE_1D, TEXTURE_2D, TEXTURE_3D, TEXTURE_1D_ARRAY_EXT,
|
|
||||||
and TEXTURE_2D_ARRAY_EXT indicate a one-, two-, or three-dimensional
|
|
||||||
texture, or one- or two-dimensional array texture, respectively.
|
|
||||||
TEXTURE_CUBE_MAP_POSITIVE_X, ...
|
|
||||||
|
|
||||||
GetTexImage obtains... from the first image to the last for
|
|
||||||
three-dimensional textures. One- and two-dimensional array textures
|
|
||||||
are treated as two- and three-dimensional images, respectively, where
|
|
||||||
the layers are treated as rows or images. These groups are then...
|
|
||||||
|
|
||||||
For three-dimensional and two-dimensional array textures, pixel storage
|
|
||||||
operations are applied as if the image were two-dimensional, except
|
|
||||||
that the additional pixel storage state values PACK_IMAGE_HEIGHT and
|
|
||||||
PACK_SKIP_IMAGES are applied. ..."
|
|
||||||
|
|
||||||
Additions to Appendix A of the OpenGL 2.0 Specification (Invariance)
|
|
||||||
|
|
||||||
None
|
|
||||||
|
|
||||||
Additions to the AGL/GLX/WGL Specifications
|
|
||||||
|
|
||||||
None
|
|
||||||
|
|
||||||
GLX Protocol
|
|
||||||
|
|
||||||
None
|
|
||||||
|
|
||||||
Dependencies on ARB_fragment_program
|
|
||||||
|
|
||||||
If ARB_fragment_program is not supported, the changes to section 3.11
|
|
||||||
should be ignored.
|
|
||||||
|
|
||||||
Dependencies on EXT_framebuffer_object
|
|
||||||
|
|
||||||
If EXT_framebuffer_object is not supported, the changes to section
|
|
||||||
3.8.8 ("Manual Mipmap Generation"), 4.4.2.3, and 6.1.3 should be ignored.
|
|
||||||
|
|
||||||
Dependencies on EXT_texture_compression_s3tc and NV_texture_compression_vtc
|
|
||||||
|
|
||||||
(Identical dependency as EXT_texture_array.)
|
|
||||||
|
|
||||||
S3TC texture compression is supported for two-dimensional array textures.
|
|
||||||
When <target> is TEXTURE_2D_ARRAY_EXT, each layer is stored independently
|
|
||||||
as a compressed two-dimensional textures. When specifying or querying
|
|
||||||
compressed images using one of the S3TC formats, the images are provided
|
|
||||||
and/or returned as a series of two-dimensional textures stored
|
|
||||||
consecutively in memory, with the layer closest to zero specified first.
|
|
||||||
For array textures, images are not arranged in 4x4x4 or 4x4x2 blocks as in
|
|
||||||
the three-dimensional compression format provided in the
|
|
||||||
EXT_texture_compression_vtc extension. Pixel store parameters, including
|
|
||||||
those specific to three-dimensional images, are ignored when compressed
|
|
||||||
image data are provided or returned, as in the
|
|
||||||
EXT_texture_compression_s3tc extension.
|
|
||||||
|
|
||||||
S3TC compression is not supported for one-dimensional texture targets in
|
|
||||||
EXT_texture_compression_s3tc, and is not supported for one-dimensional
|
|
||||||
array textures in this extension. If compressed one-dimensional arrays
|
|
||||||
are needed, use a two-dimensional texture with a height of one.
|
|
||||||
|
|
||||||
This extension allows the use of the four S3TC internal format types in
|
|
||||||
TexImage3D, CompressedTexImage3D, and CompressedTexSubImage3D calls.
|
|
||||||
|
|
||||||
Errors
|
|
||||||
|
|
||||||
None
|
|
||||||
|
|
||||||
New State
|
|
||||||
|
|
||||||
(add to table 6.15, p. 276)
|
|
||||||
|
|
||||||
Initial
|
|
||||||
Get Value Type Get Command Value Description Sec. Attribute
|
|
||||||
---------------------------- ----- ----------- ----- -------------------- ------ ---------
|
|
||||||
TEXTURE_BINDING_1D_ARRAY_EXT 2*xZ+ GetIntegerv 0 texture object bound 3.8.12 texture
|
|
||||||
to TEXTURE_1D_ARRAY
|
|
||||||
TEXTURE_BINDING_2D_ARRAY_EXT 2*xZ+ GetIntegerv 0 texture object bound 3.8.12 texture
|
|
||||||
to TEXTURE_2D_ARRAY
|
|
||||||
|
|
||||||
|
|
||||||
New Implementation Dependent State
|
|
||||||
|
|
||||||
(add to Table 6.32, p. 293)
|
|
||||||
|
|
||||||
Minimum
|
|
||||||
Get Value Type Get Command Value Description Sec. Attribute
|
|
||||||
---------------------------- ---- ----------- ------- ------------------ ----- ---------
|
|
||||||
MAX_TEXTURE_ARRAY_LAYERS_EXT Z+ GetIntegerv 64 maximum number of 3.8.1 -
|
|
||||||
layers for texture
|
|
||||||
arrays
|
|
||||||
|
|
||||||
Issues
|
|
||||||
|
|
||||||
(1) Is "texture stack" a good name for this functionality?
|
|
||||||
|
|
||||||
NO. The name is changed to "array texture" to match the
|
|
||||||
nomenclature used by GL_EXT_texture_array.
|
|
||||||
|
|
||||||
(2) Should the R texture coordinate be treated as normalized or
|
|
||||||
un-normalized? If it were un-normalized, floor(R) could be thought
|
|
||||||
of as a direct index into the array texture. This may be more
|
|
||||||
convenient for applications.
|
|
||||||
|
|
||||||
RESOLVED. All texture coordinates are normalized. The issue of
|
|
||||||
un-normalized texture coordinates has been discussed in the ARB
|
|
||||||
before and should be left for a layered extension.
|
|
||||||
|
|
||||||
RE-RESOLVED. The R coordinate is un-normalized. Accessing an array
|
|
||||||
using [0, layers-1] coordinates is much more natural.
|
|
||||||
|
|
||||||
(3) How does LOD selection work for stacked textures?
|
|
||||||
|
|
||||||
RESOLVED. For 2D array textures the R coordinate is ignored, and
|
|
||||||
the LOD selection equations for 2D textures are used. For 1D
|
|
||||||
array textures the T coordinate is ignored, and the LOD selection
|
|
||||||
equations for 1D textures are used. The expected usage is in a
|
|
||||||
fragment program with an explicit LOD selection.
|
|
||||||
|
|
||||||
(4) What is the maximum size of a 2D array texture? Is it the same
|
|
||||||
as for a 3D texture, or should a new query be added? How about for 1D
|
|
||||||
array textures?
|
|
||||||
|
|
||||||
RESOLVED. A new query is added.
|
|
||||||
|
|
||||||
(5) How are array textures exposed in GLSL?
|
|
||||||
|
|
||||||
RESOLVED. Use GL_EXT_texture_array.
|
|
||||||
|
|
||||||
(6) Should a 1D array texture also be exposed?
|
|
||||||
|
|
||||||
RESOLVED. For orthogonality, yes.
|
|
||||||
|
|
||||||
(7) How are stacked textures attached to framebuffer objects?
|
|
||||||
|
|
||||||
RESOLVED. Layers of both one- and two-dimensional array textures
|
|
||||||
are attached using FreambufferTextureLayerEXT. Once attached, the
|
|
||||||
array texture layer behaves exactly as either a one- or
|
|
||||||
two-dimensional texture.
|
|
||||||
|
|
||||||
(8) How is this extension related to GL_EXT_texture_array?
|
|
||||||
|
|
||||||
This extension adapats GL_MESAX_texture_stack to the notation,
|
|
||||||
indexing, and FBO access of GL_EXT_texture_array. This extension
|
|
||||||
replaces the GLSL support of GL_EXT_texture_array with
|
|
||||||
GL_ARB_fragment_program support.
|
|
||||||
|
|
||||||
Assembly program support is also provided by GL_NV_gpu_program4.
|
|
||||||
GL_NV_gpu_program4 also adds support for other features that are
|
|
||||||
specific to Nvidia hardware, while this extension adds only support
|
|
||||||
for array textures.
|
|
||||||
|
|
||||||
Much of text of this extension that has changed since
|
|
||||||
GL_MESAX_texture_stack comes directly from either
|
|
||||||
GL_EXT_texture_array or GL_NV_gpu_program4.
|
|
||||||
|
|
||||||
Revision History
|
|
||||||
|
|
||||||
||2005/11/15||0.1||idr||Initial draft MESAX version.||
|
|
||||||
||2005/12/07||0.2||idr||Added framebuffer object interactions.||
|
|
||||||
||2005/12/12||0.3||idr||Updated fragment program interactions.||
|
|
||||||
||2007/05/16||0.4||idr||Converted to MESA_texture_array. Brought in line with EXT_texture_array and NV_gpu_program4.||
|
|
||||||
@@ -88,6 +88,19 @@ driver (such as <code>radeon_dri.so</code>) at runtime. The
|
|||||||
environment variable <code>LIBGL_DRIVERS_PATH</code> should name the
|
environment variable <code>LIBGL_DRIVERS_PATH</code> should name the
|
||||||
directory where these modules are located.<br>
|
directory where these modules are located.<br>
|
||||||
<br>
|
<br>
|
||||||
|
Prior to running a MiniGXL application, the following kernel modules
|
||||||
|
must be installed:<br>
|
||||||
|
<br>
|
||||||
|
<div style="margin-left: 40px;"> agpgart.o<br>
|
||||||
|
radeonfb.o (assuming Radeon hardware)<br>
|
||||||
|
radeon.o (assuming Radeon hardware)<br>
|
||||||
|
</div>
|
||||||
|
<code></code> <br>
|
||||||
|
Finally, MiniGLX reads a configuration file (by default,<code>
|
||||||
|
/etc/miniglx.conf</code>) to determine basic configuration information.
|
||||||
|
The configuration file may also be located in the directory
|
||||||
|
specified by the <code>MINIGLX_CONF</code> environment variable).<br>
|
||||||
|
<br>
|
||||||
The remainder of this section describes the MiniGLX API functions.<br>
|
The remainder of this section describes the MiniGLX API functions.<br>
|
||||||
<br>
|
<br>
|
||||||
<h2>3.1 Initialization</h2>
|
<h2>3.1 Initialization</h2>
|
||||||
|
|||||||
@@ -88,66 +88,3 @@ Running the Build:
|
|||||||
|
|
||||||
Paul G. <pgarceau@users.sourceforge.net>
|
Paul G. <pgarceau@users.sourceforge.net>
|
||||||
Daniel Borca <dborca@users.sourceforge.net>
|
Daniel Borca <dborca@users.sourceforge.net>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
******This section is added by Heromyth <zxpmyth@yahoo.com.cn>*************
|
|
||||||
|
|
||||||
====================
|
|
||||||
Updated on 2007-7-21
|
|
||||||
====================
|
|
||||||
|
|
||||||
Notice:
|
|
||||||
1) The generated DLLs are *not* compatible with the ones built
|
|
||||||
with the other compilers like VC8, especially for GLUT.
|
|
||||||
|
|
||||||
2) Although more tests are needed, it can be used individually!
|
|
||||||
|
|
||||||
3) You can set the options about whether using STDCALL to build MESA. The
|
|
||||||
config file is <Mesa3D-root>\configs\config.mgw. The default setting is that:
|
|
||||||
ALL_USING_STDCALL = 1
|
|
||||||
, which means using STDCALL to build MESA.
|
|
||||||
|
|
||||||
4) Of course, you can MESA without using STDCALL,I like this:)
|
|
||||||
The setting is :
|
|
||||||
ALL_USING_STDCALL = 0
|
|
||||||
To do this, however, you must modify wingdi.h which is in MingW's include dir.
|
|
||||||
For example, run:
|
|
||||||
notepad C:\MingW\include\wingdi.h
|
|
||||||
, and delete all the lines where all the wgl*() functions are. Because they would
|
|
||||||
be conflicted with the ones in <Mesa3D-root>\include\GL\mesa_wgl.h.
|
|
||||||
|
|
||||||
>>>>>>>>>> Conflicted Functions List >>>>>>>>>>
|
|
||||||
WINGDIAPI BOOL WINAPI wglCopyContext(HGLRC,HGLRC,UINT);
|
|
||||||
WINGDIAPI HGLRC WINAPI wglCreateContext(HDC);
|
|
||||||
WINGDIAPI HGLRC WINAPI wglCreateLayerContext(HDC,int);
|
|
||||||
WINGDIAPI BOOL WINAPI wglDeleteContext(HGLRC);
|
|
||||||
WINGDIAPI BOOL WINAPI wglDescribeLayerPlane(HDC,int,int,UINT,LPLAYERPLANEDESCRIPTOR);
|
|
||||||
WINGDIAPI HGLRC WINAPI wglGetCurrentContext(void);
|
|
||||||
WINGDIAPI HDC WINAPI wglGetCurrentDC(void);
|
|
||||||
WINGDIAPI int WINAPI wglGetLayerPaletteEntries(HDC,int,int,int,COLORREF*);
|
|
||||||
WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR);
|
|
||||||
WINGDIAPI BOOL WINAPI wglMakeCurrent(HDC,HGLRC);
|
|
||||||
WINGDIAPI BOOL WINAPI wglRealizeLayerPalette(HDC,int,BOOL);
|
|
||||||
WINGDIAPI int WINAPI wglSetLayerPaletteEntries(HDC,int,int,int,const COLORREF*);
|
|
||||||
WINGDIAPI BOOL WINAPI wglShareLists(HGLRC,HGLRC);
|
|
||||||
WINGDIAPI BOOL WINAPI wglSwapLayerBuffers(HDC,UINT);
|
|
||||||
WINGDIAPI BOOL WINAPI wglUseFontBitmapsA(HDC,DWORD,DWORD,DWORD);
|
|
||||||
WINGDIAPI BOOL WINAPI wglUseFontBitmapsW(HDC,DWORD,DWORD,DWORD);
|
|
||||||
WINGDIAPI BOOL WINAPI wglUseFontOutlinesA(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT);
|
|
||||||
WINGDIAPI BOOL WINAPI wglUseFontOutlinesW(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT);
|
|
||||||
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
||||||
|
|
||||||
====================
|
|
||||||
Updated on 2007-7-22
|
|
||||||
====================
|
|
||||||
I havn't thought that I would find a better way to solve my problems so soon.
|
|
||||||
I changed the method in which the import-libs and DLLs are made. After this update,
|
|
||||||
the DLLs of MESA are more optimized and more compatible.
|
|
||||||
It seems that there is no need to keep the building way of 'NO-STDCALL'.The
|
|
||||||
way of USING_STDCALL is so nice! The file <Mesa3D-root>\configs\config.mgw is
|
|
||||||
also not needed, and can be deleted safely!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*********************************************************************************
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
File: docs/README.WIN32
|
File: docs/README.WIN32
|
||||||
|
|
||||||
Last updated: Apr 25, 2007 - Karl Schultz - kschultz@users.sourceforge.net
|
Last updated: Mar 31, 2006 - Karl Schultz - kschultz@users.sourceforge.net
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
----- -----
|
----- -----
|
||||||
@@ -13,25 +13,18 @@ directory. Don't worry, you will not overwrite anything.
|
|||||||
|
|
||||||
The Windows build system uses Microsoft Visual Studio. Project files
|
The Windows build system uses Microsoft Visual Studio. Project files
|
||||||
for a specific version of Visual Studio are in their own directory in
|
for a specific version of Visual Studio are in their own directory in
|
||||||
the top-level "windows" directory. For example, Visual Studio 8 files
|
the top-level "windows" directory. For example, Visual Studio 6 files
|
||||||
are in windows/VC8.
|
are in windows/VC6. If a directory does not exist for your version of
|
||||||
|
Visual Studio, you can try importing the project files from an earlier
|
||||||
|
version of Visual Studio. At this time, project files exist for
|
||||||
|
Version 6 and Version 7. The code has been built with a beta version
|
||||||
|
of Version 8 and it runs on 64-bit Windows. If you want to try this,
|
||||||
|
start by importing the VC7 files and create the 64-bit targets in the
|
||||||
|
configuration manager.
|
||||||
|
|
||||||
Support has been dropped for versions of Visual Studio prior to 8. The
|
It is likely that the new and free Visual Studio Express can be used
|
||||||
main reason is because Microsoft now provides a free compiler and
|
to build Mesa, but it hasn't been tried yet. Start with the VC7
|
||||||
developer environment. Visual Studio Express can be found at
|
project files.
|
||||||
|
|
||||||
http://msdn.microsoft.com/vstudio/express/visualc/default.aspx
|
|
||||||
|
|
||||||
You'll also need the Platform SDK. Instructions for obtaining and
|
|
||||||
using the SDK with Visual Studio Express can be found at
|
|
||||||
|
|
||||||
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
|
|
||||||
|
|
||||||
If you are stuck using VC6 or VC7, you may start with these project
|
|
||||||
files, but you may need to modify them to reflect changes in the
|
|
||||||
Mesa source code tree. If you sucessfully update the project files,
|
|
||||||
please submit them to the author of this document so that they may
|
|
||||||
be included in the next distribution.
|
|
||||||
|
|
||||||
The project files to build the core Mesa library, Windows Mesa
|
The project files to build the core Mesa library, Windows Mesa
|
||||||
drivers, OSMesa, and GLU are in the mesa directory. The project files
|
drivers, OSMesa, and GLU are in the mesa directory. The project files
|
||||||
@@ -59,7 +52,9 @@ be useful in figuring out any problems, or report them to me.
|
|||||||
To build Mesa with the GDI driver, build the mesa, gdi, and glu
|
To build Mesa with the GDI driver, build the mesa, gdi, and glu
|
||||||
projects in the Visual Studio workspace found at
|
projects in the Visual Studio workspace found at
|
||||||
|
|
||||||
windows/VC8/mesa/mesa.sln
|
windows/VC6/mesa/mesa.dsw
|
||||||
|
or
|
||||||
|
windows/VC7/mesa/mesa.sln
|
||||||
|
|
||||||
The osmesa DLL can also be built with the osmesa project.
|
The osmesa DLL can also be built with the osmesa project.
|
||||||
|
|
||||||
@@ -79,7 +74,9 @@ GLUT and Demos
|
|||||||
|
|
||||||
A Visual Studio workspace can be found at
|
A Visual Studio workspace can be found at
|
||||||
|
|
||||||
windows/VC8/progs/progs.sln
|
windows/VC6/progs/progs.dsw
|
||||||
|
or
|
||||||
|
windows/VC7/progs/progs.sln
|
||||||
|
|
||||||
It can be used to build GLUT and a few demos. The GLUT lib and DLL
|
It can be used to build GLUT and a few demos. The GLUT lib and DLL
|
||||||
are copied to the top-level lib directory, along with the Mesa libs.
|
are copied to the top-level lib directory, along with the Mesa libs.
|
||||||
@@ -106,7 +103,7 @@ should build all the demos.
|
|||||||
Build System Notes
|
Build System Notes
|
||||||
----- ------ -----
|
----- ------ -----
|
||||||
|
|
||||||
VC6 (not actively supported)
|
VC6
|
||||||
---
|
---
|
||||||
|
|
||||||
Visual Studio 6 does not recognize files with the .cc extension as C++
|
Visual Studio 6 does not recognize files with the .cc extension as C++
|
||||||
@@ -118,16 +115,11 @@ Two additional configurations are provided, Debug x86 and Release x86
|
|||||||
that activate the shader code compilation by defining SLANG_86. It is
|
that activate the shader code compilation by defining SLANG_86. It is
|
||||||
unknown if and how this works.
|
unknown if and how this works.
|
||||||
|
|
||||||
VC7 (not actively supported)
|
VC7
|
||||||
---
|
---
|
||||||
|
|
||||||
The above-mentioned .cc problem does not exist in this version.
|
The above-mentioned .cc problem does not exist in this version.
|
||||||
|
|
||||||
VC8
|
|
||||||
---
|
|
||||||
|
|
||||||
No notes.
|
|
||||||
|
|
||||||
|
|
||||||
General
|
General
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Requirements
|
|||||||
============
|
============
|
||||||
|
|
||||||
To build Mesa with DirectFB (DirectFBGL) support you need:
|
To build Mesa with DirectFB (DirectFBGL) support you need:
|
||||||
- DirectFB at least 1.0.0 (http://directfb.org)
|
- DirectFB at least 0.9.21 (http://directfb.org)
|
||||||
- pkg-config at least 0.9 (http://pkgconfig.sf.net)
|
- pkg-config at least 0.9 (http://pkgconfig.sf.net)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
47
docs/RELNOTES-6.4.1
Normal file
47
docs/RELNOTES-6.4.1
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
|
||||||
|
Mesa 6.4.1 Release Notes
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
|
Mesa uses an even/odd version number scheme like the Linux kernel.
|
||||||
|
Odd numbered versions (such as 6.3) designate new developmental releases.
|
||||||
|
Even numbered versions (such as 6.4) designate stable releases.
|
||||||
|
|
||||||
|
|
||||||
|
6.4.1 is a bug-fix release. See the VERSIONS file for details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
GLUT tarball
|
||||||
|
------------
|
||||||
|
|
||||||
|
Starting with 6.4, the GLUT library sources are distributed in a separate
|
||||||
|
tarball. This was done at the request of Linux distro vendors who prefer
|
||||||
|
to use freeglut.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Driver Status
|
||||||
|
---------------------- ----------------------
|
||||||
|
DRI drivers varies with the driver
|
||||||
|
XMesa (Xlib) implements OpenGL 1.5
|
||||||
|
OSMesa (off-screen) implements OpenGL 1.5
|
||||||
|
Windows/Win32 implements OpenGL 1.5
|
||||||
|
Glide (3dfx Voodoo1/2) requires updates
|
||||||
|
SVGA requires updates
|
||||||
|
DJGPP requires updates
|
||||||
|
GGI requires updates
|
||||||
|
BeOS requires updates
|
||||||
|
Allegro requires updates
|
||||||
|
D3D requires updates
|
||||||
|
|
||||||
|
The drivers which require updates mostly need to be updated to work
|
||||||
|
with the new gl_renderbuffer / gl_framebuffer infrastructure introduced
|
||||||
|
in Mesa 6.3.
|
||||||
|
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
$Id: RELNOTES-6.4.1,v 3.1 2006/02/03 17:21:54 brianp Exp $
|
||||||
47
docs/RELNOTES-6.4.2
Normal file
47
docs/RELNOTES-6.4.2
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
|
||||||
|
Mesa 6.4.2 Release Notes
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
|
Mesa uses an even/odd version number scheme like the Linux kernel.
|
||||||
|
Odd numbered versions (such as 6.3) designate new developmental releases.
|
||||||
|
Even numbered versions (such as 6.4) designate stable releases.
|
||||||
|
|
||||||
|
|
||||||
|
6.4.2 is a minor bug-fix release. See the VERSIONS file for details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
GLUT tarball
|
||||||
|
------------
|
||||||
|
|
||||||
|
Starting with 6.4, the GLUT library sources are distributed in a separate
|
||||||
|
tarball. This was done at the request of Linux distro vendors who prefer
|
||||||
|
to use freeglut.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Driver Status
|
||||||
|
---------------------- ----------------------
|
||||||
|
DRI drivers varies with the driver
|
||||||
|
XMesa (Xlib) implements OpenGL 1.5
|
||||||
|
OSMesa (off-screen) implements OpenGL 1.5
|
||||||
|
Windows/Win32 implements OpenGL 1.5
|
||||||
|
Glide (3dfx Voodoo1/2) requires updates
|
||||||
|
SVGA requires updates
|
||||||
|
DJGPP requires updates
|
||||||
|
GGI requires updates
|
||||||
|
BeOS requires updates
|
||||||
|
Allegro requires updates
|
||||||
|
D3D requires updates
|
||||||
|
|
||||||
|
The drivers which require updates mostly need to be updated to work
|
||||||
|
with the new gl_renderbuffer / gl_framebuffer infrastructure introduced
|
||||||
|
in Mesa 6.3.
|
||||||
|
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
$Id: RELNOTES-6.4.2,v 3.1 2006/02/03 17:21:54 brianp Exp $
|
||||||
97
docs/RELNOTES-6.5
Normal file
97
docs/RELNOTES-6.5
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
|
||||||
|
Mesa 6.5 Release Notes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
|
Mesa uses an even/odd version number scheme like the Linux kernel.
|
||||||
|
Odd numbered versions (such as 6.5) designate new developmental releases.
|
||||||
|
Even numbered versions (such as 6.4) designate stable releases.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
New Features
|
||||||
|
------------
|
||||||
|
|
||||||
|
OpenGL Shading language support
|
||||||
|
This includes the GL_ARB_shader_objects, GL_ARB_shading_language_100,
|
||||||
|
GL_ARB_vertex_shader and GL_ARB_fragment_shader extensions. Most of
|
||||||
|
the work was done by Michal Krol.
|
||||||
|
There's probably a fair number of bugs since this is a pretty large,
|
||||||
|
complicated body of code.
|
||||||
|
|
||||||
|
The OpenGL 2.0 interface to these features will be implemented in a
|
||||||
|
future version of Mesa,
|
||||||
|
|
||||||
|
GL_EXT_timer_query
|
||||||
|
Used to measure the time of OpenGL operations at high precision.
|
||||||
|
Only supported in the software/Xlib driver at this time.
|
||||||
|
|
||||||
|
GL_EXT_packed_depth_stencil
|
||||||
|
Defines a new GL_DEPTH_STENCIL_EXT pixel format.
|
||||||
|
|
||||||
|
GL_EXT_framebuffer_blit
|
||||||
|
A simplified glCopyPixels-like feature for copying pixel rectangles.
|
||||||
|
|
||||||
|
GL_ARB_half_float_pixel
|
||||||
|
Adds a new half-precision floating point format for image transfers,
|
||||||
|
such as for glDrawPixels, glReadPixels, glTexImage, etc.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Removed Extensions
|
||||||
|
------------------
|
||||||
|
|
||||||
|
The following extensions have been removed:
|
||||||
|
|
||||||
|
GL_HP_occlusion_test - this is superceded by GL_ARB_occlusion_query.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Known Issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
Rendering to depth textures will not work. Rendering to GL_DEPTH_STENCIL
|
||||||
|
textures should work.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Driver Interface Changes
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
Stencil: The Driver.StencilOp/Func/Mask() functions have been replaced by
|
||||||
|
the two-sided versions: Driver.Stencil*Separate().
|
||||||
|
|
||||||
|
Render-to-texture: The functions for rendering to textures have changed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
To Do (someday) items
|
||||||
|
---------------------
|
||||||
|
Switch to freeglut
|
||||||
|
Increase MAX_DRAWBUFFERS
|
||||||
|
Fix linux-glide target/driver.
|
||||||
|
Fix lambda calculation for frag progs.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Driver Status
|
||||||
|
---------------------- ----------------------
|
||||||
|
DRI drivers varies with the driver
|
||||||
|
XMesa/GLX (on Xlib) implements OpenGL 1.5
|
||||||
|
OSMesa (off-screen) implements OpenGL 1.5
|
||||||
|
Glide (3dfx Voodoo1/2) implements OpenGL 1.3
|
||||||
|
SVGA implements OpenGL 1.3
|
||||||
|
Wind River UGL implements OpenGL 1.3
|
||||||
|
Windows/Win32 implements OpenGL 1.5
|
||||||
|
DJGPP implements OpenGL 1.5
|
||||||
|
GGI implements OpenGL 1.3
|
||||||
|
BeOS implements OpenGL 1.5
|
||||||
|
Allegro needs updating
|
||||||
|
D3D needs updating
|
||||||
|
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
$Id: RELNOTES-6.5,v 3.4 2006/03/29 04:53:02 brianp Exp $
|
||||||
@@ -1471,21 +1471,14 @@ Mesa Version History
|
|||||||
- paletted texturing was broken w/ floating point palettes (K. Schultz)
|
- paletted texturing was broken w/ floating point palettes (K. Schultz)
|
||||||
- lots of assorted framebuffer object bug fixes
|
- lots of assorted framebuffer object bug fixes
|
||||||
|
|
||||||
6.5.1 August 31, 2006
|
6.5.1 month, day, 2006
|
||||||
New:
|
New:
|
||||||
- Intel i965 DRI driver
|
|
||||||
- GL_APPLE_vertex_array_object extension (Ian Romanick)
|
- GL_APPLE_vertex_array_object extension (Ian Romanick)
|
||||||
- GL_EXT_texture_sRGB extension
|
|
||||||
- GL_EXT_gpu_program_parameters (Ian Romanick)
|
|
||||||
- "engine" demo
|
- "engine" demo
|
||||||
- updated fbdev driver and GLUT for fbdev (Sean D'Epagnier)
|
|
||||||
- many updates to the DRI drivers
|
|
||||||
Changes:
|
Changes:
|
||||||
- The glVertexAttribARB functions no longer alias the conventional
|
- The glVertexAttribARB functions no longer alias the conventional
|
||||||
vertex attributes.
|
vertex attributes.
|
||||||
- glxinfo program prints more info with -l option
|
- glxinfo program prints more info with -l option
|
||||||
- GL_FRAGMENT_PROGRAM_NV and GL_FRAGMENT_PROGRAM_ARB are now
|
|
||||||
compatible, in terms of glBindProgramARB()
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
- fixed broken texture border handling for depth textures (bug 6498)
|
- fixed broken texture border handling for depth textures (bug 6498)
|
||||||
- removed the test for duplicated framebuffer attachments, per
|
- removed the test for duplicated framebuffer attachments, per
|
||||||
@@ -1505,10 +1498,3 @@ Mesa Version History
|
|||||||
- 'normalized' parameter to glVertexAttribPointerARB didn't work
|
- 'normalized' parameter to glVertexAttribPointerARB didn't work
|
||||||
- disable bogus GLX_SGI_video_sync extension in xlib driver
|
- disable bogus GLX_SGI_video_sync extension in xlib driver
|
||||||
- fixed R128 driver locking bug (Martijn van Oosterhout)
|
- fixed R128 driver locking bug (Martijn van Oosterhout)
|
||||||
- using evaluators with vertex programs caused crashes (bug 7564)
|
|
||||||
- fragment.position wasn't set correctly for point/line primitives
|
|
||||||
- fixed parser bug for scalar sources for GL_NV_fragment_program
|
|
||||||
- max fragment program length was incorrectly 128, now 1024
|
|
||||||
- writes to result.depth in fragment programs weren't clamped to [0,1]
|
|
||||||
- fixed potential dangling pointer bug in glBindProgram()
|
|
||||||
- fixed some memory leaks (and potential crashes) in Xlib driver
|
|
||||||
|
|||||||
@@ -1,289 +0,0 @@
|
|||||||
<html>
|
|
||||||
|
|
||||||
<title>Compilation and Installation using Autoconf</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
|
|
||||||
<h1>Compilation and Installation using Autoconf</h1>
|
|
||||||
|
|
||||||
<ol>
|
|
||||||
<li><a href="#basic">Basic Usage</a></li>
|
|
||||||
<li><a href="#driver">Driver Options</a></li>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#xlib">Xlib Driver Options</a></li>
|
|
||||||
<li><a href="#dri">DRI Driver Options</a></li>
|
|
||||||
<li><a href="#osmesa">OSMesa Driver Options</a></li>
|
|
||||||
</ul>
|
|
||||||
<li><a href="#library">Library Options</a></li>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#glu">GLU</a></li>
|
|
||||||
<li><a href="#glw">GLw</a></li>
|
|
||||||
<li><a href="#glut">GLUT</a></li>
|
|
||||||
</ul>
|
|
||||||
<li><a href="#demos">Demo Program Options</a></li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
|
|
||||||
<a name="basic">
|
|
||||||
<h2>1. Basic Usage</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The autoconf generated configure script can be used to guess your
|
|
||||||
platform and change various options for building Mesa. To use the
|
|
||||||
configure script, type:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
./configure
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
To see a short description of all the options, type <code>./configure
|
|
||||||
--help</code>. If you are using a development snapshot and the configure
|
|
||||||
script does not exist, type <code>./autogen.sh</code> to generate it
|
|
||||||
first. If you know the options you want to pass to
|
|
||||||
<code>configure</code>, you can pass them to <code>autogen.sh</code>. It
|
|
||||||
will run <code>configure</code> with these options after it is
|
|
||||||
generated. Once you have run <code>configure</code> and set the options
|
|
||||||
to your preference, type:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
make
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
This will produce libGL.so and several other libraries depending on the
|
|
||||||
options you have chosen. Later, if you want to rebuild for a different
|
|
||||||
configuration run <code>make realclean</code> before rebuilding.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Some of the generic autoconf options are used with Mesa:
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><code>--prefix=PREFIX</code> - This is the root directory where
|
|
||||||
files will be installed by <code>make install</code>. The default is
|
|
||||||
<code>/usr/local</code>.
|
|
||||||
</li>
|
|
||||||
<li><code>--exec-prefix=EPREFIX</code> - This is the root directory
|
|
||||||
where architecture-dependent files will be installed. In Mesa, this is
|
|
||||||
only used to derive the directory for the libraries. The default is
|
|
||||||
<code>${prefix}</code>.
|
|
||||||
</li>
|
|
||||||
<li><code>--libdir=LIBDIR</code> - This option specifies the directory
|
|
||||||
where the GL libraries will be installed. The default is
|
|
||||||
<code>${exec_prefix}/lib</code>. It also serves as the name of the
|
|
||||||
library staging area in the source tree. For instance, if the option
|
|
||||||
<code>--libdir=/usr/local/lib64</code> is used, the libraries will be
|
|
||||||
created in a <code>lib64</code> directory at the top of the Mesa source
|
|
||||||
tree.
|
|
||||||
</li>
|
|
||||||
<li><code>--enable-static, --disable-shared</code> - By default, Mesa
|
|
||||||
will build shared libraries. Either of these options will force static
|
|
||||||
libraries to be built. It is not currently possible to build static and
|
|
||||||
shared libraries in a single pass.
|
|
||||||
</li>
|
|
||||||
<li><code>CC, CFLAGS, CXX, CXXFLAGS</code> - These environment variables
|
|
||||||
control the C and C++ compilers used during the build. By default,
|
|
||||||
<code>gcc</code> and <code>g++</code> are used with the options
|
|
||||||
<code>"-g -O2"</code>.
|
|
||||||
</li>
|
|
||||||
<li><code>LDFLAGS</code> - An environment variable specifying flags to
|
|
||||||
pass when linking programs. These are normally empty, but can be used
|
|
||||||
to direct the linker to use libraries in nonstandard directories. For
|
|
||||||
example, <code>LDFLAGS="-L/usr/X11R6/lib"</code>.
|
|
||||||
</li>
|
|
||||||
<li><code>PKG_CONFIG_PATH</code> - When available, the
|
|
||||||
<code>pkg-config</code> utility is used to search for external libraries
|
|
||||||
on the system. This environment variable is used to control the search
|
|
||||||
path for <code>pkg-config</code>. For instance, setting
|
|
||||||
<code>PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig</code> will search for
|
|
||||||
package metadata in <code>/usr/X11R6</code> before the standard
|
|
||||||
directories.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
There are also a few general options for altering the Mesa build:
|
|
||||||
<ul>
|
|
||||||
<li><code>--with-x</code> - When the X11 development libraries are
|
|
||||||
needed, the <code>pkg-config</code> utility <a href="#pkg-config">will
|
|
||||||
be used</a> for locating them. If they cannot be found through
|
|
||||||
<code>pkg-config</code> a fallback routing using <code>imake</code> will
|
|
||||||
be used. In this case, the <code>--with-x</code>,
|
|
||||||
<code>--x-includes</code> and <code>--x-libraries</code> options can
|
|
||||||
control the use of X for Mesa.
|
|
||||||
</li>
|
|
||||||
<li><code>--enable-gl-osmesa</code> - The <a href="osmesa.html">OSMesa
|
|
||||||
library</a> can be built on top of libGL for drivers that provide it.
|
|
||||||
This option controls whether to build libOSMesa. By default, this is
|
|
||||||
enabled for the Xlib driver and disabled otherwise. Note that this
|
|
||||||
option is different than using OSMesa as the driver.
|
|
||||||
</li>
|
|
||||||
<li><code>--enable-debug</code> - This option will enable compiler
|
|
||||||
options and macros to aid in debugging the Mesa libraries.
|
|
||||||
</li>
|
|
||||||
<li><code>--disable-asm</code> - There are assembly routines
|
|
||||||
available for a few architectures. These will be used by default if
|
|
||||||
one of these architectures is detected. This option ensures that
|
|
||||||
assembly will not be used.
|
|
||||||
</li>
|
|
||||||
<li><code>--enable-32-bit, --enable-64-bit</code> - By default, the
|
|
||||||
build will compile code as directed by the environment variables
|
|
||||||
<code>CC</code>, <code>CFLAGS</code>, etc. If the compiler is
|
|
||||||
<code>gcc</code>, these options offer a helper to add the compiler flags
|
|
||||||
to force 32- or 64-bit code generation as used on the x86 and x86_64
|
|
||||||
architectures.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<a name="driver">
|
|
||||||
<h2>2. Driver Options</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
There are several different driver modes that Mesa can use. These are
|
|
||||||
described in more detail in the <a href="install.html">basic
|
|
||||||
installation instructions</a>. The Mesa driver is controlled through the
|
|
||||||
configure option --with-driver. There are currently three supported
|
|
||||||
options in the configure script.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<a name="xlib">
|
|
||||||
<li><b><em>Xlib</em></b> - This is the default mode for building Mesa.
|
|
||||||
It uses Xlib as a software renderer to do all rendering. It corresponds
|
|
||||||
to the option <code>--with-driver=xlib</code>. The libX11 and libXext
|
|
||||||
libraries, as well as the X11 development headers, will be need to
|
|
||||||
support the Xlib driver.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<a name="dri">
|
|
||||||
<li><b><em>DRI</em></b> - This mode uses the DRI hardware drivers for
|
|
||||||
accelerated OpenGL rendering. Enable the DRI drivers with the option
|
|
||||||
<code>--with-driver=dri</code>. See the <a href="install.html">basic
|
|
||||||
installation instructions</a> for details on prerequisites for the DRI
|
|
||||||
drivers.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- DRI specific options -->
|
|
||||||
<p>
|
|
||||||
<ul>
|
|
||||||
<li><code>--with-dri-driverdir=DIR</code> - This option specifies the
|
|
||||||
location the DRI drivers will be installed to and the location libGL
|
|
||||||
will search for DRI drivers. The default is <code>${libdir}/dri</code>.
|
|
||||||
</li>
|
|
||||||
<li><code>--with-dri-drivers=DRIVER,DRIVER,...</code> - This option
|
|
||||||
allows a specific set of DRI drivers to be built. For example,
|
|
||||||
<code>--with-dri-drivers="swrast,i965,radeon,nouveau"</code>. By
|
|
||||||
default, the drivers will be chosen depending on the target platform.
|
|
||||||
See the directory <code>src/mesa/drivers/dri</code> in the source tree
|
|
||||||
for available drivers. Beware that the swrast DRI driver is used by both
|
|
||||||
libGL and the X.Org xserver GLX module to do software rendering, so you
|
|
||||||
may run into problems if it is not available.</li>
|
|
||||||
<!-- This explanation might be totally bogus. Kristian? -->
|
|
||||||
<li><code>--disable-driglx-direct</code> - Disable direct rendering in
|
|
||||||
GLX. Normally, direct hardware rendering through the DRI drivers and
|
|
||||||
indirect software rendering are enabled in GLX. This option disables
|
|
||||||
direct rendering entirely. It can be useful on architectures where
|
|
||||||
kernel DRM modules are not available.
|
|
||||||
</li>
|
|
||||||
<li><code>--enable-glx-tls</code> - Enable Thread Local Storage (TLS) in
|
|
||||||
GLX.
|
|
||||||
</li>
|
|
||||||
<li><code>--with-expat=DIR</code> - The DRI-enabled libGL uses expat to
|
|
||||||
parse the DRI configuration files in <code>/etc/drirc</code> and
|
|
||||||
<code>~/.drirc</code>. This option allows a specific expat installation
|
|
||||||
to be used. For example, <code>--with-expat=/usr/local</code> will
|
|
||||||
search for expat headers and libraries in <code>/usr/local/include</code>
|
|
||||||
and <code>/usr/local/lib</code>, respectively.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<a name="osmesa">
|
|
||||||
<li><b><em>OSMesa</em></b> - No libGL is built in this
|
|
||||||
mode. Instead, the driver code is built into the Off-Screen Mesa
|
|
||||||
(OSMesa) library. See the <a href="osmesa.html">Off-Screen Rendering</a>
|
|
||||||
page for more details.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- OSMesa specific options -->
|
|
||||||
<p>
|
|
||||||
<ul>
|
|
||||||
<li><code>--with-osmesa-bits=BITS</code> - This option allows the size
|
|
||||||
of the color channel in bits to be specified. By default, an 8-bit
|
|
||||||
channel will be used, and the driver will be named libOSMesa. Other
|
|
||||||
options are 16- and 32-bit color channels, which will add the bit size
|
|
||||||
to the library name. For example, <code>--with-osmesa-bits=16</code>
|
|
||||||
will create the libOSMesa16 library with a 16-bit color channel.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
<a name="library">
|
|
||||||
<h2>3. Library Options</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The configure script provides more fine grained control over the GL
|
|
||||||
libraries that will be built. More details on the specific GL libraries
|
|
||||||
can be found in the <a href="install.html">basic installation
|
|
||||||
instructions</a>.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<a name="glu">
|
|
||||||
<li><b><em>GLU</em></b> - The libGLU library will be built by default
|
|
||||||
on all drivers. This can be disable with the option
|
|
||||||
<code>--disable-glu</code>.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<a name="glw">
|
|
||||||
<li><b><em>GLw</em></b> - The libGLw library will be built by default
|
|
||||||
if libGLU has been enabled. This can be disable with the option
|
|
||||||
<code>--disable-glw</code>.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<a name="glut">
|
|
||||||
<li><b><em>GLUT</em></b> - The libglut library will be built by default
|
|
||||||
if libGLU has been enabled and the glut source code from the MesaGLUT
|
|
||||||
tarball is available. This can be disable with the option
|
|
||||||
<code>--disable-glut</code>.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<a name="demos">
|
|
||||||
<h2>4. Demo Program Options</h2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
There are many demonstration programs in the MesaDemos tarball. If the
|
|
||||||
programs are available when <code>./configure</code> is run, a subset of
|
|
||||||
the programs will be built depending on the driver and library options
|
|
||||||
chosen. See the directory <code>progs</code> for the full set of demos.
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><code>--with-demos=DEMOS,DEMOS,...</code> - This option allows a
|
|
||||||
specific set of demo programs to be built. For example,
|
|
||||||
<code>--with-demos="xdemos,slang"</code>. Beware that if this option is
|
|
||||||
used, it will not be ensured that the necessary GL libraries will be
|
|
||||||
available.
|
|
||||||
</li>
|
|
||||||
<li><code>--without-demos</code> - This completely disables building the
|
|
||||||
demo programs. It is equivalent to <code>--with-demos=no</code>.
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -9,9 +9,9 @@
|
|||||||
<H1>Bug Database</H1>
|
<H1>Bug Database</H1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The Mesa bug database is hosted on
|
The Mesa bug database is now hosted on
|
||||||
<a href="http://freedesktop.org" target="_parent">freedesktop.org</a>.
|
<a href="http://freedesktop.org" target="_parent">freedesktop.org</a>
|
||||||
The old bug database on SourceForge is no longer used.
|
instead of SourceForge.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -26,20 +26,16 @@ Please follow these bug reporting guidelines:
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Check if a new version of Mesa is available which might have fixed
|
<li>Make sure you're using the most recent version of Mesa
|
||||||
the problem.
|
<li>Make sure your bug isn't already reported
|
||||||
<li>Check if your bug is already reported in the database.
|
<li>Include as much information as possible in the report
|
||||||
<li>Monitor your bug report for requests for additional information, etc.
|
|
||||||
<li>If you're reporting a crash, try to use your debugger (gdb) to get a stack
|
|
||||||
trace. Also, recompile Mesa in debug mode to get more detailed information.
|
|
||||||
<li>Describe in detail how to reproduce the bug, especially with games
|
|
||||||
and applications that the Mesa developers might not be familiar with.
|
|
||||||
<li>Provide a simple GLUT-based test program if possible
|
<li>Provide a simple GLUT-based test program if possible
|
||||||
|
<li>Check back for follow-ups to the report
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Bug reports will automatically be forwarded by bugzilla to the Mesa
|
Bug reports will automatically be forwarded to the Mesa developer's mailing
|
||||||
developer's mailing list.
|
list.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
137
docs/cell.html
137
docs/cell.html
@@ -1,137 +0,0 @@
|
|||||||
<HTML>
|
|
||||||
|
|
||||||
<TITLE>Cell Driver</TITLE>
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
|
||||||
|
|
||||||
<BODY>
|
|
||||||
|
|
||||||
<H1>Mesa/Gallium Cell Driver</H1>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The Mesa
|
|
||||||
<a href="http://en.wikipedia.org/wiki/Cell_%28microprocessor%29" target="_parent">Cell</a>
|
|
||||||
driver is part of the
|
|
||||||
<a href="http://www.tungstengraphics.com/wiki/index.php/Gallium3D" target="_parent">Gallium3D</a>
|
|
||||||
architecture.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a href="http://www.tungstengraphics.com/" target="_parent">Tungsten Graphics</a>
|
|
||||||
is leading the project.
|
|
||||||
Two phases are planned.
|
|
||||||
First, to implement the framework for parallel rasterization using the Cell
|
|
||||||
SPEs, including texture mapping.
|
|
||||||
Second, to implement a full-featured OpenGL driver with support for GLSL, etc.
|
|
||||||
The second phase is now underway.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<H2>Source Code</H2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The latest Cell driver source code is on the <code>gallium-0.2</code> branch
|
|
||||||
of the Mesa git repository.
|
|
||||||
After you've cloned the repository, check out the branch with:
|
|
||||||
</p>
|
|
||||||
<pre>
|
|
||||||
git-checkout -b gallium-0.2 origin/gallium-0.2
|
|
||||||
</pre>
|
|
||||||
<p>
|
|
||||||
To build the driver you'll need the IBM Cell SDK (version 2.1 or 3.0).
|
|
||||||
To use the driver you'll need a Cell system, such as a PS3 running Linux,
|
|
||||||
or the Cell Simulator (untested, though).
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If using Cell SDK 2.1, see the configs/linux-cell file for some
|
|
||||||
special changes.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
To compile the code, run <code>make linux-cell</code>.
|
|
||||||
To build in debug mode, run <code>make linux-cell-debug</code>.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
To use the library, make sure <code>LD_LIBRARY_PATH</code> points the Mesa/lib/
|
|
||||||
directory that contains <code>libGL.so</code>.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Verify that the Cell driver is being used by running <code>glxinfo</code>
|
|
||||||
and looking for:
|
|
||||||
<pre>
|
|
||||||
OpenGL renderer string: Gallium 0.2, Cell on Xlib
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<H2>Driver Implementation Summary</H2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Rasterization is parallelized across the SPUs in a tiled-based manner.
|
|
||||||
Batches of transformed triangles are sent to the SPUs (actually, pulled by from
|
|
||||||
main memory by the SPUs).
|
|
||||||
Each SPU loops over a set of 32x32-pixel screen tiles, rendering the triangles
|
|
||||||
into each tile.
|
|
||||||
Because of the limited SPU memory, framebuffer tiles are paged in/out of
|
|
||||||
SPU local store as needed.
|
|
||||||
Similarly, textures are tiled and brought into local store as needed.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<H2>Status</H2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
As of September 2008, the driver supports smooth/flat shaded triangle rendering
|
|
||||||
with Z testing and simple texture mapping.
|
|
||||||
Simple demos like gears run successfully.
|
|
||||||
To test texture mapping, try progs/demos/texcyl (press right mouse button for
|
|
||||||
rendering options).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Runtime/dynamic code generation is being done for per-fragment
|
|
||||||
operations (Z test, blend, etc) and for fragment programs (though only a
|
|
||||||
few opcodes are implemented now).
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
In general, however, the driver is rather slow because all vertex
|
|
||||||
transformation is being done by an interpreter running on the PPU.
|
|
||||||
Programs with many vertices or complex vertex shaders will run especially
|
|
||||||
slow.
|
|
||||||
This will be addressed in the future.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<H2>Debug Options</H2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The CELL_DEBUG env var can be set to a comma-separated list of one or
|
|
||||||
more of the following debug options:
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li><b>checker</b> - use a different background clear color for each SPU.
|
|
||||||
This lets you see which SPU is rendering which screen tiles.
|
|
||||||
<li><b>sync</b> - wait/synchronize after each DMA transfer
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If the GALLIUM_NOCELL env var is set, the softpipe driver will be used
|
|
||||||
intead of the Cell driver.
|
|
||||||
This is useful for comparison/validation.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<H2>Contributing</H2>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
If you're interested in contributing to the effort, familiarize yourself
|
|
||||||
with the code, join the <a href="lists.html">mesa3d-dev mailing list</a>,
|
|
||||||
and describe what you'd like to do.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
</BODY>
|
|
||||||
</HTML>
|
|
||||||
@@ -25,10 +25,10 @@ a:visited {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="intro.html" target="MainFrame">Introduction</a>
|
<li><a href="intro.html" target="MainFrame">Introduction</a>
|
||||||
<li><a href="news.html" target="MainFrame">News</a>
|
<li><a href="news.html" target="MainFrame">News</a>
|
||||||
<LI><A HREF="developers.html" target="MainFrame">Developers</A>
|
|
||||||
<li><a href="systems.html" target="MainFrame">Platforms and Drivers</a>
|
<li><a href="systems.html" target="MainFrame">Platforms and Drivers</a>
|
||||||
<li><a href="license.html" target="MainFrame">License & Copyright</a>
|
<li><a href="license.html" target="MainFrame">License & Copyright</a>
|
||||||
<li><a href="faq.html" target="MainFrame">FAQ</a>
|
<li><a href="faq.html" target="MainFrame">FAQ</a>
|
||||||
|
<li><a href="VERSIONS" target="MainFrame">Version History</a>
|
||||||
<li><a href="relnotes.html" target="MainFrame">Release Notes</a>
|
<li><a href="relnotes.html" target="MainFrame">Release Notes</a>
|
||||||
<li><a href="thanks.html" target="MainFrame">Acknowledgements</a>
|
<li><a href="thanks.html" target="MainFrame">Acknowledgements</a>
|
||||||
<li><a href="conform.html" target="MainFrame">Conformance Testing</a>
|
<li><a href="conform.html" target="MainFrame">Conformance Testing</a>
|
||||||
@@ -48,7 +48,6 @@ a:visited {
|
|||||||
<li><a href="lists.html" target="MainFrame">Mailing Lists</a>
|
<li><a href="lists.html" target="MainFrame">Mailing Lists</a>
|
||||||
<li><a href="bugs.html" target="MainFrame">Bug Database</a>
|
<li><a href="bugs.html" target="MainFrame">Bug Database</a>
|
||||||
<li><a href="webmaster.html" target="MainFrame">Webmaster</a>
|
<li><a href="webmaster.html" target="MainFrame">Webmaster</a>
|
||||||
<li><a href="http://dri.freedesktop.org/" target="MainFrame">Wiki</a>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<b>User Topics</b>
|
<b>User Topics</b>
|
||||||
@@ -65,18 +64,16 @@ a:visited {
|
|||||||
<b>Developer Topics</b>
|
<b>Developer Topics</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://sourceforge.net/projects/mesa3d" target="_parent">SourceForge homepage</a>
|
<li><a href="http://sourceforge.net/projects/mesa3d" target="_parent">SourceForge homepage</a>
|
||||||
<li><a href="repository.html" target="MainFrame">Source Code Repository</a>
|
<li><a href="cvs_access.html" target="MainFrame">CVS Access</a>
|
||||||
<li><a href="memory.html" target="MainFrame">DRI Memory Management</a>
|
<li><a href="cvs_branches.html" target="MainFrame">CVS Branch Info</a>
|
||||||
<li><a href="shading.html" target="MainFrame">Shading Language</a>
|
|
||||||
<li><a href="utilities.html" target="MainFrame">Utilities</a>
|
<li><a href="utilities.html" target="MainFrame">Utilities</a>
|
||||||
<li><a href="helpwanted.html" target="MainFrame">Help Wanted</a>
|
<li><a href="helpwanted.html" target="MainFrame">Help Wanted</a>
|
||||||
<li><a href="devinfo.html" target="MainFrame">Development Notes</a>
|
<li><a href="devinfo.html" target="MainFrame">Development Notes</a>
|
||||||
<li><a href="sourcedocs.html" target="MainFrame">Source Documentation</a>
|
<li><a href="sourcedocs.html" target="MainFrame">Source Documentation</a>
|
||||||
|
<li><a href="subset.html" target="MainFrame">Subset Information</a>
|
||||||
<li><a href="fbdev-dri.html" target="MainFrame">fbdev/DRI Environment</a>
|
<li><a href="fbdev-dri.html" target="MainFrame">fbdev/DRI Environment</a>
|
||||||
<li><a href="subset.html" target="MainFrame">Mesa Subset Driver</a>
|
|
||||||
<li><a href="glfbdev-driver.html" target="MainFrame">glFBDev Driver</a>
|
<li><a href="glfbdev-driver.html" target="MainFrame">glFBDev Driver</a>
|
||||||
<LI><A HREF="dispatch.html" target="MainFrame">GL Dispatch</A>
|
<LI><A HREF="custom.html" target="MainFrame">Custom Development</A>
|
||||||
<li><a href="cell.html" target="MainFrame">Cell Driver</A>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<b>Links</b>
|
<b>Links</b>
|
||||||
|
|||||||
27
docs/custom.html
Normal file
27
docs/custom.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<HTML>
|
||||||
|
|
||||||
|
<TITLE>Custom Development</TITLE>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||||
|
|
||||||
|
<BODY>
|
||||||
|
|
||||||
|
<H1>Custom Development</H1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mesa is primarily developed and maintained on a volunteer basis.
|
||||||
|
Some Mesa development work has been done in conjuction with contracted
|
||||||
|
projects, such as the XFree86/DRI drivers.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<pre>[Begin shameless plug]</pre>
|
||||||
|
If you have a need for specific or custom Mesa development work,
|
||||||
|
<a href="http://www.tungstengraphics.com/" target="_parent">
|
||||||
|
Tungsten Graphics, Inc.</a> may be able to help you.
|
||||||
|
<pre>[End shameless plug]</pre>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
106
docs/cvs_access.html
Normal file
106
docs/cvs_access.html
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
<HTML>
|
||||||
|
|
||||||
|
<TITLE>CVS Access</TITLE>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||||
|
|
||||||
|
<BODY>
|
||||||
|
|
||||||
|
<h1>CVS Access</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mesa's CVS repository (code management system) is hosted on
|
||||||
|
<a href="http://www.freedesktop.org" target="_parent">freedesktop.org</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
You may access the repository either as an
|
||||||
|
<a href="#anonymous">anonymous user</a> (read-only) or as a
|
||||||
|
<a href="#developer">developer</a>
|
||||||
|
(read/write).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
You may also
|
||||||
|
<a href="http://freedesktop.org/cgi-bin/viewcvs.cgi/mesa/Mesa/"
|
||||||
|
target="_parent">browse the CVS repository</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<a name="anonymous">
|
||||||
|
<H2>Anonymous CVS Access</H2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Anonymous, public, read-only access to the CVS repository is available.
|
||||||
|
Here are the basic instructions for Unix systems:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>Install CVS client software on your computer if needed.
|
||||||
|
Version 1.9.28 is known to work.
|
||||||
|
<li>Login as an anonymous user:
|
||||||
|
<pre>
|
||||||
|
cvs -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/mesa login
|
||||||
|
</pre>
|
||||||
|
Just press Enter/Return when prompted for a password.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<li>Check out the code:
|
||||||
|
<pre>
|
||||||
|
cvs -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/mesa co Mesa
|
||||||
|
</pre>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
<p>To update your Mesa CVS source to the latest CVS source:</p>
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li><code>cd Mesa</code>
|
||||||
|
<li><code>cvs -z3 -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/mesa update</code>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
<a name="developer">
|
||||||
|
<H2>Developer CVS Access</H2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mesa developers working with the Mesa CVS repository need to first
|
||||||
|
have an account on <a href="http://www.freedesktop.org" target="_parent">
|
||||||
|
freedesktop.org</a>.
|
||||||
|
To get an account, please ask Brian or the other Mesa developers for
|
||||||
|
permission.
|
||||||
|
Then, if there are no objections, follow this
|
||||||
|
<a href="http://www.freedesktop.org/wiki/AccountRequests" target="_parent">
|
||||||
|
procedure</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Once your account is established, you can check out the Mesa CVS tree
|
||||||
|
with:
|
||||||
|
<pre>
|
||||||
|
setenv CVS_RSH ssh (if using a csh-like shell)
|
||||||
|
</pre>
|
||||||
|
<em>OR</em>
|
||||||
|
<pre>
|
||||||
|
export CVS_RSH=rsh (if using a bash-like shell)
|
||||||
|
</pre>
|
||||||
|
followed by:
|
||||||
|
<pre>
|
||||||
|
cvs -d:ext:yourusername@cvs.freedesktop.org:/cvs/mesa co Mesa
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Of course, replace <em>yourusername</em> with your actual login name.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Subsequent updates should only require:
|
||||||
|
</p>
|
||||||
|
<pre>
|
||||||
|
cvs update
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
80
docs/cvs_branches.html
Normal file
80
docs/cvs_branches.html
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
<HTML>
|
||||||
|
|
||||||
|
<TITLE>CVS Branches</TITLE>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
|
||||||
|
|
||||||
|
<BODY>
|
||||||
|
|
||||||
|
<H1>CVS Branch Information</H1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
At any given time, there may be several active branches in Mesa's
|
||||||
|
CVS repository.
|
||||||
|
|
||||||
|
Generally, the CVS trunk contains the latest development (unstable)
|
||||||
|
code while a CVS branch has the latest stable code.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Currently (Oct 2004), the trunk is the Mesa 6.3 development code
|
||||||
|
while the mesa_6_2_branch branch has the stable Mesa 6.2.x code.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mesa releases use an even/odd numbering scheme to represent stable/development
|
||||||
|
releases.
|
||||||
|
|
||||||
|
For example, Mesa 6.2 (0 is considered even) is a stable release while
|
||||||
|
Mesa 6.3 is a development release.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To checkout a specific CVS branch pass <code>-r</code> and
|
||||||
|
the branch tag after your CVS command.
|
||||||
|
|
||||||
|
For example <code>cvs checkout -r mesa_6_2_branch Mesa</code> will
|
||||||
|
checkout the 6.2 branch and <code>cvs update -r
|
||||||
|
mesa_6_2_branch</code> will convert your current CVS tree to the 6.2
|
||||||
|
branch.
|
||||||
|
|
||||||
|
Consult <a href="http://www.durak.org/cvswebsites/doc/cvs_5.php3#SEC54"
|
||||||
|
target="_parent">http://www.durak.org/cvswebsites/doc/cvs_5.php3#SEC54</a>
|
||||||
|
for more on branching in CVS.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To see a list of all the CVS branches run <code>cvs log README</code> (or any
|
||||||
|
other file) and look for the section labeled <code>symbolic names</code>.
|
||||||
|
You'll see something like this:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<pre> symbolic names:
|
||||||
|
mesa_4_0: 1.3
|
||||||
|
mesa_4_0_branch: 1.3.0.6
|
||||||
|
mesa_3_5: 1.3
|
||||||
|
mesa_3_4_2: 1.3
|
||||||
|
mesa_3_4_1: 1.3
|
||||||
|
mesa_3_4: 1.3
|
||||||
|
mesa_3_4_branch: 1.3.0.4
|
||||||
|
mesa_3_3: 1.3
|
||||||
|
mesa_3_2_1: 1.1.1.1
|
||||||
|
mesa_3_3_texture_env_combine2: 1.3.0.2
|
||||||
|
mesa_3_2: 1.1.1.1
|
||||||
|
mesa_3_2_beta_1: 1.1.1.1
|
||||||
|
mesa_3_1: 1.1.1.1
|
||||||
|
mesa_3_2_dev: 1.1.1.1.0.2
|
||||||
|
mesa_3_1_beta_3: 1.1.1.1
|
||||||
|
start: 1.1.1.1
|
||||||
|
mesa: 1.1.1
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Most will be obsolete branches. Generally, the newer branches are at
|
||||||
|
the top. Ask on the mesa3d-dev mailing list to learn which branches
|
||||||
|
are active.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user