From 01df5d59e56a1b060568f8cad2e89f7eea22fc70 Mon Sep 17 00:00:00 2001
From: marha
Date: Mon, 29 Aug 2011 08:51:20 +0200
Subject: xwininfo libX11 libXmu libxcb mesa xserver xkeyboard-config git
update 29 aug 2011
---
mesalib/.emacs-dirvars | 10 +
mesalib/Android.common.mk | 48 +
mesalib/Android.mk | 189 +
mesalib/Makefile | 1 -
mesalib/bin/mklib | 16 -
mesalib/common.py | 1 +
mesalib/configs/beos | 102 -
mesalib/configs/darwin | 1 -
mesalib/configs/default | 2 +-
mesalib/configs/freebsd-dri | 5 +-
mesalib/configs/linux-cell | 1 -
mesalib/configs/linux-dri | 3 +-
mesalib/configs/linux-dri-debug | 2 -
mesalib/configs/linux-dri-ppc | 2 +-
mesalib/configs/linux-dri-x86-64 | 6 +-
mesalib/configs/linux-dri-xcb | 5 +-
mesalib/configs/linux-fbdev | 16 -
mesalib/configs/linux-indirect | 2 +-
mesalib/configure.ac | 99 +-
mesalib/docs/GL3.txt | 2 +-
mesalib/docs/README.BEOS | 136 -
mesalib/docs/autoconf.html | 7 -
mesalib/docs/contents.html | 211 +-
mesalib/docs/devinfo.html | 33 +
mesalib/docs/dispatch.html | 4 +-
mesalib/docs/download.html | 1 -
mesalib/docs/faq.html | 7 +-
mesalib/docs/fbdev-dri.html | 343 --
mesalib/docs/glfbdev-driver.html | 111 -
mesalib/docs/install.html | 18 -
mesalib/docs/libGL.txt | 394 +--
mesalib/docs/postprocess.html | 56 +
mesalib/docs/sourcetree.html | 2 -
mesalib/docs/subset.html | 2 +-
mesalib/docs/systems.html | 8 +-
mesalib/include/EGL/eglext.h | 14 +
mesalib/include/EGL/eglplatform.h | 9 +
mesalib/include/GL/internal/dri_interface.h | 3 +
mesalib/include/GL/osmesa.h | 8 +-
mesalib/scons/crossmingw.py | 38 +
mesalib/scons/custom.py | 36 +
mesalib/scons/gallium.py | 12 +
mesalib/scons/llvm.py | 18 +-
mesalib/scons/source_list.py | 123 +
mesalib/src/gallium/auxiliary/util/u_blitter.c | 45 +-
mesalib/src/gallium/auxiliary/util/u_blitter.h | 679 ++--
mesalib/src/gallium/auxiliary/util/u_math.h | 12 +-
mesalib/src/gallium/auxiliary/util/u_vbuf_mgr.c | 46 +-
mesalib/src/gallium/auxiliary/util/u_vbuf_mgr.h | 17 +
mesalib/src/glsl/.dir-locals.el | 3 +
mesalib/src/glsl/Android.gen.mk | 98 +
mesalib/src/glsl/Android.mk | 171 +
mesalib/src/glsl/ast_function.cpp | 78 +-
mesalib/src/glsl/ast_to_hir.cpp | 21 +-
mesalib/src/glsl/glcpp/glcpp-parse.y | 4 +-
mesalib/src/glsl/glsl_parser.yy | 4 +-
mesalib/src/glsl/glsl_parser_extras.cpp | 1 +
mesalib/src/glsl/glsl_parser_extras.h | 2 +
mesalib/src/glsl/ir.cpp | 20 +-
mesalib/src/glsl/ir.h | 24 +-
mesalib/src/glsl/ir_clone.cpp | 4 +-
mesalib/src/glsl/ir_hv_accept.cpp | 9 +-
mesalib/src/glsl/ir_print_visitor.cpp | 21 +-
mesalib/src/glsl/ir_reader.cpp | 37 +-
mesalib/src/glsl/ir_rvalue_visitor.cpp | 1 +
mesalib/src/glsl/ir_validate.cpp | 41 +-
mesalib/src/glsl/linker.cpp | 2 +-
mesalib/src/glsl/lower_if_to_cond_assign.cpp | 141 +-
mesalib/src/glsl/lower_instructions.cpp | 4 +
mesalib/src/glsl/main.cpp | 1 -
mesalib/src/glsl/opt_tree_grafting.cpp | 1 +
mesalib/src/glsl/ralloc.c | 5 +
mesalib/src/glsl/standalone_scaffolding.cpp | 2 +
mesalib/src/mapi/glapi/SConscript | 5 +
mesalib/src/mapi/glapi/gen-es/Makefile | 91 -
mesalib/src/mapi/glapi/gen-es/base1_API.xml | 744 ----
mesalib/src/mapi/glapi/gen-es/base2_API.xml | 533 ---
mesalib/src/mapi/glapi/gen-es/es1_API.xml | 1100 ------
mesalib/src/mapi/glapi/gen-es/es1_COMPAT.xml | 135 -
mesalib/src/mapi/glapi/gen-es/es1_EXT.xml | 699 ----
mesalib/src/mapi/glapi/gen-es/es2_API.xml | 294 --
mesalib/src/mapi/glapi/gen-es/es2_COMPAT.xml | 368 --
mesalib/src/mapi/glapi/gen-es/es2_EXT.xml | 162 -
mesalib/src/mapi/glapi/gen-es/es_COMPAT.xml | 2646 --------------
mesalib/src/mapi/glapi/gen-es/es_EXT.xml | 125 -
mesalib/src/mapi/glapi/gen-es/gl_compare.py | 354 --
mesalib/src/mapi/glapi/gen-es/gl_parse_header.py | 450 ---
mesalib/src/mapi/glapi/gen/Makefile | 6 +-
mesalib/src/mapi/glapi/gen/gl_XML.py | 46 +-
mesalib/src/mapi/glapi/gen/gl_and_es_API.xml | 5 +
mesalib/src/mapi/glapi/gen/gl_apitemp.py | 7 +
mesalib/src/mapi/glapi/gen/gl_table.py | 20 +-
mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py | 2 +-
mesalib/src/mapi/glapi/gen/gl_x86_asm.py | 538 +--
mesalib/src/mapi/glapi/gen/glapi_gen.mk | 44 +
mesalib/src/mapi/glapi/gen/gles_api.py | 452 +++
mesalib/src/mapi/glapi/gen/remap_helper.py | 18 +-
mesalib/src/mapi/glapi/glapi_gentable.c | 7 +
mesalib/src/mapi/glapi/glapi_mapi_tmp.h | 11 +
mesalib/src/mapi/glapi/glapi_sparc.S | 1 +
mesalib/src/mapi/glapi/glapi_x86-64.S | 3 +-
mesalib/src/mapi/glapi/glapi_x86.S | 3 +-
mesalib/src/mapi/glapi/glapitemp.h | 1267 +++++++
mesalib/src/mapi/glapi/glprocs.h | 40 +-
mesalib/src/mapi/mapi/mapi_abi.py | 435 +--
mesalib/src/mapi/mapi/u_thread.c | 39 -
mesalib/src/mapi/mapi/u_thread.h | 58 +-
mesalib/src/mesa/Android.gen.mk | 131 +
mesalib/src/mesa/Android.mk | 115 +
mesalib/src/mesa/Makefile | 20 +
mesalib/src/mesa/Makefile.mgw | 22 +-
mesalib/src/mesa/SConscript | 25 +-
mesalib/src/mesa/drivers/common/driverfuncs.c | 13 +-
mesalib/src/mesa/drivers/common/meta.c | 263 +-
mesalib/src/mesa/drivers/common/meta.h | 33 +
.../src/mesa/drivers/dri/common/drirenderbuffer.h | 150 +-
mesalib/src/mesa/drivers/dri/common/mmx.h | 560 ---
mesalib/src/mesa/drivers/dri/common/spantmp.h | 325 --
mesalib/src/mesa/drivers/dri/common/xmlconfig.c | 2 +-
mesalib/src/mesa/drivers/dri/common/xmlpool.h | 2 +-
.../src/mesa/drivers/dri/common/xmlpool/options.h | 60 +
.../mesa/drivers/dri/common/xmlpool/t_options.h | 30 +
mesalib/src/mesa/drivers/windows/gldirect/ddlog.c | 192 -
mesalib/src/mesa/drivers/windows/gldirect/ddlog.h | 109 -
.../src/mesa/drivers/windows/gldirect/dglcontext.c | 2212 ------------
.../src/mesa/drivers/windows/gldirect/dglcontext.h | 281 --
.../src/mesa/drivers/windows/gldirect/dglglobals.c | 149 -
.../src/mesa/drivers/windows/gldirect/dglglobals.h | 198 --
.../src/mesa/drivers/windows/gldirect/dglmacros.h | 91 -
mesalib/src/mesa/drivers/windows/gldirect/dglpf.c | 620 ----
mesalib/src/mesa/drivers/windows/gldirect/dglpf.h | 77 -
mesalib/src/mesa/drivers/windows/gldirect/dglwgl.c | 2964 ----------------
mesalib/src/mesa/drivers/windows/gldirect/dglwgl.h | 127 -
.../src/mesa/drivers/windows/gldirect/dll_main.c | 817 -----
.../src/mesa/drivers/windows/gldirect/dllmain.h | 64 -
.../drivers/windows/gldirect/dx9/gld_driver_dx9.c | 1204 -------
.../mesa/drivers/windows/gldirect/dx9/gld_dx9.h | 327 --
.../mesa/drivers/windows/gldirect/dx9/gld_dxerr9.h | 77 -
.../drivers/windows/gldirect/dx9/gld_ext_dx9.c | 344 --
.../windows/gldirect/dx9/gld_pipeline_dx9.c | 77 -
.../windows/gldirect/dx9/gld_primitive_dx9.c | 1445 --------
.../drivers/windows/gldirect/dx9/gld_texture_dx9.c | 2104 -----------
.../windows/gldirect/dx9/gld_vb_d3d_render_dx9.c | 263 --
.../windows/gldirect/dx9/gld_vb_mesa_render_dx9.c | 443 ---
.../drivers/windows/gldirect/dx9/gld_wgl_dx9.c | 1346 -------
.../mesa/drivers/windows/gldirect/gld_debug_clip.c | 39 -
.../mesa/drivers/windows/gldirect/gld_debug_norm.c | 39 -
.../drivers/windows/gldirect/gld_debug_xform.c | 41 -
.../mesa/drivers/windows/gldirect/gld_dispatch.c | 73 -
.../src/mesa/drivers/windows/gldirect/gld_driver.c | 279 --
.../src/mesa/drivers/windows/gldirect/gld_driver.h | 90 -
.../src/mesa/drivers/windows/gldirect/gldirect.rc | 43 -
.../src/mesa/drivers/windows/gldirect/gldlame8.c | 181 -
.../mesa/drivers/windows/gldirect/mesasw/colors.h | 520 ---
.../windows/gldirect/mesasw/gld_wgl_mesasw.c | 1681 ---------
.../src/mesa/drivers/windows/gldirect/opengl32.def | 488 ---
.../src/mesa/drivers/windows/gldirect/opengl32.ref | 495 ---
.../src/mesa/drivers/windows/gldirect/pixpack.h | 108 -
mesalib/src/mesa/drivers/windows/icd/icd.c | 347 --
mesalib/src/mesa/drivers/windows/icd/icdlist.h | 336 --
mesalib/src/mesa/drivers/windows/icd/mesa.def | 102 -
mesalib/src/mesa/main/api_arrayelt.c | 12 +-
mesalib/src/mesa/main/api_validate.c | 6 +-
mesalib/src/mesa/main/bufferobj.c | 84 +-
mesalib/src/mesa/main/compiler.h | 3 -
mesalib/src/mesa/main/dd.h | 15 +-
mesalib/src/mesa/main/debug.c | 1257 ++++---
mesalib/src/mesa/main/dlist.c | 7 +-
mesalib/src/mesa/main/drawtex.c | 270 +-
mesalib/src/mesa/main/enums.c | 3549 +++++++++----------
mesalib/src/mesa/main/es_generator.py | 4 +-
mesalib/src/mesa/main/extensions.c | 2009 +++++------
mesalib/src/mesa/main/fbobject.c | 82 +-
mesalib/src/mesa/main/imports.c | 3 +-
mesalib/src/mesa/main/imports.h | 8 +-
mesalib/src/mesa/main/mtypes.h | 9 +
mesalib/src/mesa/main/pbo.c | 33 +-
mesalib/src/mesa/main/querymatrix.c | 424 +--
mesalib/src/mesa/main/remap_helper.h | 3732 ++++++++++----------
mesalib/src/mesa/main/shared.c | 2 +-
mesalib/src/mesa/main/texgetimage.c | 14 +-
mesalib/src/mesa/main/teximage.c | 2 +
mesalib/src/mesa/main/uniforms.c | 18 +-
mesalib/src/mesa/program/ir_to_mesa.cpp | 179 +-
mesalib/src/mesa/program/prog_execute.c | 10 +-
mesalib/src/mesa/program/prog_opt_constant_fold.c | 451 +++
mesalib/src/mesa/program/prog_optimize.c | 2 +
mesalib/src/mesa/program/prog_optimize.h | 97 +-
mesalib/src/mesa/program/register_allocate.c | 21 +
mesalib/src/mesa/program/register_allocate.h | 2 +
mesalib/src/mesa/sources.mak | 1 +
.../src/mesa/state_tracker/st_cb_bufferobjects.c | 51 +-
mesalib/src/mesa/state_tracker/st_cb_texture.c | 30 +-
mesalib/src/mesa/state_tracker/st_gen_mipmap.c | 1 -
mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 365 +-
mesalib/src/mesa/state_tracker/st_glsl_to_tgsi.h | 1 -
mesalib/src/mesa/state_tracker/st_texture.c | 4 +-
mesalib/src/mesa/state_tracker/st_texture.h | 5 -
mesalib/src/mesa/swrast/s_aatritemp.h | 674 ++--
mesalib/src/mesa/swrast/s_context.c | 105 +-
mesalib/src/mesa/swrast/s_stencil.c | 2491 ++++++-------
mesalib/src/mesa/swrast/s_texcombine.c | 1506 ++++----
mesalib/src/mesa/tnl/NOTES | 200 +-
mesalib/src/mesa/tnl/t_draw.c | 39 +-
mesalib/src/mesa/tnl/t_pipeline.c | 432 +--
mesalib/src/mesa/vbo/vbo_exec_api.c | 38 +-
mesalib/src/mesa/vbo/vbo_exec_array.c | 60 +-
mesalib/src/mesa/vbo/vbo_exec_draw.c | 843 +++--
mesalib/src/mesa/vbo/vbo_rebase.c | 10 +-
mesalib/src/mesa/vbo/vbo_save_api.c | 11 +-
mesalib/src/mesa/vbo/vbo_save_draw.c | 14 +-
mesalib/src/mesa/vbo/vbo_split.c | 337 +-
mesalib/src/mesa/vbo/vbo_split_copy.c | 1254 +++----
213 files changed, 15409 insertions(+), 41821 deletions(-)
create mode 100644 mesalib/.emacs-dirvars
create mode 100644 mesalib/Android.common.mk
create mode 100644 mesalib/Android.mk
delete mode 100644 mesalib/configs/beos
delete mode 100644 mesalib/configs/linux-fbdev
delete mode 100644 mesalib/docs/README.BEOS
delete mode 100644 mesalib/docs/fbdev-dri.html
delete mode 100644 mesalib/docs/glfbdev-driver.html
create mode 100644 mesalib/docs/postprocess.html
create mode 100644 mesalib/scons/source_list.py
create mode 100644 mesalib/src/glsl/.dir-locals.el
create mode 100644 mesalib/src/glsl/Android.gen.mk
create mode 100644 mesalib/src/glsl/Android.mk
delete mode 100644 mesalib/src/mapi/glapi/gen-es/Makefile
delete mode 100644 mesalib/src/mapi/glapi/gen-es/base1_API.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/base2_API.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es1_API.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es1_COMPAT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es1_EXT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es2_API.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es2_COMPAT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es2_EXT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es_COMPAT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/es_EXT.xml
delete mode 100644 mesalib/src/mapi/glapi/gen-es/gl_compare.py
delete mode 100644 mesalib/src/mapi/glapi/gen-es/gl_parse_header.py
create mode 100644 mesalib/src/mapi/glapi/gen/glapi_gen.mk
create mode 100644 mesalib/src/mapi/glapi/gen/gles_api.py
create mode 100644 mesalib/src/mesa/Android.gen.mk
create mode 100644 mesalib/src/mesa/Android.mk
delete mode 100644 mesalib/src/mesa/drivers/dri/common/mmx.h
delete mode 100644 mesalib/src/mesa/drivers/dri/common/spantmp.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/ddlog.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/ddlog.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglcontext.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglcontext.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglglobals.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglglobals.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglmacros.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglpf.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglpf.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglwgl.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dglwgl.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dll_main.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dllmain.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_driver_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_dx9.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_dxerr9.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_ext_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_pipeline_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_primitive_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_vb_d3d_render_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/dx9/gld_wgl_dx9.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_debug_clip.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_debug_norm.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_debug_xform.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_dispatch.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_driver.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gld_driver.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gldirect.rc
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/gldlame8.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/mesasw/colors.h
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/mesasw/gld_wgl_mesasw.c
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/opengl32.def
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/opengl32.ref
delete mode 100644 mesalib/src/mesa/drivers/windows/gldirect/pixpack.h
delete mode 100644 mesalib/src/mesa/drivers/windows/icd/icd.c
delete mode 100644 mesalib/src/mesa/drivers/windows/icd/icdlist.h
delete mode 100644 mesalib/src/mesa/drivers/windows/icd/mesa.def
create mode 100644 mesalib/src/mesa/program/prog_opt_constant_fold.c
(limited to 'mesalib')
diff --git a/mesalib/.emacs-dirvars b/mesalib/.emacs-dirvars
new file mode 100644
index 000000000..33945f91e
--- /dev/null
+++ b/mesalib/.emacs-dirvars
@@ -0,0 +1,10 @@
+;; -*- emacs-lisp -*-
+;;
+;; This file is processed by the dirvars emacs package. Each variable
+;; setting below is performed when this dirvars file is loaded.
+;;
+indent-tabs-mode: nil
+tab-width: 8
+c-basic-offset: 3
+kde-emacs-after-parent-string: ""
+evaluate: (c-set-offset 'inline-open '0)
diff --git a/mesalib/Android.common.mk b/mesalib/Android.common.mk
new file mode 100644
index 000000000..83177a0cb
--- /dev/null
+++ b/mesalib/Android.common.mk
@@ -0,0 +1,48 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu
+# Copyright (C) 2010-2011 LunarG Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+LOCAL_C_INCLUDES += \
+ $(MESA_TOP)/include
+
+LOCAL_CFLAGS += \
+ -DPTHREADS \
+ -fvisibility=hidden \
+ -Wno-sign-compare
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+LOCAL_CFLAGS += \
+ -DUSE_X86_ASM
+endif
+endif
+
+LOCAL_CPPFLAGS += \
+ -Wno-error=non-virtual-dtor \
+ -Wno-non-virtual-dtor
+
+# uncomment to keep the debug symbols
+#LOCAL_STRIP_MODULE := false
+
+ifeq ($(strip $(LOCAL_MODULE_TAGS)),)
+LOCAL_MODULE_TAGS := optional
+endif
diff --git a/mesalib/Android.mk b/mesalib/Android.mk
new file mode 100644
index 000000000..bc4b74e30
--- /dev/null
+++ b/mesalib/Android.mk
@@ -0,0 +1,189 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu
+# Copyright (C) 2010-2011 LunarG Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+# BOARD_GPU_DRIVERS should be defined. The valid values are
+#
+# classic drivers:
+# gallium drivers: swrast i915g nouveau r300g r600g vmwgfx
+#
+# The main target is libGLES_mesa. For each classic driver enabled, a DRI
+# module will also be built. DRI modules will be loaded by libGLES_mesa.
+
+MESA_TOP := $(call my-dir)
+MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk
+MESA_PYTHON2 := python
+
+DRM_TOP := external/drm
+DRM_GRALLOC_TOP := hardware/drm_gralloc
+
+classic_drivers :=
+gallium_drivers := swrast i915g nouveau r300g r600g vmwgfx
+
+MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS))
+
+# warn about invalid drivers
+invalid_drivers := $(filter-out \
+ $(classic_drivers) $(gallium_drivers), $(MESA_GPU_DRIVERS))
+ifneq ($(invalid_drivers),)
+$(warning invalid GPU drivers: $(invalid_drivers))
+# tidy up
+MESA_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(MESA_GPU_DRIVERS))
+endif
+
+# host and target must be the same arch to generate matypes.h
+ifeq ($(TARGET_ARCH),$(HOST_ARCH))
+MESA_ENABLE_ASM := true
+else
+MESA_ENABLE_ASM := false
+endif
+
+ifneq ($(filter $(classic_drivers), $(MESA_GPU_DRIVERS)),)
+MESA_BUILD_CLASSIC := true
+else
+MESA_BUILD_CLASSIC := false
+endif
+
+ifneq ($(filter $(gallium_drivers), $(MESA_GPU_DRIVERS)),)
+MESA_BUILD_GALLIUM := true
+else
+MESA_BUILD_GALLIUM := false
+endif
+
+ifneq ($(strip $(MESA_GPU_DRIVERS)),)
+
+SUBDIRS := \
+ src/mapi \
+ src/glsl \
+ src/mesa \
+ src/egl/main
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+SUBDIRS += src/egl/drivers/dri2
+endif
+
+ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
+SUBDIRS += src/gallium
+endif
+
+# ---------------------------------------
+# Build libGLES_mesa
+# ---------------------------------------
+
+LOCAL_PATH := $(MESA_TOP)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES :=
+LOCAL_CFLAGS :=
+LOCAL_C_INCLUDES :=
+
+LOCAL_STATIC_LIBRARIES :=
+LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_egl
+
+LOCAL_SHARED_LIBRARIES := \
+ libglapi \
+ libdl \
+ libhardware \
+ liblog \
+ libcutils
+
+# hardware drivers require DRM
+ifneq ($(MESA_GPU_DRIVERS),swrast)
+LOCAL_SHARED_LIBRARIES += libdrm
+endif
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
+endif
+
+ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
+
+gallium_DRIVERS :=
+
+# swrast
+gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_android
+
+# i915g
+ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_i915 libmesa_pipe_i915
+LOCAL_SHARED_LIBRARIES += libdrm_intel
+endif
+
+# nouveau
+ifneq ($(filter nouveau, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += \
+ libmesa_winsys_nouveau \
+ libmesa_pipe_nvc0 \
+ libmesa_pipe_nv50 \
+ libmesa_pipe_nvfx \
+ libmesa_pipe_nouveau
+LOCAL_SHARED_LIBRARIES += libdrm_nouveau
+endif
+
+# r300g/r600g
+ifneq ($(filter r300g r600g, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_radeon
+ifneq ($(filter r300g, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_r300
+endif
+ifneq ($(filter r600g, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_r600 libmesa_winsys_r600
+endif
+endif
+
+# vmwgfx
+ifneq ($(filter vmwgfx, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_svga libmesa_pipe_svga
+endif
+
+#
+# Notes about the order here:
+#
+# * libmesa_st_egl depends on libmesa_winsys_sw_android in $(gallium_DRIVERS)
+# * libmesa_pipe_r300 in $(gallium_DRIVERS) depends on libmesa_st_mesa and
+# libmesa_glsl
+# * libmesa_st_mesa depends on libmesa_glsl
+# * libmesa_glsl depends on libmesa_glsl_utils
+#
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_egl_gallium \
+ libmesa_st_egl \
+ $(gallium_DRIVERS) \
+ libmesa_st_mesa \
+ libmesa_glsl \
+ libmesa_glsl_utils \
+ libmesa_gallium \
+ $(LOCAL_STATIC_LIBRARIES)
+
+endif # MESA_BUILD_GALLIUM
+
+LOCAL_MODULE := libGLES_mesa
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
+
+include $(MESA_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
+
+mkfiles := $(patsubst %,$(MESA_TOP)/%/Android.mk,$(SUBDIRS))
+include $(mkfiles)
+
+endif # MESA_GPU_DRIVERS
diff --git a/mesalib/Makefile b/mesalib/Makefile
index 916c49841..d65d4c496 100644
--- a/mesalib/Makefile
+++ b/mesalib/Makefile
@@ -82,7 +82,6 @@ aix-static \
autoconf \
bluegene-osmesa \
bluegene-xlc-osmesa \
-beos \
catamount-osmesa-pgi \
darwin \
darwin-fat-32bit \
diff --git a/mesalib/bin/mklib b/mesalib/bin/mklib
index 2c7ed3880..fd87aad42 100644
--- a/mesalib/bin/mklib
+++ b/mesalib/bin/mklib
@@ -802,22 +802,6 @@ case $ARCH in
FINAL_LIBS=`make_ar_static_lib -ru 0 ${LIBNAME} ${OBJECTS}`
;;
- 'BeOS')
- if [ $STATIC = 1 ] ; then
- LIBNAME="lib${LIBNAME}.a"
- echo "mklib: Making BeOS static library: " ${LIBNAME}
- FINAL_LIBS=`make_ar_static_lib -cru 0 ${LIBNAME} ${OBJECTS}`
- else
- LIBNAME="lib${LIBNAME}.so"
- echo "mklib: Making BeOS shared library: " ${LIBNAME}
- gcc -nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}"
- mimeset -f "${LIBNAME}"
- # XXX remove the Mesa3D stuff here since mklib isn't mesa-specific.
- setversion "${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D!" -long "Powered by Mesa3D!"
- fi
- FINAL_LIBS=${LIBNAME}
- ;;
-
'QNX')
LIBNAME="lib${LIBNAME}.a"
echo "mklib: Making QNX library: " ${LIBNAME}
diff --git a/mesalib/common.py b/mesalib/common.py
index 8657030ea..cfee1b5dc 100644
--- a/mesalib/common.py
+++ b/mesalib/common.py
@@ -88,6 +88,7 @@ def AddOptions(opts):
opts.Add('toolchain', 'compiler toolchain', default_toolchain)
opts.Add(BoolOption('gles', 'EXPERIMENTAL: enable OpenGL ES support', 'no'))
opts.Add(BoolOption('llvm', 'use LLVM', default_llvm))
+ opts.Add(BoolOption('openmp', 'EXPERIMENTAL: compile with openmp (swrast)', 'no'))
opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes'))
opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no'))
opts.Add(BoolOption('quiet', 'DEPRECATED: profile build', 'yes'))
diff --git a/mesalib/configs/beos b/mesalib/configs/beos
deleted file mode 100644
index 91ea6f768..000000000
--- a/mesalib/configs/beos
+++ /dev/null
@@ -1,102 +0,0 @@
-# Configuration for BeOS
-# Written by Philippe Houdoin
-
-include $(TOP)/configs/default
-
-CONFIG_NAME = beos
-
-
-DEFINES = \
- -DBEOS_THREADS
-
-MACHINE=$(shell uname -m)
-ifeq ($(MACHINE), BePC)
- CPU = x86
-else
- CPU = ppc
-endif
-
-ifeq ($(CPU), x86)
- # BeOS x86 settings
-
- DEFINES += \
- -DGNU_ASSEMBLER \
- -DUSE_X86_ASM \
- -DUSE_MMX_ASM \
- -DUSE_3DNOW_ASM \
- -DUSE_SSE_ASM
-
- MESA_ASM_SOURCES = $(X86_SOURCES)
- GLAPI_ASM_SOURCES = $(X86_API)
-
- CC = gcc
- CXX = g++
- LD = gcc
-
- CFLAGS = \
- -Wall -Wno-multichar -Wno-ctor-dtor-privacy \
- $(DEFINES)
-
- CXXFLAGS = $(CFLAGS)
-
- # Work around aliasing bugs - developers should comment this out
- CFLAGS += -fno-strict-aliasing
- CXXFLAGS += -fno-strict-aliasing
-
- LDFLAGS += -Xlinker
-
- ifdef DEBUG
- CFLAGS += -g -O0
- LDFLAGS += -g
- DEFINES += -DDEBUG
- else
- CFLAGS += -O3
- endif
-
- GLUT_CFLAGS = -fexceptions
-
-else
- # BeOS PPC settings
-
- CC = mwcc
- CXX = $(CC)
- LD = mwldppc
-
- CFLAGS = \
- -w on -requireprotos \
- $(DEFINES)
-
- CXXFLAGS = $(CFLAGS)
-
- LDFLAGS += \
- -export pragma \
- -init _init_routine_ \
- -term _term_routine_ \
- -lroot \
- /boot/develop/lib/ppc/glue-noinit.a \
- /boot/develop/lib/ppc/init_term_dyn.o \
- /boot/develop/lib/ppc/start_dyn.o
-
- ifdef DEBUG
- CFLAGS += -g -O0
- CXXFLAGS += -g -O0
- LDFLAGS += -g
- else
- CFLAGS += -O7
- CXXFLAGS += -O7
- endif
-
- GLUT_CFLAGS = -fexceptions
-endif
-
-# Directories
-SRC_DIRS = gallium mesa glu
-GLU_DIRS = sgi
-DRIVER_DIRS = beos
-
-# Library/program dependencies
-GL_LIB_DEPS =
-OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
-GLU_LIB_DEPS =
-APP_LIB_DEPS = -lbe -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLUT_LIB)
-
diff --git a/mesalib/configs/darwin b/mesalib/configs/darwin
index 41e7ba800..83f417ce0 100644
--- a/mesalib/configs/darwin
+++ b/mesalib/configs/darwin
@@ -50,7 +50,6 @@ GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
-# omit glw lib for now:
SRC_DIRS = glsl mapi/glapi mapi/vgapi glx/apple mesa gallium glu
GLU_DIRS = sgi
DRIVER_DIRS = osmesa
diff --git a/mesalib/configs/default b/mesalib/configs/default
index e839a1e50..078c85e8b 100644
--- a/mesalib/configs/default
+++ b/mesalib/configs/default
@@ -105,7 +105,7 @@ MOTIF_CFLAGS = -I/usr/include/Motif1.2
# Directories to build
LIB_DIR = lib
SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
- gallium egl gallium/winsys gallium/targets glu glw
+ gallium egl gallium/winsys gallium/targets glu
GLU_DIRS = sgi
DRIVER_DIRS = x11 osmesa
diff --git a/mesalib/configs/freebsd-dri b/mesalib/configs/freebsd-dri
index fdf4b293a..c4169b81d 100644
--- a/mesalib/configs/freebsd-dri
+++ b/mesalib/configs/freebsd-dri
@@ -42,11 +42,10 @@ GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
# Directories
-SRC_DIRS = glx gallium mesa glu glw
+SRC_DIRS = glx gallium mesa glu
DRIVER_DIRS = dri
DRM_SOURCE_PATH=$(TOP)/../drm
-DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
- unichrome savage sis
+DRI_DIRS = i915 i965 r200 r300 radeon
diff --git a/mesalib/configs/linux-cell b/mesalib/configs/linux-cell
index e87e69a80..7f38da971 100644
--- a/mesalib/configs/linux-cell
+++ b/mesalib/configs/linux-cell
@@ -36,7 +36,6 @@ CFLAGS = $(COMMON_C_CPP_FLAGS) -Wmissing-prototypes -std=c99
CXXFLAGS = $(COMMON_C_CPP_FLAGS)
-# Omitting glw here:
SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
gallium gallium/winsys gallium/targets glu
diff --git a/mesalib/configs/linux-dri b/mesalib/configs/linux-dri
index b82481e0f..26c73ccf0 100644
--- a/mesalib/configs/linux-dri
+++ b/mesalib/configs/linux-dri
@@ -62,8 +62,7 @@ GALLIUM_WINSYS_DIRS = sw sw/xlib drm/vmware drm/intel drm/i965
GALLIUM_TARGET_DIRS =
GALLIUM_STATE_TRACKERS_DIRS = egl
-DRI_DIRS = i810 i915 i965 mach64 mga nouveau r128 r200 r300 r600 radeon \
- savage sis tdfx unichrome swrast
+DRI_DIRS = i915 i965 nouveau r200 r300 r600 radeon swrast
INTEL_LIBS = $(shell pkg-config --libs libdrm_intel)
INTEL_CFLAGS = $(shell pkg-config --cflags libdrm_intel)
diff --git a/mesalib/configs/linux-dri-debug b/mesalib/configs/linux-dri-debug
index 0dbf42883..c42654ce3 100644
--- a/mesalib/configs/linux-dri-debug
+++ b/mesalib/configs/linux-dri-debug
@@ -11,6 +11,4 @@ ARCH_FLAGS = -DDEBUG
#DRI_DIRS = i915tex i915
#DRI_DIRS = i965
#DRI_DIRS = radeon r200 r300
-#DRI_DIRS = unichrome sis
-#DRI_DIRS = i810 mga r128 tdfx
diff --git a/mesalib/configs/linux-dri-ppc b/mesalib/configs/linux-dri-ppc
index a3a3ca83c..cc1ab9c4f 100644
--- a/mesalib/configs/linux-dri-ppc
+++ b/mesalib/configs/linux-dri-ppc
@@ -13,5 +13,5 @@ MESA_ASM_SOURCES = $(PPC_SOURCES)
# Build only the drivers for cards that exist on PowerPC. At some point MGA
# will be added, but not yet.
-DRI_DIRS = mach64 r128 r200 r300 radeon tdfx
+DRI_DIRS = r200 r300 radeon
diff --git a/mesalib/configs/linux-dri-x86-64 b/mesalib/configs/linux-dri-x86-64
index 656cf6140..84f547812 100644
--- a/mesalib/configs/linux-dri-x86-64
+++ b/mesalib/configs/linux-dri-x86-64
@@ -16,9 +16,5 @@ LIB_DIR = lib64
# Library/program dependencies
EXTRA_LIB_PATH=-L/usr/X11R6/lib64
-# sis is missing because it has not been converted to use
-# the new interface. i810 are missing because there is no x86-64
-# system where they could *ever* be used.
-#
-DRI_DIRS = i915 i965 mach64 mga r128 r200 r300 radeon savage tdfx unichrome
+DRI_DIRS = i915 i965 r200 r300 radeon
diff --git a/mesalib/configs/linux-dri-xcb b/mesalib/configs/linux-dri-xcb
index 021aa3e8b..a845f71d2 100644
--- a/mesalib/configs/linux-dri-xcb
+++ b/mesalib/configs/linux-dri-xcb
@@ -49,8 +49,7 @@ DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(L
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
$(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx)
-SRC_DIRS = glx gallium mesa glu glw
+SRC_DIRS = glx gallium mesa glu
DRIVER_DIRS = dri
-DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon \
- savage sis tdfx unichrome
+DRI_DIRS = i915 r200 r300 radeon
diff --git a/mesalib/configs/linux-fbdev b/mesalib/configs/linux-fbdev
deleted file mode 100644
index 45b482a91..000000000
--- a/mesalib/configs/linux-fbdev
+++ /dev/null
@@ -1,16 +0,0 @@
-# Configuration for Linux fbdev interface
-
-include $(TOP)/configs/linux
-
-CONFIG_NAME = linux-fbdev
-
-CFLAGS += -DUSE_GLFBDEV_DRIVER
-
-# Work around aliasing bugs - developers should comment this out
-CFLAGS += -fno-strict-aliasing
-
-DRIVER_DIRS = fbdev osmesa
-
-GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread
-OSMESA_LIB_DEPS = -lm -lpthread
-
diff --git a/mesalib/configs/linux-indirect b/mesalib/configs/linux-indirect
index 82868c4a1..5592a8f29 100644
--- a/mesalib/configs/linux-indirect
+++ b/mesalib/configs/linux-indirect
@@ -48,5 +48,5 @@ GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
# Directories
-SRC_DIRS = glx glu glw
+SRC_DIRS = glx glu
DRIVER_DIRS =
diff --git a/mesalib/configure.ac b/mesalib/configure.ac
index 1b1823a21..9916a06a9 100644
--- a/mesalib/configure.ac
+++ b/mesalib/configure.ac
@@ -359,7 +359,6 @@ fi
GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
-GLW_LIB_NAME='lib$(GLW_LIB).'${LIB_EXTENSION}
OSMESA_LIB_NAME='lib$(OSMESA_LIB).'${LIB_EXTENSION}
EGL_LIB_NAME='lib$(EGL_LIB).'${LIB_EXTENSION}
GLESv1_CM_LIB_NAME='lib$(GLESv1_CM_LIB).'${LIB_EXTENSION}
@@ -372,7 +371,6 @@ GBM_LIB_NAME='lib$(GBM_LIB).'${LIB_EXTENSION}
GL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
GLU_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLU_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
GLUT_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLUT_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
-GLW_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLW_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
OSMESA_LIB_GLOB=${LIB_PREFIX_GLOB}'$(OSMESA_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
EGL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(EGL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
EGL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(EGL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
@@ -386,7 +384,6 @@ GBM_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GBM_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTE
AC_SUBST([GL_LIB_NAME])
AC_SUBST([GLU_LIB_NAME])
AC_SUBST([GLUT_LIB_NAME])
-AC_SUBST([GLW_LIB_NAME])
AC_SUBST([OSMESA_LIB_NAME])
AC_SUBST([EGL_LIB_NAME])
AC_SUBST([GLESv1_CM_LIB_NAME])
@@ -399,7 +396,6 @@ AC_SUBST([GBM_LIB_NAME])
AC_SUBST([GL_LIB_GLOB])
AC_SUBST([GLU_LIB_GLOB])
AC_SUBST([GLUT_LIB_GLOB])
-AC_SUBST([GLW_LIB_GLOB])
AC_SUBST([OSMESA_LIB_GLOB])
AC_SUBST([EGL_LIB_GLOB])
AC_SUBST([GLESv1_CM_LIB_GLOB])
@@ -1165,25 +1161,20 @@ if test "x$enable_dri" = xyes; then
case "$host_cpu" in
x86_64)
- # sis is missing because they have not be converted to use
- # the new interface. i810 are missing because there is no
- # x86-64 system where they could *ever* be used.
if test "x$DRI_DIRS" = "xyes"; then
- DRI_DIRS="i915 i965 mach64 mga nouveau r128 r200 r300 r600 \
- radeon savage tdfx unichrome swrast"
+ DRI_DIRS="i915 i965 nouveau r200 r300 r600 radeon swrast"
fi
;;
powerpc*)
# Build only the drivers for cards that exist on PowerPC.
- # At some point MGA will be added, but not yet.
if test "x$DRI_DIRS" = "xyes"; then
- DRI_DIRS="mach64 r128 r200 r300 r600 radeon tdfx swrast"
+ DRI_DIRS="r200 r300 r600 radeon swrast"
fi
;;
sparc*)
- # Build only the drivers for cards that exist on sparc`
+ # Build only the drivers for cards that exist on sparc
if test "x$DRI_DIRS" = "xyes"; then
- DRI_DIRS="mach64 r128 r200 r300 r600 radeon swrast"
+ DRI_DIRS="r200 r300 r600 radeon swrast"
fi
;;
esac
@@ -1193,8 +1184,7 @@ if test "x$enable_dri" = xyes; then
DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS"
if test "x$DRI_DIRS" = "xyes"; then
- DRI_DIRS="i810 i915 i965 mach64 mga nouveau r128 r200 r300 r600 \
- radeon tdfx unichrome savage sis swrast"
+ DRI_DIRS="i915 i965 nouveau r200 r300 r600 radeon swrast"
fi
;;
gnu*)
@@ -1214,8 +1204,7 @@ if test "x$enable_dri" = xyes; then
# default drivers
if test "x$DRI_DIRS" = "xyes"; then
- DRI_DIRS="i810 i915 i965 mach64 mga nouveau r128 r200 r300 r600 radeon \
- savage sis tdfx unichrome swrast"
+ DRI_DIRS="i915 i965 nouveau r200 r300 r600 radeon swrast"
fi
DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'`
@@ -1370,6 +1359,8 @@ if test "x$enable_egl" = xyes; then
EGL_LIB_DEPS="$DLOPEN_LIBS $SELINUX_LIBS -lpthread"
EGL_DRIVERS_DIRS=""
+ AC_CHECK_FUNC(mincore, [DEFINES="$DEFINES -DHAVE_MINCORE"])
+
if test "$enable_static" != yes; then
# build egl_glx when libGL is built
if test "x$enable_glx" = xyes; then
@@ -1602,77 +1593,6 @@ AC_SUBST([GLU_PC_REQ_PRIV])
AC_SUBST([GLU_PC_LIB_PRIV])
AC_SUBST([GLU_PC_CFLAGS])
-dnl
-dnl GLw configuration
-dnl
-AC_ARG_ENABLE([glw],
- [AS_HELP_STRING([--disable-glw],
- [enable Xt/Motif widget library @<:@default=enabled@:>@])],
- [enable_glw="$enableval"],
- [enable_glw=yes])
-dnl Don't build GLw on osmesa
-if test "x$enable_glw" = xyes -a "x$enable_glx" = xno; then
- AC_MSG_NOTICE([Disabling GLw since there is no OpenGL driver])
- enable_glw=no
-fi
-AC_ARG_ENABLE([motif],
- [AS_HELP_STRING([--enable-motif],
- [use Motif widgets in GLw @<:@default=disabled@:>@])],
- [enable_motif="$enableval"],
- [enable_motif=no])
-
-if test "x$enable_glw" = xyes; then
- SRC_DIRS="$SRC_DIRS glw"
- if test "$x11_pkgconfig" = yes; then
- PKG_CHECK_MODULES([GLW],[x11 xt])
- GLW_PC_REQ_PRIV="x11 xt"
- GLW_LIB_DEPS="$GLW_LIBS"
- else
- # should check these...
- GLW_LIB_DEPS="$X_LIBS -lXt -lX11"
- GLW_PC_LIB_PRIV="$GLW_LIB_DEPS"
- GLW_PC_CFLAGS="$X11_INCLUDES"
- fi
-
- GLW_SOURCES="GLwDrawA.c"
- MOTIF_CFLAGS=
- if test "x$enable_motif" = xyes; then
- GLW_SOURCES="$GLW_SOURCES GLwMDrawA.c"
- AC_PATH_PROG([MOTIF_CONFIG], [motif-config], [no])
- if test "x$MOTIF_CONFIG" != xno; then
- MOTIF_CFLAGS=`$MOTIF_CONFIG --cflags`
- MOTIF_LIBS=`$MOTIF_CONFIG --libs`
- else
- AC_CHECK_HEADER([Xm/PrimitiveP.h], [],
- [AC_MSG_ERROR([Can't locate Motif headers])])
- AC_CHECK_LIB([Xm], [XmGetPixmap], [MOTIF_LIBS="-lXm"],
- [AC_MSG_ERROR([Can't locate Motif Xm library])])
- fi
- # MOTIF_LIBS is prepended to GLW_LIB_DEPS since Xm needs Xt/X11
- GLW_LIB_DEPS="$MOTIF_LIBS $GLW_LIB_DEPS"
- GLW_PC_LIB_PRIV="$MOTIF_LIBS $GLW_PC_LIB_PRIV"
- GLW_PC_CFLAGS="$MOTIF_CFLAGS $GLW_PC_CFLAGS"
- fi
-
- # If static, empty GLW_LIB_DEPS and add libs for programs to link
- GLW_PC_LIB_PRIV="$GLW_PC_LIB_PRIV"
- if test "$enable_static" = no; then
- GLW_MESA_DEPS='-l$(GL_LIB)'
- GLW_LIB_DEPS="$GLW_LIB_DEPS"
- else
- APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
- GLW_LIB_DEPS=""
- GLW_MESA_DEPS=""
- fi
-fi
-AC_SUBST([GLW_LIB_DEPS])
-AC_SUBST([GLW_MESA_DEPS])
-AC_SUBST([GLW_SOURCES])
-AC_SUBST([MOTIF_CFLAGS])
-AC_SUBST([GLW_PC_REQ_PRIV])
-AC_SUBST([GLW_PC_LIB_PRIV])
-AC_SUBST([GLW_PC_CFLAGS])
-
dnl
dnl Program library dependencies
dnl Only libm is added here if necessary as the libraries should
@@ -1928,7 +1848,7 @@ if test "x$with_gallium_drivers" != x; then
;;
xr600)
GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r600"
- gallium_check_st "r600/drm" "dri-r600" "" "" "xvmc-r600" "vdpau-r600" "va-r600"
+ gallium_check_st "r600/drm radeon/drm" "dri-r600" "xorg-r600" "" "xvmc-r600" "vdpau-r600" "va-r600"
;;
xnouveau)
PKG_CHECK_MODULES([NOUVEAU], [libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED])
@@ -2051,7 +1971,6 @@ esac
echo ""
echo " GLU: $enable_glu"
-echo " GLw: $enable_glw (Motif: $enable_motif)"
dnl EGL
echo ""
diff --git a/mesalib/docs/GL3.txt b/mesalib/docs/GL3.txt
index c0cc4d172..ff1f5020a 100644
--- a/mesalib/docs/GL3.txt
+++ b/mesalib/docs/GL3.txt
@@ -123,7 +123,7 @@ GL_ARB_texture_storage not started
GL_ARB_transform_feedback_instanced not started
GL_ARB_base_instance not started
GL_ARB_shader_image_load_store not started
-GL_ARB_conservative_depth not started (may be close to AMD_conservative_depth though)
+GL_ARB_conservative_depth DONE (compiler)
GL_ARB_shading_language_420pack not started
GL_ARB_internalformat_query not started
GL_ARB_map_buffer_alignment not started
diff --git a/mesalib/docs/README.BEOS b/mesalib/docs/README.BEOS
deleted file mode 100644
index efd84e888..000000000
--- a/mesalib/docs/README.BEOS
+++ /dev/null
@@ -1,136 +0,0 @@
-
- Mesa / BeOS Information
-
-
-
-* Introduction
-
-Brian Paul added in Mesa 3.1 a driver for BeOS R4.5 operating system.
-This driver implements a clone of the BGLView class. This class,
-derived from BView, allows OpenGL rendering into any BeOS window. His
-driver was updated in Mesa 4.1 and again in version 6.1 by Philippe
-Houdoin, who's maintaining this driver since.
-
-Any application which uses the BGLView should be able to use Mesa
-instead of Be's OpenGL without changing any code.
-
-Since Be's OpenGL implementation (as of R5) is basically just the
-SGI sample implementation, it's pretty slow. You'll see that Mesa
-is considerably faster.
-
-
-* Source Code
-
-The source code for the driver is in src/mesa/drivers/beos/ directory.
-It's not 100% finished at this time but many GLUT-based demos are
-working. No optimizations have been made at this time.
-
-
-* Compiling
-
-Since Mesa 6.x, it can be build under BeOS with both the R5 builtin gcc version
-or more recent gcc versions available for BeOS, like this gcc version 2.95.3 for BeOS
-you can find at http://www.bebits.com/app/2157.
-Anyway, keep in mind that to take full advantage of Mesa x86 optimizations, you better
-want to use gcc 2.95.3 or sooner versions...
-
-To build Mesa-powered BeOS libGL.so version, open an Terminal window,
-move to Mesa root folder and type this command:
-
-$ make beos
-
-Note that the "beos" argument is only needed the first time to setup build config.
-Next times, typing "make" will be enough.
-
-When it finishes the Mesa based libGL.so library for
-BeOS will be in the lib/ directory, along libglut.so library.
-Several demo/test programs should have been build too under progs/* folders.
-If it stop when building one of the progs/* programs, you may want to ignore it
-and force make to move on next target by adding the -k make option:
-
-$ cd progs
-$ make -k
-
-To install it as Be's default libGL.so replacement, put it in your
-/boot/home/config/lib/ directory. All your GL/GLUT apps will use
-the Mesa based then.
-
-By default, it build a non-debug version library.
-The x86 (MMX, SSE and 3DNOW) optimizations are also supported for x86 target.
-For PowerPC BeOS flavor, sorry, Mesa don't have ppc (Altivec) optimizations
-yet.
-
-To build a DEBUG version, type instead this :
-
-$ DEBUG=1 make
-
-
-* Example Programs
-
-Look under progs/beos/ for some BGLView-based programs.
-You should find under progs/samples and progs/redbook directories GLUT-based programs too.
-They all should have been compiled along with the Mesa library.
-
-
-* GLUT
-
-A beta version of GLUT 3.7 port for BeOS, made by Jake Hamby, can be found at
-http://anobject.com/jehamby/Code/Glut-3.7-x86.zip.
-This is the version currently included in Mesa source code, and
-build in lib/libglut.so.
-
-A previous 3.5 version of this GLUT BeOS port used to be available at
-http://home.beoscentral.com/jehamby/Glut-3.5-x86.zip.
-
-They're special versions of GLUT for the BeOS platform. I don't
-believe Mark Kilgard's normal GLUT distribution includes BeOS
-support.
-
-
-* Special Features
-
-Mesa's implementation of the BGLView class has an extra member
-function: CopySubBufferMESA(). It basically works like SwapBuffers()
-but it only copies a sub region from the back buffer to the front
-buffer. This is a useful optimization for some applications.
-If you use this method in your code be sure that you check at runtime
-that you're actually using Mesa (with glGetString) so you don't
-cause a fatal error when running with Be's OpenGL.
-
-
-* Work Left To Do
-
-- BDirectWindow single buffering support is not implemented yet.
-- Color index mode is not implemented yet.
-- Reading pixels from the front buffer not implemented yet.
-- There is also a BGLScreen class in BeOS for full-screen OpenGL rendering.
- This should also be implemented for Mesa.
-- Multiple renderers add-ons support, first step toward hardware acceleration
- support.
-
-* Other contributors to this BeOS port
-
-Jake Hamby jhamby anobject com
-Marcin Konicki ahwayakchih neoni net
-Francois Revol revol free fr
-Nathan Whitehorn nathanw uchicago edu
-
-
-* Older BeOS Driver
-
-Mesa 2.6 had an earlier BeOS driver. It was based on Mesa's Off-screen
-rendering interface, not BGLView. If you're interested in the older
-driver you should get Mesa 2.6.
-
-
-* BeOS and Glide
-
-Mesa 3.0 supported the 3Dfx/Glide library on Beos. Download Mesa 3.0
-if interested. Ideally, the 3Dfx/Glide support should be updated to
-work with the new Mesa 3.1 BGLView implementation.
-
-The Glide library hasn't been updated for BeOS R4 and newer, to my knowledge,
-as of February, 1999.
-
-
-----------------------------------------------------------------------
diff --git a/mesalib/docs/autoconf.html b/mesalib/docs/autoconf.html
index 64bcbd48a..895cf665c 100644
--- a/mesalib/docs/autoconf.html
+++ b/mesalib/docs/autoconf.html
@@ -20,7 +20,6 @@
Library Options
Demo Program Options
@@ -245,12 +244,6 @@ instructions.
on all drivers. This can be disable with the option
--disable-glu
.
-
-
-GLw - The libGLw library will be built by default
-if libGLU has been enabled. This can be disable with the option
---disable-glw
.
-
diff --git a/mesalib/docs/contents.html b/mesalib/docs/contents.html
index bf5e9aa09..df0fb6474 100644
--- a/mesalib/docs/contents.html
+++ b/mesalib/docs/contents.html
@@ -1,106 +1,105 @@
-
-
-Contents
-
-
-
-
-
-
-
-Documentation
-
-
-Download / Install
-
-
-Resources
-
-
-User Topics
-
-
-Developer Topics
-
-
-Links
-
-
-Hosted by:
-
-
-
-
-
-