--- mesa-lts-xenial-11.2.0.orig/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/.dir-locals.el
@@ -0,0 +1,13 @@
+((prog-mode
+  (indent-tabs-mode . nil)
+  (tab-width . 8)
+  (c-basic-offset . 3)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'case-label '0)
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ (makefile-mode (indent-tabs-mode . t))
+ )
--- mesa-lts-xenial-11.2.0.orig/.travis.yml
+++ mesa-lts-xenial-11.2.0/.travis.yml
@@ -0,0 +1,101 @@
+language: c
+
+sudo: false
+
+cache:
+  directories:
+    - $HOME/.ccache
+
+addons:
+  apt:
+    packages:
+      - libdrm-dev
+      - libudev-dev
+      - x11proto-xf86vidmode-dev
+      - libexpat1-dev
+      - libxcb-dri2-0-dev
+      - libx11-xcb-dev
+      - llvm-3.4-dev
+      - scons
+
+env:
+  global:
+    - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual
+    - XCB_RELEASES=http://xcb.freedesktop.org/dist
+    - XORGMACROS_VERSION=util-macros-1.19.0
+    - GLPROTO_VERSION=glproto-1.4.17
+    - DRI2PROTO_VERSION=dri2proto-2.8
+    - DRI3PROTO_VERSION=dri3proto-1.0
+    - PRESENTPROTO_VERSION=presentproto-1.0
+    - LIBPCIACCESS_VERSION=libpciaccess-0.13.4
+    - LIBDRM_VERSION=libdrm-2.4.65
+    - XCBPROTO_VERSION=xcb-proto-1.11
+    - LIBXCB_VERSION=libxcb-1.11
+    - LIBXSHMFENCE_VERSION=libxshmfence-1.2
+    - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig
+  matrix:
+    - BUILD=make
+    - BUILD=scons
+
+install:
+  - export PATH="/usr/lib/ccache:$PATH"
+  - pip install --user mako
+
+  # Install dependencies where we require specific versions (or where
+  # disallowed by Travis CI's package whitelisting).
+
+  - wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
+  - tar -jxvf $XORGMACROS_VERSION.tar.bz2
+  - (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2
+  - tar -jxvf $GLPROTO_VERSION.tar.bz2
+  - (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2
+  - tar -jxvf $DRI2PROTO_VERSION.tar.bz2
+  - (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/proto/$DRI3PROTO_VERSION.tar.bz2
+  - tar -jxvf $DRI3PROTO_VERSION.tar.bz2
+  - (cd $DRI3PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/proto/$PRESENTPROTO_VERSION.tar.bz2
+  - tar -jxvf $PRESENTPROTO_VERSION.tar.bz2
+  - (cd $PRESENTPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2
+  - tar -jxvf $XCBPROTO_VERSION.tar.bz2
+  - (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2
+  - tar -jxvf $LIBXCB_VERSION.tar.bz2
+  - (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2
+  - tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2
+  - (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget http://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
+  - tar -jxvf $LIBDRM_VERSION.tar.bz2
+  - (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+  - wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2
+  - tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2
+  - (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install)
+
+# Disabled LLVM (and therefore r300 and r600) because the build fails
+# with "undefined reference to `clock_gettime'" and "undefined
+# reference to `setupterm'" in llvmpipe.
+script:
+  - if test "x$BUILD" = xmake; then
+      ./autogen.sh --enable-debug
+        --disable-gallium-llvm
+        --with-egl-platforms=x11,drm
+        --with-dri-drivers=i915,i965,radeon,r200,swrast,nouveau
+        --with-gallium-drivers=svga,swrast,vc4,virgl
+        ;
+      make && make check;
+    elif test x$BUILD = xscons; then
+      scons;
+    fi
--- mesa-lts-xenial-11.2.0.orig/Android.common.mk
+++ mesa-lts-xenial-11.2.0/Android.common.mk
@@ -0,0 +1,94 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+ifeq ($(LOCAL_IS_HOST_MODULE),true)
+LOCAL_CFLAGS += -D_GNU_SOURCE
+endif
+
+LOCAL_C_INCLUDES += \
+	$(MESA_TOP)/src \
+	$(MESA_TOP)/include
+
+MESA_VERSION := $(shell cat $(MESA_TOP)/VERSION)
+# define ANDROID_VERSION (e.g., 4.0.x => 0x0400)
+LOCAL_CFLAGS += \
+	-Wno-unused-parameter \
+	-Wno-date-time \
+	-DPACKAGE_VERSION=\"$(MESA_VERSION)\" \
+	-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" \
+	-DANDROID_VERSION=0x0$(MESA_ANDROID_MAJOR_VERSION)0$(MESA_ANDROID_MINOR_VERSION)
+
+LOCAL_CFLAGS += \
+	-D__STDC_LIMIT_MACROS \
+	-DHAVE___BUILTIN_EXPECT \
+	-DHAVE___BUILTIN_FFS \
+	-DHAVE___BUILTIN_FFSLL \
+	-DHAVE_FUNC_ATTRIBUTE_FLATTEN \
+	-DHAVE_FUNC_ATTRIBUTE_UNUSED \
+	-DHAVE_FUNC_ATTRIBUTE_FORMAT \
+	-DHAVE_FUNC_ATTRIBUTE_PACKED \
+	-DHAVE___BUILTIN_CTZ \
+	-DHAVE___BUILTIN_POPCOUNT \
+	-DHAVE___BUILTIN_POPCOUNTLL \
+	-DHAVE___BUILTIN_CLZ \
+	-DHAVE___BUILTIN_CLZLL \
+	-DHAVE___BUILTIN_UNREACHABLE \
+	-DHAVE_PTHREAD=1 \
+	-fvisibility=hidden \
+	-Wno-sign-compare
+
+# mesa requires at least c99 compiler
+LOCAL_CONLYFLAGS += \
+	-std=c99
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+LOCAL_CFLAGS += \
+	-DUSE_X86_ASM \
+	-DHAVE_DLOPEN \
+
+endif
+endif
+
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_CFLAGS += \
+	-DHAVE_LLVM=0x0305 -DMESA_LLVM_VERSION_PATCH=2 \
+	-D__STDC_CONSTANT_MACROS \
+	-D__STDC_FORMAT_MACROS \
+	-D__STDC_LIMIT_MACROS
+endif
+
+LOCAL_CPPFLAGS += \
+	$(if $(filter true,$(MESA_LOLLIPOP_BUILD)),-D_USING_LIBCXX) \
+	-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
+
+# Quiet down the build system and remove any .h files from the sources
+LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))
--- mesa-lts-xenial-11.2.0.orig/Android.mk
+++ mesa-lts-xenial-11.2.0/Android.mk
@@ -0,0 +1,106 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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: i915 i965
+#   gallium drivers: swrast freedreno i915g ilo nouveau r300g r600g radeonsi vc4 virgl 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_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
+MESA_ANDROID_MINOR_VERSION := $(word 2, $(subst ., , $(PLATFORM_VERSION)))
+MESA_ANDROID_VERSION := $(MESA_ANDROID_MAJOR_VERSION).$(MESA_ANDROID_MINOR_VERSION)
+ifeq ($(filter 1 2 3 4,$(MESA_ANDROID_MAJOR_VERSION)),)
+MESA_LOLLIPOP_BUILD := true
+else
+define local-generated-sources-dir
+$(call local-intermediates-dir)
+endef
+endif
+
+MESA_DRI_MODULE_REL_PATH := dri
+MESA_DRI_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/$(MESA_DRI_MODULE_REL_PATH)
+MESA_DRI_MODULE_UNSTRIPPED_PATH := $(TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED)/$(MESA_DRI_MODULE_REL_PATH)
+
+MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk
+MESA_PYTHON2 := python
+
+classic_drivers := i915 i965
+gallium_drivers := swrast freedreno i915g ilo nouveau r300g r600g radeonsi vmwgfx vc4 virgl
+
+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
+
+MESA_ENABLE_LLVM := $(if $(filter radeonsi,$(MESA_GPU_DRIVERS)),true,false)
+
+# add subdirectories
+ifneq ($(strip $(MESA_GPU_DRIVERS)),)
+
+SUBDIRS := \
+	src/loader \
+	src/mapi \
+	src/compiler \
+	src/compiler/glsl \
+	src/mesa \
+	src/util \
+	src/egl \
+	src/mesa/drivers/dri
+
+ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
+SUBDIRS += src/gallium
+endif
+
+include $(call all-named-subdir-makefiles,$(SUBDIRS))
+
+endif
--- mesa-lts-xenial-11.2.0.orig/CleanSpec.mk
+++ mesa-lts-xenial-11.2.0/CleanSpec.mk
@@ -0,0 +1,16 @@
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libmesa_*_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/i9*5_dri_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libglapi_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libGLES_mesa_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/host/$(HOST_OS)-$(HOST_ARCH)/obj/EXECUTABLES/mesa_*_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/host/$(HOST_OS)-$(HOST_ARCH)/obj/EXECUTABLES/glsl_compiler_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/host/$(HOST_OS)-$(HOST_ARCH)/obj/STATIC_LIBRARIES/libmesa_glsl_utils_intermediates)
+
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/*/STATIC_LIBRARIES/libmesa_*_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/*/SHARED_LIBRARIES/i9?5_dri_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/*/SHARED_LIBRARIES/libglapi_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/*/SHARED_LIBRARIES/libGLES_mesa_intermediates)
+$(call add-clean-step, rm -rf $(HOST_OUT_release)/*/EXECUTABLES/mesa_*_intermediates)
+$(call add-clean-step, rm -rf $(HOST_OUT_release)/*/EXECUTABLES/glsl_compiler_intermediates)
+$(call add-clean-step, rm -rf $(HOST_OUT_release)/*/STATIC_LIBRARIES/libmesa_*_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/*/SHARED_LIBRARIES/*_dri_intermediates)
--- mesa-lts-xenial-11.2.0.orig/appveyor.yml
+++ mesa-lts-xenial-11.2.0/appveyor.yml
@@ -0,0 +1,73 @@
+# http://www.appveyor.com/docs/appveyor-yml
+#
+# To setup AppVeyor for your own personal repositories do the following:
+# - Sign up
+# - Add a new project
+# - Select Git and fill in the Git clone URL
+# - Setup a Git hook as explained in
+#   https://github.com/appveyor/webhooks#installing-git-hook
+# - Check 'Settings > General > Skip branches without appveyor.yml'
+# - Check 'Settings > General > Rolling builds'
+# - Setup the global or project notifications to your liking
+#
+# Note that kicking (or restarting) a build via the web UI will not work, as it
+# will fail to find appveyor.yml .  The Git hook is the most practical way to
+# kick a build.
+#
+# See also:
+# - http://help.appveyor.com/discussions/problems/2209-node-grunt-build-specify-a-project-or-solution-file-the-directory-does-not-contain-a-project-or-solution-file
+# - http://help.appveyor.com/discussions/questions/1184-build-config-vs-appveyoryaml
+
+version: '{build}'
+
+branches:
+  except:
+  - /^travis.*$/
+
+# Don't download the full Mesa history to speed up cloning.  However the clone
+# depth must not be too small, otherwise builds might fail when lots of patches
+# are committed in succession, because the desired commit is not found on the
+# truncated history.
+#
+# See also:
+# - https://www.appveyor.com/blog/2014/06/04/shallow-clone-for-git-repositories
+clone_depth: 100
+
+cache:
+- win_flex_bison-2.4.5.zip
+- llvm-3.3.1-msvc2013-mtd.7z
+
+environment:
+  WINFLEXBISON_ARCHIVE: win_flex_bison-2.4.5.zip
+  LLVM_ARCHIVE: llvm-3.3.1-msvc2013-mtd.7z
+
+install:
+# Check pip
+- python --version
+- python -m pip --version
+# Install Mako
+- python -m pip install --egg Mako
+# Install SCons
+- python -m pip install --egg scons==2.4.1
+- scons --version
+# Install flex/bison
+- if not exist "%WINFLEXBISON_ARCHIVE%" appveyor DownloadFile "http://downloads.sourceforge.net/project/winflexbison/%WINFLEXBISON_ARCHIVE%"
+- 7z x -y -owinflexbison\ "%WINFLEXBISON_ARCHIVE%" > nul
+- set Path=%CD%\winflexbison;%Path%
+- win_flex --version
+- win_bison --version
+# Download and extract LLVM
+- if not exist "%LLVM_ARCHIVE%" appveyor DownloadFile "https://people.freedesktop.org/~jrfonseca/llvm/%LLVM_ARCHIVE%"
+- 7z x -y "%LLVM_ARCHIVE%" > nul
+- mkdir llvm\bin
+- set LLVM=%CD%\llvm
+
+build_script:
+- scons -j%NUMBER_OF_PROCESSORS% MSVC_VERSION=12.0 llvm=1
+
+
+# It's possible to setup notification here, as described in
+# http://www.appveyor.com/docs/notifications#appveyor-yml-configuration , but
+# doing so would cause the notification settings to be replicated across all
+# repos, which is most likely undesired.  So it's better to rely on the
+# Appveyor global/project notification settings.
--- mesa-lts-xenial-11.2.0.orig/bin/bugzilla_mesa.sh
+++ mesa-lts-xenial-11.2.0/bin/bugzilla_mesa.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+# This script is used to generate the list of fixed bugs that
+# appears in the release notes files, with HTML formatting.
+#
+# Note: This script could take a while until all details have
+#       been fetched from bugzilla.
+#
+# Usage examples:
+#
+# $ bin/bugzilla_mesa.sh mesa-9.0.2..mesa-9.0.3
+# $ bin/bugzilla_mesa.sh mesa-9.0.2..mesa-9.0.3 > bugfixes
+# $ bin/bugzilla_mesa.sh mesa-9.0.2..mesa-9.0.3 | tee bugfixes
+# $ DRYRUN=yes bin/bugzilla_mesa.sh mesa-9.0.2..mesa-9.0.3
+# $ DRYRUN=yes bin/bugzilla_mesa.sh mesa-9.0.2..mesa-9.0.3 | wc -l
+
+
+# regex pattern: trim before bug number
+trim_before='s/.*show_bug.cgi?id=\([0-9]*\).*/\1/'
+
+# regex pattern: reconstruct the url
+use_after='s,^,https://bugs.freedesktop.org/show_bug.cgi?id=,'
+
+# extract fdo urls from commit log
+urls=$(git log $* | grep 'bugs.freedesktop.org/show_bug' | sed -e $trim_before | sort -n -u | sed -e $use_after)
+
+# if DRYRUN is set to "yes", simply print the URLs and don't fetch the
+# details from fdo bugzilla.
+#DRYRUN=yes
+
+if [ "x$DRYRUN" = xyes ]; then
+	for i in $urls
+	do
+		echo $i
+	done
+else
+	echo "<ul>"
+	echo ""
+
+	for i in $urls
+	do
+		id=$(echo $i | cut -d'=' -f2)
+		summary=$(wget --quiet -O - $i | grep -e '<title>.*</title>' | sed -e 's/ *<title>Bug [0-9]\+ &ndash; \(.*\)<\/title>/\1/')
+		echo "<li><a href=\"$i\">Bug $id</a> - $summary</li>"
+		echo ""
+	done
+
+	echo "</ul>"
+fi
--- mesa-lts-xenial-11.2.0.orig/bin/get-extra-pick-list.sh
+++ mesa-lts-xenial-11.2.0/bin/get-extra-pick-list.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# Script for generating a list of candidates which fix commits that have been
+# previously cherry-picked to a stable branch.
+#
+# Usage examples:
+#
+# $ bin/get-extra-pick-list.sh
+# $ bin/get-extra-pick-list.sh > picklist
+# $ bin/get-extra-pick-list.sh | tee picklist
+
+# Use the last branchpoint as our limit for the search
+# XXX: there should be a better way for this
+latest_branchpoint=`git branch | grep \* | cut -c 3-`-branchpoint
+
+# Grep for commits with "cherry picked from commit" in the commit message.
+git log --reverse --grep="cherry picked from commit" $latest_branchpoint..HEAD |\
+	grep "cherry picked from commit" |\
+	sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' |\
+	cut -c -8 |\
+while read sha
+do
+	# Check if the original commit is referenced in master
+	git log -n1 --pretty=oneline --grep=$sha $latest_branchpoint..origin/master |\
+		cut -c -8 |\
+	while read candidate
+	do
+		# Check if the potential fix, hasn't landed in branch yet.
+		found=`git log -n1 --pretty=oneline --reverse --grep=$candidate $latest_branchpoint..HEAD |wc -l`
+		if test $found = 0
+		then
+			echo Commit $candidate might need to be picked, as it references $sha
+		fi
+	done
+done
--- mesa-lts-xenial-11.2.0.orig/bin/get-pick-list.sh
+++ mesa-lts-xenial-11.2.0/bin/get-pick-list.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# Script for generating a list of candidates for cherry-picking to a stable branch
+#
+# Usage examples:
+#
+# $ bin/get-pick-list.sh
+# $ bin/get-pick-list.sh > picklist
+# $ bin/get-pick-list.sh | tee picklist
+
+# Grep for commits with "cherry picked from commit" in the commit message.
+git log --reverse --grep="cherry picked from commit" origin/master..HEAD |\
+	grep "cherry picked from commit" |\
+	sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' > already_picked
+
+# Grep for commits that were marked as a candidate for the stable tree.
+git log --reverse --pretty=%H -i --grep='^\([[:space:]]*NOTE: .*[Cc]andidate\|CC:.*mesa-stable\)' HEAD..origin/master |\
+while read sha
+do
+	# Check to see whether the patch is on the ignore list.
+	if [ -f bin/.cherry-ignore ] ; then
+		if grep -q ^$sha bin/.cherry-ignore ; then
+			continue
+		fi
+	fi
+
+	# Check to see if it has already been picked over.
+	if grep -q ^$sha already_picked ; then
+		continue
+	fi
+
+	git log -n1 --pretty=oneline $sha | cat
+done
+
+rm -f already_picked
--- mesa-lts-xenial-11.2.0.orig/bin/perf-annotate-jit
+++ mesa-lts-xenial-11.2.0/bin/perf-annotate-jit
@@ -0,0 +1,251 @@
+#!/usr/bin/env python
+#
+# Copyright 2012 VMware Inc
+# Copyright 2008-2009 Jose Fonseca
+#
+# 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.
+#
+
+"""Perf annotate for JIT code.
+
+Linux `perf annotate` does not work with JIT code.  This script takes the data
+produced by `perf script` command, plus the diassemblies outputed by gallivm
+into /tmp/perf-XXXXX.map.asm and produces output similar to `perf annotate`.
+
+See docs/llvmpipe.html for usage instructions.
+
+The `perf script` output parser was derived from the gprof2dot.py script.
+"""
+
+
+import sys
+import os.path
+import re
+import optparse
+import subprocess
+
+
+class Parser:
+    """Parser interface."""
+
+    def __init__(self):
+        pass
+
+    def parse(self):
+        raise NotImplementedError
+
+
+class LineParser(Parser):
+    """Base class for parsers that read line-based formats."""
+
+    def __init__(self, file):
+        Parser.__init__(self)
+        self._file = file
+        self.__line = None
+        self.__eof = False
+        self.line_no = 0
+
+    def readline(self):
+        line = self._file.readline()
+        if not line:
+            self.__line = ''
+            self.__eof = True
+        else:
+            self.line_no += 1
+        self.__line = line.rstrip('\r\n')
+
+    def lookahead(self):
+        assert self.__line is not None
+        return self.__line
+
+    def consume(self):
+        assert self.__line is not None
+        line = self.__line
+        self.readline()
+        return line
+
+    def eof(self):
+        assert self.__line is not None
+        return self.__eof
+
+
+mapFile = None
+
+def lookupMap(filename, matchSymbol):
+    global mapFile
+    mapFile = filename
+    stream = open(filename, 'rt')
+    for line in stream:
+        start, length, symbol = line.split()
+
+        start = int(start, 16)
+        length = int(length,16)
+
+        if symbol == matchSymbol:
+            return start
+
+    return None
+
+def lookupAsm(filename, desiredFunction):
+    stream = open(filename + '.asm', 'rt')
+    while stream.readline() != desiredFunction + ':\n':
+        pass
+
+    asm = []
+    line = stream.readline().strip()
+    while line:
+        addr, instr = line.split(':', 1)
+        addr = int(addr)
+        asm.append((addr, instr))
+        line = stream.readline().strip()
+
+    return asm
+
+
+
+samples = {}
+
+
+class PerfParser(LineParser):
+    """Parser for linux perf callgraph output.
+
+    It expects output generated with
+
+        perf record -g
+        perf script
+    """
+
+    def __init__(self, infile, symbol):
+        LineParser.__init__(self, infile)
+	self.symbol = symbol
+
+    def readline(self):
+        # Override LineParser.readline to ignore comment lines
+        while True:
+            LineParser.readline(self)
+            if self.eof() or not self.lookahead().startswith('#'):
+                break
+
+    def parse(self):
+        # read lookahead
+        self.readline()
+
+        while not self.eof():
+            self.parse_event()
+
+        asm = lookupAsm(mapFile, self.symbol)
+
+        addresses = samples.keys()
+        addresses.sort()
+        total_samples = 0
+
+	sys.stdout.write('%s:\n' % self.symbol)
+        for address, instr in asm:
+            try:
+                sample = samples.pop(address)
+            except KeyError:
+                sys.stdout.write(6*' ')
+            else:
+                sys.stdout.write('%6u' % (sample))
+                total_samples += sample
+            sys.stdout.write('%6u: %s\n' % (address, instr))
+        print 'total:', total_samples
+        assert len(samples) == 0
+
+        sys.exit(0)
+
+    def parse_event(self):
+        if self.eof():
+            return
+
+        line = self.consume()
+        assert line
+
+        callchain = self.parse_callchain()
+        if not callchain:
+            return
+
+    def parse_callchain(self):
+        callchain = []
+        while self.lookahead():
+            function = self.parse_call(len(callchain) == 0)
+            if function is None:
+                break
+            callchain.append(function)
+        if self.lookahead() == '':
+            self.consume()
+        return callchain
+
+    call_re = re.compile(r'^\s+(?P<address>[0-9a-fA-F]+)\s+(?P<symbol>.*)\s+\((?P<module>[^)]*)\)$')
+
+    def parse_call(self, first):
+        line = self.consume()
+        mo = self.call_re.match(line)
+        assert mo
+        if not mo:
+            return None
+
+        if not first:
+            return None
+
+        function_name = mo.group('symbol')
+        if not function_name:
+            function_name = mo.group('address')
+
+        module = mo.group('module')
+
+        function_id = function_name + ':' + module
+
+        address = mo.group('address')
+        address = int(address, 16)
+
+        if function_name != self.symbol:
+            return None
+
+        start_address = lookupMap(module, function_name)
+        address -= start_address
+
+        #print function_name, module, address
+
+        samples[address] = samples.get(address, 0) + 1
+
+        return True
+
+
+def main():
+    """Main program."""
+
+    optparser = optparse.OptionParser(
+        usage="\n\t%prog [options] symbol_name")
+    (options, args) = optparser.parse_args(sys.argv[1:])
+    if len(args) != 1:
+        optparser.error('wrong number of arguments')
+
+    symbol = args[0]
+
+    p = subprocess.Popen(['perf', 'script'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    parser = PerfParser(p.stdout, symbol)
+    parser.parse()
+
+
+if __name__ == '__main__':
+    main()
+
+
+# vim: set sw=4 et:
--- mesa-lts-xenial-11.2.0.orig/bin/shortlog_mesa.sh
+++ mesa-lts-xenial-11.2.0/bin/shortlog_mesa.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# This script is used to generate the list of changes that
+# appears in the release notes files, with HTML formatting.
+#
+# Usage examples:
+#
+# $ bin/shortlog_mesa.sh mesa-9.0.2..mesa-9.0.3
+# $ bin/shortlog_mesa.sh mesa-9.0.2..mesa-9.0.3 > changes
+# $ bin/shortlog_mesa.sh mesa-9.0.2..mesa-9.0.3 | tee changes
+
+
+typeset -i in_log=0
+
+git shortlog $* | while read l
+do
+    if [ $in_log -eq 0 ]; then
+	echo '<p>'$l'</p>'
+	echo '<ul>'
+	in_log=1
+    elif echo "$l" | egrep -q '^$' ; then
+	echo '</ul>'
+	echo
+	in_log=0
+    else
+        mesg=$(echo $l | sed 's/ (cherry picked from commit [0-9a-f]\+)//;s/\&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g')
+	echo '  <li>'${mesg}'</li>'
+    fi
+done
--- mesa-lts-xenial-11.2.0.orig/debian/README.Debian
+++ mesa-lts-xenial-11.2.0/debian/README.Debian
@@ -0,0 +1,18 @@
+Documentation for the libegl1-x11, libgles1, and libgles2 virtual
+packages.
+
+Although there are is no standardised linux ABI for GL|ES, there is
+a “strongly encouraged” set of standard headers, type and linkage definitions
+supplied by the Khronos group[1].  The mesa implementation provides this ABI.
+Any non-mesa implementation that wants to provide these packages should
+conform to the Khronos group's de-facto ABI.
+
+The case of EGL is similar; Khronos again supplies a de-facto linux ABI.
+The EGL ABI is necessarily tied to the native windowing system by the
+eglNativeDisplayType, eglNativeWindowType, and eglNativePixmapType typedefs.
+The EGL virtual package therefore includes the name of the x11 windowing
+system to leave room should further windowing ABIs be standardised.
+
+[1]: http://www.khronos.org/registry/implementers_guide.html#uncontrolled
+
+ -- Cyril Brulebois <kibi@debian.org>, Sat, 22 Jan 2011 06:03:46 +0100
--- mesa-lts-xenial-11.2.0.orig/debian/README.source
+++ mesa-lts-xenial-11.2.0/debian/README.source
@@ -0,0 +1,41 @@
+------------------------------------------------------
+Quick Guide To Patching This Package For The Impatient
+------------------------------------------------------
+
+1. Make sure you have quilt installed
+2. Unpack the package as usual with "dpkg-source -x"
+3. Run the "patch" target in debian/rules
+4. Create a new patch with "quilt new" (see quilt(1))
+5. Edit all the files you want to include in the patch with "quilt edit" 
+   (see quilt(1)).
+6. Write the patch with "quilt refresh" (see quilt(1))
+7. Run the "clean" target in debian/rules
+
+Alternatively, instead of using quilt directly, you can drop the patch in to 
+debian/patches and add the name of the patch to debian/patches/series.
+
+
+The X Strike Force team maintains X packages in git repositories on
+git.debian.org in the pkg-xorg subdirectory. Most upstream packages
+are actually maintained in git repositories as well, so they often
+just need to be pulled into git.debian.org in a "upstream-*" branch.
+
+The .orig.tar.gz is upstream's mesa tarball.
+
+While building from git, dpkg-source can complain about symlinks vs.
+normal files mismatches. To work around this issue, before uploading,
+and without committing:
+
+  find -type l | while read dest; do src=$(readlink -f $dest); rm $dest; cp $src $dest; done
+
+The Debian packaging is added by creating the "debian-*" git branch
+which contains the aforementioned "upstream-*" branch plus the debian/
+repository files.
+When a patch has to be applied to the Debian package, two solutions
+are involved:
+* If the patch is available in one of the upstream branches, it
+  may be git'cherry-picked into the Debian repository. In this
+  case, it appears directly in the .diff.gz.
+* Otherwise, the patch is added to debian/patches/ which is managed
+  with quilt as documented in /usr/share/doc/quilt/README.source.
+  Thus, the patching system requires a build dependency on quilt.
--- mesa-lts-xenial-11.2.0.orig/debian/changelog
+++ mesa-lts-xenial-11.2.0/debian/changelog
@@ -0,0 +1,4058 @@
+mesa-lts-xenial (11.2.0-1ubuntu2~trusty1) trusty; urgency=medium
+
+  * Backport for lts-xenial stack.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 May 2016 14:02:17 +0300
+
+mesa (11.2.0-1ubuntu2) xenial; urgency=medium
+
+  * control, rules: Enable mesa-opencl-icd now that the archive reorg
+    allows to build-depend on packages from universe. (LP: #1319835)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 14 Apr 2016 14:20:56 +0300
+
+mesa (11.2.0-1ubuntu1) xenial; urgency=medium
+
+  * Merge from debian. (LP: #1481832. #1548845)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 05 Apr 2016 10:19:51 +0300
+
+mesa (11.2.0-1) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * control: Fix vdpau-va-driver Breaks/Replaces for mesa-va-drivers
+    (Closes: #819655).
+  * control: Bump Standards-Version to 3.9.7 (no changes).
+  * watch: Update url to use https instead of ftp.
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+  * rules: Disable tests for now, most of them weren't run before anyway
+    and they cause unnecessary ftbfs on some archs.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Thu, 31 Mar 2016 16:52:51 +0200
+
+mesa (11.2.0~rc4-1) experimental; urgency=medium
+
+  * New upstream release candidate.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 30 Mar 2016 09:35:05 +0300
+
+mesa (11.2.0~rc3-2) experimental; urgency=medium
+
+  * mesa-va-drivers: Build gallium VA driver, and add symlinks for
+    nouveau, r600 and radeonsi.
+  * control: Add vdpau-va-driver Breaks/Replaces for mesa-va-drivers.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 24 Mar 2016 14:01:20 +0200
+
+mesa (11.2.0~rc3-1) experimental; urgency=medium
+
+  * New upstream release candidate.
+  * Drop upstreamed patches.
+  * libgl1-mesa-glx.symbols: Remove dropped symbols.
+  * rules,control: Drop -dbg packages, we have -dbgsym now.
+  * rules, *.install.in, not-installed: Drop dri/-build prefix, we build
+    everything in one pass nowadays.
+  * control: Bump libdrm-dev build-dep to 2.4.67 for freedreno.
+  * rules: Migrate to dh.
+  * control: Add dh-autoreconf to build-depends.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 09 Mar 2016 01:01:55 +0200
+
+mesa (11.1.2-1ubuntu2) xenial; urgency=medium
+
+  * debian/patches/glibc2.23-pthreads-compat.patch: fix misuse of
+    pthread_barrier API.  Closes LP: #1559842.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com>  Mon, 21 Mar 2016 05:59:56 +0000
+
+mesa (11.1.2-1ubuntu1) xenial; urgency=medium
+
+  * Merge from Debian.
+  * control, rules: Use llvm-3.8 for OpenGL 4.1 support. (LP: #1535500)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 09 Feb 2016 13:40:00 +0200
+
+mesa (11.1.2-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 11 Feb 2016 13:14:08 +0200
+
+mesa (11.1.1-2) unstable; urgency=medium
+
+  * Limit the symbols glXGetDriverConfig and glXGetScreenDriver to
+    arch=!hurd-any (Fixes FTBFS on hurd).
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Fri, 15 Jan 2016 18:44:52 +0100
+
+mesa (11.1.1-1ubuntu2) xenial; urgency=medium
+
+  * Remove architecture restrictions on Mir EGL platform;
+    Mir is now built everywhere.
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Thu, 21 Jan 2016 17:07:05 -0600
+
+mesa (11.1.1-1ubuntu1) xenial; urgency=medium
+
+  * Merge from Debian.
+  * patches: Refreshed.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 04 Dec 2015 12:40:46 +0200
+
+mesa (11.1.1-1) experimental; urgency=medium
+
+  * New upstream release.
+  * Enable support for virgl (Closes: #807774).
+  * Enable support for vc4 (Closes: #809406).
+  * Enable support for freedreno on arm64.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Thu, 14 Jan 2016 11:27:28 +0100
+
+mesa (11.1.0-1) experimental; urgency=medium
+
+  * New upstream release.
+  * Add a patch to remove the unused symbol
+    _glapi_create_table_from_handle from libGL.so.1.
+  * Replace shlibs file with a symbols file for libgl1-mesa-glx.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Tue, 15 Dec 2015 20:24:10 +0100
+
+mesa (11.1.0~rc3-1) experimental; urgency=medium
+
+  * New upstream release candidate.
+  * Bump libdrm-dev build-dep to 2.4.65.
+  * Update symbols for libgles2-mesa and libxatracker2.
+  * Remove Breaks/Conflicts/Provides/Replaces from pre-wheezy.
+  * Remove duplicated field "Priority" from package libgl1-mesa-dri.
+  * Declare Multi-Arch: same for mesa-opencl-icd{,-dbg} (Closes:
+    #804919).
+  * Add a Lintian override for symbols-declares-dependency-on-other-
+    package libgbm1-private.
+  * Remove obsolete libgl1-mesa-dri.lintian-overrides.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Thu, 10 Dec 2015 12:22:54 +0100
+
+mesa (11.0.8-1ubuntu1) xenial; urgency=medium
+
+  * Merge from debian.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 22 Dec 2015 16:59:55 +0200
+
+mesa (11.0.8-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 22 Dec 2015 16:12:35 +0200
+
+mesa (11.0.7-1ubuntu1) xenial; urgency=medium
+
+  * Merge from Debian.
+    - new bugfix release
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 10 Dec 2015 14:35:28 +0200
+
+mesa (11.0.7-1) unstable; urgency=medium
+
+  [ Julien Cristau ]
+  * Update debian/copyright from docs/license.html (closes: #806805).  Thanks,
+    Steinar H. Gunderson!
+
+  [ Andreas Boll ]
+  * New upstream release.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Wed, 09 Dec 2015 21:18:17 +0100
+
+mesa (11.0.6-1ubuntu1) xenial; urgency=medium
+
+  * Merge from Debian.
+    - new bugfix release
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 30 Nov 2015 16:24:08 +0200
+
+mesa (11.0.6-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Bump libvdpau-dev build-dep.
+  * Add docs-Replace-sourceforge-logo-with-a-text-link.patch (Fixes
+    Lintian error privacy-breach-logo).
+  * Add some Lintian overrides for package-name-doesnt-match-sonames.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Fri, 27 Nov 2015 08:59:30 +0100
+
+mesa (11.0.5-1ubuntu2) xenial; urgency=medium
+
+  * debian/{rules,control}: Duplicate ppc/arm64 Mir disabling for s390x.
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Tue, 24 Nov 2015 00:08:47 -0700
+
+mesa (11.0.5-1ubuntu1) xenial; urgency=medium
+
+  * Merge from Debian.
+    - new upstream bugfix release
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 12 Nov 2015 16:49:01 +0200
+
+mesa (11.0.5-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Add myself to Uploaders.
+
+ -- Andreas Boll <andreas.boll.dev@gmail.com>  Thu, 12 Nov 2015 11:55:02 +0100
+
+mesa (11.0.4-1ubuntu1) xenial; urgency=medium
+
+  [ Timo Aaltonen ]
+  * Merge from Debian.
+  * patches: Dropped patches included in this release, fix Mir patch
+    FTBFS. (LP: #1509005)
+
+  [ Christopher James Halse Rogers ]
+  * patches: Fix Mir patch harder.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 28 Oct 2015 07:58:56 +0200
+
+mesa (11.0.4-1) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+  * Cherry-pick commit 70e91d6 (i965: Remove early release of DRI2
+    miptree) from upstream (Closes: #769518).
+  * control: Add libclc-amdgcn to mesa-opencl-icd depends.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 26 Oct 2015 10:30:04 +0200
+
+mesa (11.0.2-1ubuntu4) wily; urgency=medium
+
+  * core-fix-EXT_texture_format_BGRA8888.patch: Cherry pick upstream commit
+    fixing incorrectly-strict error handling in format code. Fixes black
+    windows in Weston and Mir (LP: #1504387)
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Fri, 09 Oct 2015 14:45:54 +1100
+
+mesa (11.0.2-1ubuntu3) wily; urgency=medium
+
+  * d/patches/egl-platform-mir.patch: add mirclient dependency (LP: #1503450)
+
+ -- Tiago Stürmer Daitx <tiago.daitx@canonical.com>  Tue, 06 Oct 2015 22:05:12 +0000
+
+mesa (11.0.2-1ubuntu2) wily; urgency=medium
+
+  * control, rules: Disable LLVM on ppc64el again, until unity tests
+    pass with it.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 02 Oct 2015 15:45:56 +0300
+
+mesa (11.0.2-1ubuntu1) wily; urgency=medium
+
+  * Merge from debian.
+    - new upstream bugfix release
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 30 Sep 2015 15:19:09 +0300
+
+mesa (11.0.2-1) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * control: Bump libclc dependencies.
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+  * rules, control: Enable llvmpipe on ppc64el. (LP: #1489483)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 29 Sep 2015 16:35:59 +0300
+
+mesa (11.0.0-1ubuntu1) wily; urgency=medium
+
+  * Merge from Debian. (LP: #1484279)
+  * egl-platform-mir.patch: Updated.
+  * i965-remove-early-release-of-dri2-miptree.patch: Add a workaround to
+    fix crashes in brw_meta_fast_clear. (LP: #1492037)
+  * control, rules: Default to llvm-3.6 again, because 3.7 won't be in
+    main for wily.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 22 Sep 2015 19:20:17 +0300
+
+mesa (11.0.0-1) experimental; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 14 Sep 2015 14:23:13 +0300
+
+mesa (11.0.0~rc3-1) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * Use https for Vcs-* fields.
+
+  [ Timo Aaltonen ]
+  * New upstream release candidate.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 07 Sep 2015 15:04:32 +0300
+
+mesa (11.0.0~rc2-1) experimental; urgency=medium
+
+  * New upstream release candidate.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 02 Sep 2015 11:38:28 +0300
+
+mesa (11.0.0~rc1-1) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release candidate.
+  * control: Drop unneeded libomxil-bellagio-dev build-dep.
+  * rules: Explicitly disable vaapi (Closes: #789100).
+  * control: Update upstream url.
+  * control: Update Vcs-* fields.
+  * Drop libgl1-mesa-swx11* packages.
+  * control: Update package description.
+
+  [ Timo Aaltonen ]
+  * control: Delete commented out libgl1-mesa-glx-i686 from the file.
+  * control: Bump llvm/libclang build-deps to match versions where
+    amdgpu is enabled.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 24 Aug 2015 11:15:16 +0300
+
+mesa (11.0.0~git20150817-1) experimental; urgency=medium
+
+  * New upstream snapshot
+  * control: Bump libdrm build-dep to 2.4.63.
+  * control: Add libomxil-bellagio-dev to build-deps.
+  * rules: Disable gles1 & 2 for swx11 builds.
+  * libegl1-mesa.symbols, libgles2-mesa.symbols: Updated
+  * control, rules: Migrate to llvm 3.7.
+  * rules: Enable llvmpipe on armhf again.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 18 Aug 2015 07:53:45 +0300
+
+mesa (10.6.8-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 22 Sep 2015 17:21:49 +0300
+
+mesa (10.6.7-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 14 Sep 2015 11:15:23 +0300
+
+mesa (10.6.5-1) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+
+  [ Julien Cristau ]
+  * Break libopengl-perl (<< 0.6704+dfsg-2), thanks to Niko Tyni
+    (closes: #796918)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 02 Sep 2015 12:26:37 +0300
+
+mesa (10.6.4-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Wed, 19 Aug 2015 09:11:47 +0300
+
+mesa (10.6.3-1ubuntu1) wily; urgency=medium
+
+  * Merge from debian-experimental git.
+  * Drop skl-*, i965-* patches, upstream.
+  * egl-platform-mir.patch: Updated.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 11 Aug 2015 08:00:09 +0300
+
+mesa (10.6.3-1) unstable; urgency=medium
+
+  * New upstream release.
+  * libegl1-mesa.symbols: Updated.
+  * not-installed: Dropped wmesa.h which is gone.
+  * libgles{1,2}-mesa.symbols: Updated.
+  * libegl1-mesa.symbols: Drop a spurious comment.
+  * source/local-options: Updated extend-diff-ignore.
+  * mesa-common-dev.docs: Updated.
+  * Delete i965-do_blit...patch, upstream.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 28 Jul 2015 11:12:44 +0300
+
+mesa (10.5.9-2ubuntu1) wily; urgency=medium
+
+  * Merge from Debian unstable.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 10 Jul 2015 14:02:38 +0300
+
+mesa (10.5.9-2) unstable; urgency=medium
+
+  * i965-do_blit_drawpixels-decode-array-formats.patch: Fix a regression
+    since 10.5.5, allow using blit fastpath again.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 10 Jul 2015 13:01:40 +0300
+
+mesa (10.5.9-1ubuntu1) wily; urgency=medium
+
+  * Merge from Debian unstable.
+  * skl-use-1-register-for-uniform-pull.diff dropped, upstream.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 06 Jul 2015 10:03:58 +0300
+
+mesa (10.5.9-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 06 Jul 2015 08:56:26 +0300
+
+mesa (10.5.8-1ubuntu2) wily; urgency=medium
+
+  * i965-store-the-gpu-revision.diff,
+    i965-refactor-simd16-to-2xsimd8-checks.diff,
+    i965-define-i915-param-revision.diff,
+    skl-break-down-simd16-3-source-instructions.diff:
+    Fix noise in Unity, torcs et al. (LP: #1471213)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 03 Jul 2015 15:08:26 +0300
+
+mesa (10.5.8-1ubuntu1) wily; urgency=medium
+
+  * Merge from Debian unstable.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 25 Jun 2015 21:34:12 +0300
+
+mesa (10.5.8-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 25 Jun 2015 18:50:11 +0300
+
+mesa (10.5.7-1ubuntu1) wily; urgency=medium
+
+  * Merge from Debian unstable, remaining changes
+    - libclc/clang is not in main, drop building mesa-opencl-icd
+    - drop building the software rasterizer
+    - llvm-3.6 is the default on Ubuntu, use it
+    - install GL/EGL libs under a separate dir to not conflict with
+      blobs, use alternatives for ldconfig
+    - patches:
+      egl-platform-mir.patch: Mir EGL platform
+      i915-dont-default-to-2.1.patch: revert of i915 forced OpenGL
+        2.1 commit
+      skl-*: backports for Skylake
+  * control: Add libmirclient-dev to build-depends.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 16 Jun 2015 14:33:48 +0300
+
+mesa (10.5.7-1) unstable; urgency=medium
+
+  * New upstream release.
+  * control: Bump policy to 3.9.6, no changes.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 16 Jun 2015 11:57:08 +0300
+
+mesa (10.5.5-1) unstable; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+  * Update watch file.
+
+  [ Timo Aaltonen ]
+  * libegl1-mesa.symbols: Updated.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 12 May 2015 13:26:49 +0300
+
+mesa (10.5.2-0ubuntu1) vivid; urgency=medium
+
+  * Merge from unreleased experimental git
+    - new upstream bugfix release
+  * egl-platform-mir.patch: Refreshed.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Mon, 30 Mar 2015 15:07:30 +0300
+
+mesa (10.5.0-0ubuntu1) vivid; urgency=medium
+
+  * Merge with unreleased debian-experimental.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 09 Mar 2015 14:10:00 +0100
+
+mesa (10.5.0~rc3-0ubuntu1) vivid; urgency=medium
+  
+  * Merge with unreleased debian-experimental.
+  * Drop skl-implement-wadisable1ddepthstencil.diff, upstreamed.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 02 Mar 2015 11:45:53 +0100
+
+mesa (10.5.0~rc2-0ubuntu1) vivid; urgency=medium
+  
+  * Merge with unreleased debian-experimental.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 16 Feb 2015 09:35:43 +0100
+
+mesa (10.5.0~rc1-0ubuntu2) vivid; urgency=medium
+
+  * Add a couple of backported fixes for Skylake:
+    skl-use-1-register-for-uniform-pull.diff
+    skl-use-vec4-datatypes-for-message-header.diff
+    skl-implement-wadisable1ddepthstencil.diff
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 20 Feb 2015 08:54:44 +0200
+
+mesa (10.5.0~rc1-0ubuntu1) vivid; urgency=medium
+
+  [ Timo Aaltonen ]
+  * Update Mir patch.
+
+  [ Maarten Lankhorst ]
+  * Merge from unreleased debian-experimental.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 19 Feb 2015 11:28:53 +0100
+
+mesa (10.4.2-2ubuntu5) vivid; urgency=medium
+
+  * Fix ftbfs from no longer including libmirclient-dev.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 11 Feb 2015 09:21:54 +0100
+
+mesa (10.4.2-2ubuntu4) vivid; urgency=medium
+
+  * debian/control:
+    - Change build-dep for mir to mir-client-platform-mesa-dev.
+  * debian/patches/egl-platform-mir.patch:
+    - Fix potential double free (LP: #1414999).
+    - Fix gbm_device leak (LP: #1419704).
+    - Fix dri_buffers[front/back] leak (LP: #1419710).
+    - Use mir-client-platform-mesa-dev to get Mir build flags.
+
+ -- Alexandros Frantzis <alexandros.frantzis@canonical.com>  Mon, 09 Feb 2015 12:35:56 +0200
+
+mesa (10.4.2-2ubuntu3) vivid; urgency=medium
+
+  * egl-platform-mir.patch: Fix memory leak. (LP:#1418486)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Fri, 06 Feb 2015 12:12:01 +0200
+
+mesa (10.4.2-2ubuntu2) vivid; urgency=medium
+
+  * Flip the switch to llvm 3.6 with patches backported from upstream.
+  * Add upstream workaround for hangs on gen4. (LP: #1388612)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 29 Jan 2015 13:27:10 +0100
+
+mesa (10.4.2-2ubuntu1) vivid; urgency=medium
+
+  [ Timo Aaltonen ]
+  * Merge from Debian experimental.
+
+  [ Maarten Lankhorst ]
+  * Disable opencl after it was re-enabled accidentally in the merge.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 20 Jan 2015 10:30:20 +0100
+
+mesa (10.4.2-2) unstable; urgency=medium
+
+  * rules: Drop dh_makeshlibs exception on gbm_gallium_drm.so as it's
+    gone now.
+  * control: Add depends on libwayland-egl1-mesa to libegl1-mesa-dev,
+    since it ships libwayland-egl.so on Linux.
+  * control: Mark libegl1-mesa-drivers M-A: same again. (Closes:
+    #775370)
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Thu, 15 Jan 2015 15:28:40 +0200
+
+mesa (10.4.2-1) experimental; urgency=medium
+
+  * New upstream release.
+  * control, rules, libopenvg*, libgbm1, libegl1-mesa-drivers:
+    Drop EGL/GBM state trackers and OpenVG.
+  * control: Make libegl1-mesa-drivers transitional.
+
+ -- Timo Aaltonen <tjaalton@debian.org>  Tue, 13 Jan 2015 13:43:51 +0200
+
+mesa (10.3.2-0ubuntu1) vivid; urgency=medium
+
+  * Merge from unreleased debian-unstable.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 27 Oct 2014 08:43:19 +0100
+
+mesa (10.3.2-1) unstable; urgency=medium
+
+  [ Sven Joachim ]
+  * New upstream stable release.
+    - Fixes crashes in vdpau with the r600g driver (Closes: #766058).
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 27 Oct 2014 11:40:24 +0100
+
+mesa (10.3.1-1ubuntu1) utopic; urgency=medium
+
+  * Merge with released debian unstable, no changes in packaging.
+    - New upstream release. (LP: #1384289)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 23 Oct 2014 12:50:53 +0200
+
+mesa (10.3.1-1) unstable; urgency=medium
+
+  * Build libgbm on kfreebsd (fixes FTBFS).
+  * New upstream stable release.
+  * Upload to unstable.
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 13 Oct 2014 17:56:27 +0200
+
+mesa (10.3.0-2) experimental; urgency=medium
+
+  * Add missing Replaces/Breaks for the gallium-pipe move.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 10 Oct 2014 00:09:47 +0200
+
+mesa (10.3.0-0ubuntu3) utopic; urgency=medium
+
+  [ Andreas Pokorny ]
+  * debian/patches/egl-platform-mir.patch:
+    - Add support for get_image_buffers and KHR_image_pixmap.
+
+  [ Alexandros Frantzis ]
+  * debian/patches/egl-platform-mir.patch:
+    - Update for Mesa 10.3 (LP: #1377853).
+
+ -- Alexandros Frantzis <alexandros.frantzis@canonical.com>  Tue, 07 Oct 2014 13:06:26 +0300
+
+mesa (10.3.0-0ubuntu2) utopic; urgency=medium
+
+  * Add depends on libgl1-mesa-dri to some packages.
+    - libgl1-mesa-glx, libegl1-mesa and libgbm1 depend on the dri
+      files to be installed, even for swrast support. (LP: #1374131)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 29 Sep 2014 14:33:23 +0200
+
+mesa (10.3.0-0ubuntu1) utopic; urgency=medium
+
+  * New upstream release. (LP: #1364003)
+  * Merge from released debian-experimental.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 22 Sep 2014 15:42:27 +0200
+
+mesa (10.3.0-1) experimental; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+  * Remove upstreamed patch.
+    - 01_gallium-util-add-missing-u_debug-include.patch
+
+  [ Andreas Boll ]
+  * Move gallium-pipe installation from libgl1-mesa-dri.install.linux.in
+    to mesa-opencl-icd.install.in, because it's only needed for opencl.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 08 Oct 2014 10:30:05 +0200
+
+mesa (10.3.0~rc3-3) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * Bump llvm-3.5-dev and libclang-3.5-dev to 1:3.5-1, should fix FTBFS on
+    kfreebsd-*.
+  * Bump compat to v9 for changed dh_strip behavior:
+    - dh_strip puts separated debug symbols in a location based on their
+      build-id (Closes: #755921).
+  * Drop redundant libegl1-mesa-drivers.install.linux.in.
+
+  [ Dima Kogan ]
+  * All -dev packages are now Multi-Arch: same (Closes: #689088, #678040).
+
+  [ Julien Cristau ]
+  * Upload clean source without partial Ubuntu alternatives patches (closes: #761678)
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 15 Sep 2014 22:39:15 +0200
+
+mesa (10.3.0~rc3-2) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * Add 01_gallium-util-add-missing-u_debug-include.patch, fixes FTBFS on
+    big endian archs.
+  * Enable --with-egl-platforms=drm on kfreebsd-any, should fix FTBFS.
+  * Don't try to install vdpau hardlinks on hurd, should fix FTBFS.
+
+  [ Fabio Pedretti ]
+  * debian/rules: minor cleanup.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 15 Sep 2014 11:01:55 +0200
+
+mesa (10.3.0~rc3-1) experimental; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * Build with llvm 3.5.
+  * New upstream release.
+  * Remove mention of tdfx.
+
+  [ Timo Aaltonen ]
+  * mesa-common-dev: Add glcorearb.h.
+  * not-installed: Skip libglapi.so.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 08 Sep 2014 15:50:42 +0200
+
+mesa (10.2.6-1ubuntu3) utopic; urgency=medium
+
+  * And revert again for now.. (LP: #1360241)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Fri, 22 Aug 2014 15:02:30 +0200
+
+mesa (10.2.6-1ubuntu2) utopic; urgency=medium
+
+  * Fixup typo.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 21 Aug 2014 18:39:52 +0200
+
+mesa (10.2.6-1ubuntu1) utopic; urgency=medium
+
+  * Drop 101_ubuntu_hidden_glname.patch.
+    - 8 years old patch supposedly to fix glx-tls, but if it was
+      important nowadays I would have expected it in upstream by now.
+  * Rebuild against llvm 3.5-rc3.
+  * Add explicit depends on llvm 3.5-rc3 for libgl1-mesa-dri.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 21 Aug 2014 15:27:00 +0200
+
+mesa (10.2.6-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Drop x32-updates.diff, upstream.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 21 Aug 2014 15:06:36 +0200
+
+mesa (10.2.5-1ubuntu2) utopic; urgency=medium
+
+  * Temporarily revert to llvm 3.4, too many regressions.
+
+ -- Maarten Lankhorst <maarten.lankhorst@canonical.com>  Wed, 13 Aug 2014 23:11:15 +0200
+
+mesa (10.2.5-1ubuntu1) utopic; urgency=low
+
+  * Rebuild with llvm 3.5.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 12 Aug 2014 13:05:29 +0200
+
+mesa (10.2.5-1) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+    - nv50: fix build failure on m68k due to invalid struct alignment
+      assumptions (Closes: #728053).
+    - i915: Fix up intelInitScreen2 for DRI3 (Closes: #754297).
+
+  [ Matthias Klose ]
+  * Add patch to fix FTBFS on x32. (Closes: #757703)
+    - x32-updates.patch
+
+  [ Maarten Lankhorst ]
+  * Enable support for freedreno.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 11 Aug 2014 13:34:58 +0200
+
+mesa (10.2.4-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 20 Jul 2014 10:20:05 +0200
+
+mesa (10.2.3-0ubuntu1) utopic; urgency=low
+
+  * Merge from unreleased unstable to fix vmwgfx.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 09 Jul 2014 11:57:29 +0200
+
+mesa (10.2.3-1) unstable; urgency=low
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+
+  [ Julien Cristau ]
+  * Add debian/upstream/signing-key.asc, and add pgpsigurlmangle option to
+    debian/watch so uscan can check signatures on release tarballs.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 09 Jul 2014 19:39:06 +0200
+
+mesa (10.2.2-1ubuntu1) utopic; urgency=medium
+
+  * Merge with released debian unstable.
+    - New upstream release.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 03 Jul 2014 11:44:05 +0200
+
+mesa (10.2.2-1) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+    - glx: Don't crash on swap event for a Window (non-GLXWindow)
+      (Closes: #685328).
+    - 01_targets-xa-limit-the-amount-of-exported-symbols.diff dropped,
+      upstream
+  * Cherry-pick commit b4dcf87 (glxext: Send the Drawable's ID in the
+    GLX_BufferSwapComplete event) from upstream, fixes intel + dri3.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 03 Jul 2014 09:54:48 +0200
+
+mesa (10.2.1-2ubuntu3) utopic; urgency=low
+
+  * Fix segfault in Mir EGL platform on i965 (LP: #1336854)
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Thu, 03 Jul 2014 11:52:41 +1000
+
+mesa (10.2.1-2ubuntu2) utopic; urgency=medium
+
+  * Fix FTBFS by fixing 117-static-gallium.patch
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 25 Jun 2014 11:41:13 +0200
+
+mesa (10.2.1-2ubuntu1) utopic; urgency=medium
+
+  * Merge with released debian unstable.
+    - New upstream release.
+    - Drop upstreamed patches.
+    - Refresh mir patch.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 23 Jun 2014 15:52:33 +0200
+
+mesa (10.2.1-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 23 Jun 2014 12:00:09 +0200
+
+mesa (10.2.1-1) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+    - 01_glapi-Duplicate-GLES1-prototypes-in-glapi_dispatch.c.diff
+      dropped, upstream
+  * Add 01_targets-xa-limit-the-amount-of-exported-symbols.diff, fixes
+    FTBFS with gcc-4.9.
+  [ Maarten Lankhorst ]
+  * Attempt to fix a FTBFS on hurd.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 16 Jun 2014 15:41:59 +0200
+
+mesa (10.2.0~rc4-2) experimental; urgency=medium
+
+  [ Andreas Boll ]
+  * Add 01_glapi-Duplicate-GLES1-prototypes-in-glapi_dispatch.c.diff,
+    should fix FTBFS on non-i386 and non-amd64.
+
+  [ Emilio Pozuelo Monfort ]
+  * Upload to experimental.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Sat, 31 May 2014 00:44:19 +0200
+
+mesa (10.2.0~rc4-1) experimental; urgency=medium
+
+  [ Fabio Pedretti ]
+  * debian/rules: remove unused --with-llvm-shared-libs configure option
+  * debian/control: remove python-libxml2 dependency
+
+  [ Julien Cristau ]
+  * Bump libdrm-dev build-dep to 2.4.54 per configure.ac.
+  * Bump libxcb-dri2 and libxcb-glx build-deps per configure.ac.
+  * Remove Cyril Brulebois from Uploaders.
+  * debian/rules: explicitly disable omx.
+
+  [ Maarten Lankhorst ]
+  * New upstream release candidate.
+
+  [ Andreas Boll ]
+  * New upstream release candidate.
+    - 01_no_undefined.diff dropped, upstream
+  * Don't try to enable xa on !linux.
+
+  [ Emilio Pozuelo Monfort ]
+  * Upload to experimental.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Sat, 24 May 2014 15:16:23 +0200
+
+mesa (10.2.0~rc1-1) experimental; urgency=medium
+
+  [ Timo Aaltonen ]
+  * New upstream release candidate.
+    - 02_gbm_no_undefined.diff dropped, upstream
+    - 03_gbm_make_devices_static.diff dropped, upstream
+  * control: Bump libdrm-dev build-dependency.
+  * Drop a symbol from libxatracker2.
+  * libosmesa6: Bump the soname to upstream default (8), drop
+    04_osmesa_version.diff. Add a symlink with the old name to point to
+    the new lib.
+
+  [ Julien Cristau ]
+  * Add 01_no_undefined.diff to actually add -Wl,--no-undefined to the linker
+    flags for our shared libraries.
+
+  [ Andreas Boll ]
+  * Relax ocl-icd-libopencl1 dependency to allow the generic virtual
+    libopencl1 as a valid alternative (Closes: #745765).
+  * Add missing separator between dependency items '${misc:Depends}'
+    and 'libglapi-mesa (= ${binary:Version})'.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 14 May 2014 22:57:08 +0200
+
+mesa (10.1.4-1) unstable; urgency=medium
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+
+  [ Andreas Boll ]
+  * New upstream release.
+  * Bump llvm-3.4-dev and libclang-3.4-dev to 1:3.4.1-3
+    - Enables geometry shaders on radeonsi
+
+  [ Emilio Pozuelo Monfort ]
+  * Upload to unstable.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Tue, 27 May 2014 12:05:35 +0200
+
+mesa (10.1.3-0ubuntu1) utopic; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * Merge from unreleased debian-unstable.
+
+  [ Timo Aaltonen ]
+  * fix-gpu-hangs-on-bdw.diff: Upstream commit to fix various GPU hangs
+    on Broadwell. (LP: #1318589)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 12 May 2014 09:51:08 +0000
+
+mesa (10.1.2-1) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * New upstream release.
+    + i965: Don't enable reset notification support on Gen4-5 (Closes: #746557)
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 06 May 2014 09:31:26 +0200
+
+mesa (10.1.1-1) unstable; urgency=low
+
+  [ Andreas Boll ]
+  * New upstream release.
+  * Relax ocl-icd-libopencl1 dependency to allow the generic virtual
+    libopencl1 as a valid alternative (Closes: #745765).
+  * Add missing separator between dependency items '${misc:Depends}'
+    and 'libglapi-mesa (= ${binary:Version})'.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 27 Apr 2014 19:51:45 +0200
+
+mesa (10.1.0-4ubuntu5) trusty; urgency=medium
+
+  * enable-bdw.diff: Enable Broadwell support. (LP: #1300258)
+  * fix-unity-on-bdw.diff: Fix rendering on unity.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Mon, 14 Apr 2014 09:59:17 +0300
+
+mesa (10.1.0-4ubuntu4) trusty; urgency=medium
+
+  * Cherry-pick patches to improve stability with vmware. (LP: #1284134)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 10 Apr 2014 12:08:10 +0200
+
+mesa (10.1.0-4ubuntu3) trusty; urgency=medium
+
+  * i965-dont-call-abort-on-unknown-dev.diff: Allow using a fallback
+    driver when the native one doesn't support the device.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Wed, 09 Apr 2014 12:42:49 +0300
+
+mesa (10.1.0-4ubuntu2) trusty; urgency=medium
+
+  * fix-kwin.diff: i965; Don't check reset status on gen4/5. (LP: #1299499)
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Tue, 01 Apr 2014 16:58:02 +0300
+
+mesa (10.1.0-4ubuntu1) trusty; urgency=medium
+
+  * Merge from unreleased debian sid.
+  * Add explicit libudev1 | libudev0 dependency. (LP: #1296947)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 31 Mar 2014 09:56:17 +0000
+
+mesa (10.1.0-5) unstable; urgency=low
+
+  [ Maarten Lankhorst ]
+  * Add explicit libudev1 dependency (LP: #1296947)
+    - libudev is being dlopened now, but still a dependency.
+
+  [ Julien Cristau ]
+  * Fix libegl1-mesa-dev installability on hurd, which doesn't have
+    libegl1-mesa-drivers (closes: #742335).  Thanks, Pino Toscano!
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 31 Mar 2014 15:58:53 +0200
+
+mesa (10.1.0-4) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * Fix unsatisfiable libwayland-egl1-mesa and libwayland-dev dependency on
+    !linux (Closes: #742306).
+  * Install /etc/drirc on hurd (Closes: #741572).
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 22 Mar 2014 10:39:12 +0100
+
+mesa (10.1.0-3) unstable; urgency=medium
+
+  [ Andreas Boll ]
+  * Build OpenCL only on architectures where we have LLVM enabled.
+  * Actually enable radeonsi on kfreebsd.
+
+  [ Sven Joachim ]
+  * Drop dependency of libegl1-mesa-drivers on libgl1-mesa-dri again.
+
+  [ Julien Cristau ]
+  * Steal Ubuntu patch to work around build failure on armhf
+    (https://bugs.freedesktop.org/show_bug.cgi?id=72064)
+  * Upload to unstable.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 19 Mar 2014 22:48:14 +0100
+
+mesa (10.1.0-2) experimental; urgency=medium
+
+  [ Sjoerd Simons ]
+  * Install libwayland-egl in a separate library package (libwayland-egl1-mesa)
+    and provide a virtual libwayland-egl1 package. (Closes: #739269).
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 17 Mar 2014 23:11:14 +0100
+
+mesa (10.1.0-1ubuntu1) trusty; urgency=medium
+
+  * Merge from released debian-experimental.
+  * Rename libvdpau1-drivers-mesa to mesa-vdpau-drivers.
+    - This makes ubuntu package names identical to debian.
+  * Disable opencl for now.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 13 Mar 2014 16:30:35 +0100
+
+mesa (10.1.0-1) experimental; urgency=low
+
+  [ Andreas Boll ]
+  * Disable dri3 on !linux
+  * Enable building drivers for libvdpau1 (Closes: #705558).
+  * New upstream release.
+  * Drop 01-hurd.diff, upstream in 10.1.0.
+  * Next attempt to fix FTBFS on hurd
+
+  [ Sven Joachim ]
+  * Drop dependency of libegl1-mesa-drivers on libgl1-mesa-dri.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 07 Mar 2014 22:16:32 +0100
+
+mesa (10.1.0~rc3-0ubuntu3) trusty; urgency=medium
+
+  * Add --dynamic-list to undo damage from -Bsymbolic-functions.
+    - This fixes vdpau interop properly.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 06 Mar 2014 10:28:47 +0100
+
+mesa (10.1.0~rc3-0ubuntu2) trusty; urgency=medium
+
+  * Install libegl-wayland in /mesa-egl again.
+    - Fixes FTBFS for g-c-c.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 05 Mar 2014 10:17:21 +0100
+
+mesa (10.1.0~rc3-0ubuntu1) trusty; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * Merge from unreleased debian-experimental.
+  * Enable egl, libopenvg, gbm and vdpau for all archs.
+    - This simplifies the build rules considerably, and
+      is closer to debian behavior.
+  * Cherry pick fixes for playback of interlaced videos. (LP: #1287326)
+  * Cherry pick fixes for crashes related to vdpau interop.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 25 Feb 2014 14:29:26 +0100
+
+mesa (10.1.0~rc2-1) experimental; urgency=medium
+
+  [ Maarten Lankhorst ]
+  * Add missing depends to keep lib(e)gl1-dev usable.
+  * Bump to rc2.
+
+  [ Emilio Pozuelo Monfort ]
+  * Update build dependencies and dependencies minimum versions. Thanks to
+    Fabio Pedretti <fabio.ped@libero.it> for the patch.
+
+  [ Andreas Boll ]
+  * Attempt to fix FTBFS on hurd.
+  * Cherry pick some fixes for GLX fbconfig. (Closes: #739691)
+
+  [ Samuel Thibault ]
+  * Enable egl and gles on hurd (closes: #729260)
+
+  [ Julien Cristau ]
+  * libgbm1.symbols: try to avoid listing private symbols.
+  * Enable radeon/r200/r300/r600/radeonsi on kfreebsd (closes: #732337).
+    Thanks, Robert Millan!
+  * gallium: fix build failure on powerpcspe (closes: #695746).  Thanks, Roland
+    Stigge!
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 02 Mar 2014 20:22:47 +0100
+
+mesa (10.1.0~rc1-1ubuntu4) trusty; urgency=medium
+
+  * Merge from debian git
+    - Enable building drivers for libvdpau1
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Thu, 20 Feb 2014 21:46:24 +0200
+
+mesa (10.1.0~rc1-1ubuntu3) trusty; urgency=low
+
+  [ Robert Hooker ]
+  * Add more missing depends to lib(e)gl1-mesa-dev.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 19 Feb 2014 19:38:33 +0100
+
+mesa (10.1.0~rc1-1ubuntu2) trusty; urgency=low
+
+  * Add libxcb-dri3-dev to lib(e)gl1-mesa-dev depends.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 19 Feb 2014 19:06:29 +0100
+
+mesa (10.1.0~rc1-1ubuntu1) trusty; urgency=low
+
+  * First mesa 10.1 release candidate.
+  * Refresh egl-platform-mir.patch and drop upstreamed bits.
+  * Merge more upstream fixes post rc1.
+  * Cherry pick some fixes for GLX fbconfig. (LP: #1278168)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 19 Feb 2014 17:19:12 +0100
+
+mesa (10.1.0~rc1-1) experimental; urgency=low
+
+  * New upstream release.
+  * Add new build-depends for dri3.
+  * Refresh libegl1-mesa and gbm symbols.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 12 Feb 2014 11:50:39 +0100
+
+mesa (10.0.2-1) experimental; urgency=low
+
+  [ Maarten Lankhorst ]
+  * Stop building libgl1-mesa-dri-experimental (Closes: #685104).
+    - It's been empty since 8.0.
+  [ Matthias Klose ]
+  * Move to llvm-3.4.
+
+  [ Julien Cristau ]
+  * Fix FTBFS on kfreebsd.
+  * ... and attempt to fix FTBFS on hurd.
+  * New upstream stable release.
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 25 Jan 2014 10:44:22 +0100
+
+mesa (10.0.1-1ubuntu2) trusty; urgency=medium
+
+  [ Matthias Klose ]
+  * Build using llvm-3.4.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 19 Dec 2013 19:21:03 +0100
+
+mesa (10.0.1-1ubuntu1) trusty; urgency=low
+
+  * New upstream release.
+  * Do not enable llvmpipe on armhf. (LP: #1260068)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 19 Dec 2013 18:03:32 +0100
+
+mesa (10.0.1-1) experimental; urgency=low
+
+  * New upstream release.
+  * Do not attempt to build i915 and i965 on arm.
+  * Enable radeonsi on arm.
+  * Disable llvmpipe on armhf, it regresses.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 18 Dec 2013 15:18:25 +0100
+
+mesa (10.0.0-1ubuntu4) trusty; urgency=medium
+
+  * libegl1-mesa-dev: Don't depend on libmirclient-dev on ppc64.
+
+ -- Matthias Klose <doko@ubuntu.com>  Mon, 16 Dec 2013 10:51:02 +0100
+
+mesa (10.0.0-1ubuntu3) trusty; urgency=low
+
+  * Refresh Mir EGL platform patch.
+    + Adds EGL_KHR_image support, needed for nested Mir-on-Mir support
+    + Adds resize support (LP: #1227744)
+    + Properly free()s surface front and back buffers on destroy (LP: #1211982)
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Wed, 11 Dec 2013 12:24:46 +0800
+
+mesa (10.0.0-1ubuntu2) trusty; urgency=low
+
+  * Do not require libdrm-intel on arm, fixes FTBFS regression.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 09 Dec 2013 19:20:07 +0100
+
+mesa (10.0.0-1ubuntu1) trusty; urgency=low
+
+  * Merge from released debian-experimental, changes:
+    - Reset versions on libxatracker2 symbols.
+    - Enable llvmpipe on armhf.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 09 Dec 2013 11:59:03 +0100
+
+mesa (10.0.0-1) experimental; urgency=low
+
+  [ Emilio Pozuelo Monfort ]
+  * debian/control:
+    + Let libegl1-mesa-dev depend on libwayland-dev as wayland-egl.pc
+      requires wayland-client.pc.
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+  * Refresh patches for 10.0-rc1.
+  * Bump libdrm-dev requirement to 2.4.48 for intel.
+  * Add breaks on xserver-xorg-core without support for loading megadriver.
+  * Cherry pick commit to hide some gbm symbols.
+  * Manually install *_dri.so to preserve mega-driver hardlinks.
+
+  [ Timo Aaltonen ]
+  * rules: Enable llvmpipe on armhf, should work now.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 08 Dec 2013 15:17:17 +0100
+
+mesa (10.0.0-0ubuntu1) trusty; urgency=low
+
+  * Merge from unreleased debian-experimental.
+  * Drop upstreamed aarch64 patch.
+  * Refresh patches.
+  * Disable 118-dricore-gallium.patch for now, requires porting.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 09 Dec 2013 11:11:41 +0100
+
+mesa (9.2.2-1ubuntu2) trusty; urgency=medium
+
+  * Build without Mir backend on ppc64.
+
+ -- Matthias Klose <doko@ubuntu.com>  Sat, 07 Dec 2013 14:42:44 +0100
+
+mesa (9.2.2-1ubuntu1) trusty; urgency=low
+
+  * Merge from released debian-unstable.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 22 Oct 2013 12:17:27 +0200
+
+mesa (9.2.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 22 Oct 2013 10:59:20 +0200
+
+mesa (9.2.1-1ubuntu3) saucy; urgency=low
+
+  * libegl1-mesa-dev: Don't depend on libmirclient-dev on AArch64.
+
+ -- Matthias Klose <doko@ubuntu.com>  Thu, 10 Oct 2013 16:25:10 +0200
+
+mesa (9.2.1-1ubuntu2) saucy; urgency=low
+
+  * Build without Mir backend on AArch64.
+
+ -- Matthias Klose <doko@ubuntu.com>  Wed, 09 Oct 2013 23:11:33 +0000
+
+mesa (9.2.1-1ubuntu1) saucy; urgency=low
+
+  [ Robert Hooker ]
+  * Add i915-dont-default-to-2.1.patch: Stop defaulting to OpenGL 2.1 that is not
+    fully implemented in hardware on gen3 GPUs, the software fallbacks make Unity
+    unusably slow. (LP: #1222602)
+  [ Maarten Lankhorst ]
+  * New upstream bugfix release. (LP: #1232940)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 07 Oct 2013 10:39:18 +0200
+
+mesa (9.2.1-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 07 Oct 2013 10:00:39 +0200
+
+mesa (9.2-1ubuntu3) saucy; urgency=low
+
+  * Create a libglapi.so symlink. (LP: #1232000)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 01 Oct 2013 13:09:38 +0200
+
+mesa (9.2-1ubuntu2) saucy; urgency=low
+
+  * Fix double-free in Mir EGL platform (LP: #1221974)
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Tue, 17 Sep 2013 12:05:36 -0400
+
+mesa (9.2-1ubuntu1) saucy; urgency=low
+
+  * Merge from debian-experimental, remaining changes:
+    - Add support for aarch64.
+    - Build libgallium and libmesagallium shared.
+    - Enable mir support.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 28 Aug 2013 14:02:08 +0200
+
+mesa (9.2-1) experimental; urgency=low
+
+  [ Jon Severinsson ]
+  * control: Recommend libtxc-dxtn-s2tc0 | libtxc-dxtn0, not just the virtual libtxc-dxtn0.
+  * control: Bump libdrm-dev build-dependency to 2.4.45.
+  * control: Add versioned libglapi-mesa dependency to libosmesa6.
+  * libgl1-mesa(-swx11)-dev.install.in: Install the correct pkgconfig/gl.pc files.
+  * rules: Add --disable-shared-glapi to the swx11-i386-i686 target.
+
+  [ Maarten Lankhorst ]
+  * Bump libdrm-dev to 2.4.46.
+
+  [ Sven Joachim ]
+  * Remove the workaround for sparc introduced in version 7.10-2.
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+  * Refresh 02_gbm_no_undefined.diff.
+  * Drop 12_fix_glapi_gen.diff, upstreamed.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 28 Aug 2013 10:28:20 +0200
+
+mesa (9.2~rc1-1) experimental; urgency=low
+
+  * New upstream release.
+  * Refresh patches for 9.2:
+    - 02_gbm_no_undefined.diff.
+    - 04_osmesa_version.diff
+    - 06_kfreebsd-ftbfs.diff
+  * Removed writes to srcdir, fixing parallel builds.
+    - 12_fix_glapi_gen.diff
+  * Require llvm-3.3-dev >= 1:3.3-4 and libelf-dev.
+  * Update symbols files.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 20 Aug 2013 15:42:31 +0200
+
+mesa (9.1.7-1) unstable; urgency=low
+
+  [ Andreas Beckmann ]
+  * libgl1-mesa-glx: Add Breaks: glx-diversions (<< 0.4) because the old
+    versions were not aware of libGL.so.1.2.0.  (Closes: #720069)
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 07 Oct 2013 11:34:34 +0200
+
+mesa (9.1.6-2ubuntu2) saucy; urgency=low
+
+  * Import missing powerpc build fixes.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 13 Aug 2013 16:23:32 +0200
+
+mesa (9.1.6-2ubuntu1) saucy; urgency=low
+
+  * New upstream release.
+  * Merge from RELEASED debian-unstable. \o/
+  * Remaining changes:
+    - Building mir.
+    - Add support for aarch64.
+    - Linking against shared dricore/gallium.
+  * Drop fix-osmesa-exports.diff, upstreamed.
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 13 Aug 2013 15:39:43 +0200
+
+mesa (9.1.6-2) unstable; urgency=low
+
+  * Don't run 'make -j' if DEB_BUILD_OPTIONS doesn't set parallel.  Oops.
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 12 Aug 2013 08:00:21 +0200
+
+mesa (9.1.6-1) unstable; urgency=low
+
+  [ Andreas Boll ]
+  * New upstream release. (Closes: #717410)
+  * Cherry-pick commit 0dbbfa0 (mesa: Fix MESA_PATCH version) from
+    upstream.
+
+  [ Julien Cristau ]
+  * Don't run configure for different builds in parallel.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 11 Aug 2013 18:15:58 +0200
+
+mesa (9.1.4-0ubuntu8) saucy; urgency=low
+
+  * hide the now missing Mir symbol on powerpc.
+
+ -- Didier Roche <didrocks@ubuntu.com>  Mon, 05 Aug 2013 13:43:52 +0200
+
+mesa (9.1.4-0ubuntu7) saucy; urgency=low
+
+  * rules,control: Don't build Mir support on powerpc as it's not available
+    there.
+
+ -- Didier Roche <didrocks@ubuntu.com>  Mon, 05 Aug 2013 12:59:59 +0200
+
+mesa (9.1.4-0ubuntu6) saucy; urgency=low
+
+  * Add Mir EGL platform
+
+ -- Christopher James Halse Rogers <raof@ubuntu.com>  Fri, 02 Aug 2013 13:30:23 +1000
+
+mesa (9.1.4-0ubuntu5) saucy; urgency=low
+
+  * Fix the build on Aarch64, disabling most of the acceleration
+    packages.
+
+ -- Matthias Klose <doko@ubuntu.com>  Mon, 22 Jul 2013 14:29:24 +0200
+
+mesa (9.1.4-0ubuntu4) saucy; urgency=low
+
+  * Fix build on Aarch64.
+  * debian/rules: Split out a configure target to be able to restart
+    builds.
+
+ -- Matthias Klose <doko@ubuntu.com>  Sun, 21 Jul 2013 13:43:45 +0200
+
+mesa (9.1.4-0ubuntu3) saucy; urgency=low
+
+  * Add fix-os-mesa-exports.diff from upstream. (LP: #1066599)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 16 Jul 2013 11:29:32 +0200
+
+mesa (9.1.4-0ubuntu2) saucy; urgency=low
+
+  * control, rules: Again, add llvm-3.2-dev to build-depends for
+    powerpc, enable gallium llvm and shared libs (FTBFS).
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Tue, 02 Jul 2013 15:26:47 +0300
+
+mesa (9.1.4-0ubuntu1) saucy; urgency=low
+
+  * Merge from unreleased debian git, remaining changes:
+    - don't build libgl1-mesa-swx11*
+    - use alternatives for libEGL, libGL*, libOpenVG
+    - build a common libgallium library to save disk space
+    - clean up extra po files
+  * Drop patches now upstream.
+  * Update revert-a64c1eb9b110.diff.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Tue, 02 Jul 2013 10:06:51 +0300
+
+mesa (9.1.4-1) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Don't call wayland_buffer_is_drm from libgbm, it's in libEGL
+    (closes: #712556).
+  * Make sure libgbm doesn't have undefined symbols.
+
+  [ Andreas Boll ]
+  * Use dpkg-buildflags.
+  * Disable silent rules.
+  * Cherry-pick commit 0829b89 (mesa: Fix ieee fp on Alpha) from upstream
+    (Fixes FTBFS on alpha)
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+
+  [ Julien Cristau ]
+  * libegl1-mesa-drivers depends on libgl1-mesa-dri for libllvmradeon
+    (closes: #714828)
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 06 Jul 2013 11:37:34 +0200
+
+mesa (9.1.3-6) unstable; urgency=low
+
+  * Team upload.
+
+  * debian/libegl1-mesa.symbols:
+    + More kfreebsd build fixes. Mark some symbols as linux-any.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Fri, 07 Jun 2013 20:27:55 +0200
+
+mesa (9.1.3-5) unstable; urgency=low
+
+  * Team upload.
+
+  [ Andreas Boll ]
+  * debian: Don't install libllvmradeon*.so on kfreebsd-*, fixes FTBFS.
+
+  [ Emilio Pozuelo Monfort ]
+  * Upload to unstable.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Fri, 07 Jun 2013 14:12:43 +0200
+
+mesa (9.1.3-4) unstable; urgency=low
+
+  * Team upload.
+
+  [ Andreas Boll ]
+  * debian: Fix another kfreebsd-* FTBFS with adding libgl1-mesa-
+    dri.install.kfreebsd.in, where we don't install gallium-pipe/*.so
+
+  [ Emilio Pozuelo Monfort ]
+  * Release to unstable.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Fri, 07 Jun 2013 00:50:34 +0200
+
+mesa (9.1.3-3) experimental; urgency=low
+
+  [ Andreas Boll ]
+  * debian/not-installed: Remove /etc/drirc, it's shipped since 8.0.5-1.
+    Fixes build on hurd.
+  * debian: Fix build regression on !hurd.
+    Fix it with libgl1-mesa-dri.install.hurd.in, where we don't install drirc.
+  * Cherry-pick commit 7de78ce5, 07f2dee and 9622049 from upstream
+    (Fixes FTBFS on kfreebsd-*)
+    - configure.ac: Remove redundant checks of enable_dri.
+    - configure.ac: Build dricommon for DRI gallium drivers
+    - configure.ac: Build dricommon for gallium swrast
+  * Memory corruption (OOB read/write) in i965 driver [CVE-2013-1872]
+
+  [ Julien Cristau ]
+  * Build i915 and i965 on kfreebsd.
+
+ -- Cyril Brulebois <kibi@debian.org>  Thu, 06 Jun 2013 10:29:15 +0200
+
+mesa (9.1.3-2) experimental; urgency=low
+
+  * Team upload.
+
+  [ Julien Cristau ]
+  * Fix build of swrast only without libdrm, causing build failure on hurd
+    (cherry-picked from upstream).  Thanks, Andreas Boll!
+
+  [ Andreas Boll ]
+  * debian/not-installed: Remove glut headers
+  * debian/patches: Drop 05_kfreebsd-egl-x11.diff, fixed by eglibc (2.17-4)
+  * debian/rules: Use rm -f instead of rm for deleting libdricore*.so, fixes
+    build failure on kfreebsd-*.
+  * glapi: Add some missing static_dispatch=false annotations to
+    es_EXT.xml. Fixes FTBFS on powerpc and ia64 (cherry-picked from
+    upstream).
+
+  [ Emilio Pozuelo Monfort ]
+  * Release to experimental.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Mon, 03 Jun 2013 15:25:19 +0200
+
+mesa (9.1.3-1) experimental; urgency=low
+
+  * Team upload.
+  * New upstream release.
+    - Set close on exec flag when opening dri devices (Closes: #651370).
+    - Don't emit a .note.ABI-tag section anymore (Closes: #628758).
+
+  [ Timo Aaltonen ]
+  * Refresh patches
+    - disable 05_kfreebsd-egl-x11.diff for now.
+  * control: Added libtool to build-depends.
+  * rules: Drop special handling of config.{guess,sub}, not needed anymore.
+  * rules, libosmesa*: Build only the 32bit OSMesa library.
+  * control: Bump libdrm build-dep to 2.4.39.
+  * control: Bump libwayland-dev build-dep to 0.95.
+  * rules: Update the clean target.
+  * rules: Add --disable-shared-glapi to the swx11 targets.
+  * libosmesa*.install.in: Install files from the correct path.
+  * rules: --with-driver= is deprecated, use --enable-foo.
+  * rules: Purge .la files before dh_install.
+  * Update symbols.
+  * libgl1-mesa-dri.install*.in: Add libdricore.
+  * control: Add new dependencies to libgl1-mesa-dev.
+  * rules, libgl1-mesa-dri.install.linux.in: Add support for radeonsi.
+  * rules: Build llvm shared libs on platforms that support llvm.
+  * control, rules, libglu*: Remove libglu packaging, since it's been split
+    off upstream.
+  * rules: Disable dri for the swx11 targets.
+  * not-installed: Updated.
+  * Update symbols for libgles2-mesa and libxatracker1.
+  * libegl1-mesa-drivers.install.linux: Bump libwayland-egl.so version
+  * control: Add libdrm-dev to mesa-common-dev Depends.
+  * control: Build-depend on llvm-3.2-dev (Closes: #678822).
+  * libgl1-mesa-dri.install.in: Include gallium-pipe/*.so and libllvmradeon*.so.
+  * rules: Add files to clean.
+  * control: Add libxcb-dri2-0-dev to libgl1-mesa-dev depends.
+
+  [ Steve Langasek ]
+  * Install all dri drivers from the DESTDIR tree, instead of copying them
+    from the build tree; this simplifies the install rules since we know
+    already that we're only building drivers that we want to ship, and
+    avoids rpath problems with libtool linking to in-tree convenience
+    libraries.
+  * debian/rules: don't install libdricore*.so, this isn't a public library.
+  * Add Pre-Depends on multiarch-support to libgl1-mesa-dri, since we're
+    shipping a shared library in the package; not an issue in practice since
+    this is all post-wheezy / post-precise, but it's an archive reject error
+    in Debian right now so let's just be complete.
+
+  [ Maarten Lankhorst ]
+  * Bump standards-version to 3.9.3.
+  * control: Bump libwayland-dev build-dep to 1.0.2.
+  * Remove 13-llvm-config-pick-a-version.diff and just pass a flag to configure.
+
+  [ Robert Hooker ]
+  * Drop xutils-dev build dep, makedepend is no longer required
+  * Recommend libtxc-dxtn0 in libgl1-mesa-dri for easier use with multiarch
+    installs (Closes: #668645).
+  * Drop 02_use-ieee-fp-on-s390-and-m68k.patch, upstream in 9.1.2.
+  * Drop 10-hurd-configure-tweaks.diff, upstream in 9.1.2.
+
+  [ Sven Joachim ]
+  * Bump libdrm-dev build-dependency to 2.4.42.
+
+  [ Rico Tzschichholz ]
+  * Update packaging mesa packaging with xorg-edgers
+
+  [ Emilio Pozuelo Monfort ]
+  * integer overflows calculating memory needs for replies [CVE-2013-1993]
+  * Bump llvm-3.2-dev build dependency to 1:3.2repack-7~ for a fixed
+    llvm-config-3.2 --libdir, otherwise configure fails.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Tue, 28 May 2013 21:15:55 +0200
+
+mesa (9.1.3-0ubuntu3) saucy; urgency=low
+
+  * Added patches to add/fix Haswell pci-id's (LP: #1175533)
+    - add-vlv-ids.diff
+    - fix-hsw-gt3-names.diff
+    - fix-missing-gt3-id.diff
+    - add-more-reserved-hsw-ids.diff
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Wed, 19 Jun 2013 14:16:47 +0200
+
+mesa (9.1.3-0ubuntu2) saucy; urgency=low
+
+  * Add back a patch that reverts a change which made blur slow on i915,
+    add two other reverts so the big one applies cleanly. (LP: #1187500)
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Fri, 07 Jun 2013 15:11:32 +0300
+
+mesa (9.1.3-0ubuntu1) saucy; urgency=low
+
+  [ Robert Hooker ]
+  * New upstream bug-fix release.
+  * Drop upstream patches:
+     - 0001-nv50-fix-3D-render-target-setup.patch
+     - 0002-nv50-nvc0-disable-DEPTH_RANGE_NEAR-FAR-clipping-duri.patch
+     - 0003-nv50-nvc0-fix-3d-blits-restore-viewport-after-blit.patch
+     - 0004-nvc0-fix-for-2d-engine-R-source-formats-writing-RRR1.patch
+     - 100_no_abi_tag.patch
+     - 119-libllvmradeon-link.patch
+     - vbo-fix-crash.diff
+  * debian/patches/117-static-gallium.patch: Refresh for minor change
+    in 9.1.2
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 23 May 2013 10:06:41 +0200
+
+mesa (9.1.1-0ubuntu3) raring; urgency=low
+
+  * Hide x86sse symbols on i386, preventing conflicts. (LP: #1170074)
+    - 120-hide-x86sse.patch
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 18 Apr 2013 12:27:32 +0200
+
+mesa (9.1.1-0ubuntu2) raring; urgency=low
+
+  * control, rules: Add llvm-3.2-dev to build-depends for powerpc, enable
+    gallium llvm and shared libs (FTBFS).
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Wed, 17 Apr 2013 01:42:38 -0600
+
+mesa (9.1.1-0ubuntu1) raring; urgency=low
+
+  [ Timo Aaltonen ]
+  * Merge from unreleased debian git
+    - new upstream release (LP: #1112147, #1164093)
+  * Revert a commit to fix slow blur on intel.
+  * vbo-fix-crash.diff: Patch from the stable tree that fixes a crasher
+    with shared display lists.
+
+  [ Maarten Lankhorst ]
+  * Add some more patches to fix image copy regressions on nouveau.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Tue, 16 Apr 2013 15:35:32 +0300
+
+mesa (9.1~git20130207.f1c46c84-0ubuntu1) UNRELEASED; urgency=low
+
+  [ Timo Aaltonen ]
+  * Merge from unreleased debian git.
+  * Refresh patches.
+
+  [ Robert Hooker ]
+  * Drop ubuntu specific libtxc-dxtn-s2tc0 recommends from libgl1-mesa-glx,
+    libgl1-mesa-dri now recommends libtxc-dxtn0.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Thu, 07 Feb 2013 18:09:58 +0200
+
+mesa (9.0.3-0ubuntu1) raring; urgency=low
+
+  * New upstream release. (LP: #1134466)
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Thu, 14 Mar 2013 12:18:29 +0100
+
+mesa (9.0.2-0ubuntu1) raring; urgency=low
+
+  * New upstream release.
+  * Decrease size of mesa's libgl1-mesa-dri again
+    - re-enable 117-static-gallium.patch
+    - add 118-dricore-gallium.patch to link against libdricore again
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Tue, 22 Jan 2013 11:54:09 +0100
+
+mesa (9.0.1-0ubuntu1) raring; urgency=low
+
+  * Merge from unreleased debian git.
+    - release 9.0.1
+  * add 118-automake-ldrm.patch to ease backport to precise
+    - upstream commit, targeted for 9.0.2
+
+ -- Maarten Lankhorst <maarten.lankhorst@ubuntu.com>  Mon, 19 Nov 2012 12:03:50 +0100
+
+mesa (9.0-0ubuntu2) raring; urgency=low
+
+  * patches/118-wayland-0.99.diff: Upstream port to wayland 0.99 API
+  * patches/119-wayland-no-0.85.diff: Drop wayland 0.85 defines
+  * patches/120-wayland-no-egl-pixmap.diff: Drop wl_egl_pixmap usage
+  * debian/control: Adjust build-depends to match the above patches
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Sun, 18 Nov 2012 02:52:31 +0000
+
+mesa (9.0-0ubuntu1) quantal; urgency=low
+
+  * Merge from unreleased debian git.
+    - final 9.0 release.
+  * rules: Don't try building gallium swrast for arm, since it doesn't
+    work and wasn't actually built anyway.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Tue, 09 Oct 2012 15:55:51 +0300
+
+mesa (9.0~git20121004.b2048c5e-0ubuntu1) quantal; urgency=low
+
+  * Merge from unreleased debian git.
+    - new snapshot leading to final 9.0.
+  * Drop patch 118, obsolete.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Wed, 03 Oct 2012 18:23:24 +0300
+
+mesa (9.0~git20120917.7cfd42ce-0ubuntu3) quantal; urgency=low
+
+  * Add 118-undefined-symbols.patch, fixing libglapi and libosmesa
+    missing symbols. (LP: #1053088)
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Thu, 20 Sep 2012 13:25:46 +0300
+
+mesa (9.0~git20120917.7cfd42ce-0ubuntu2) quantal; urgency=low
+
+  * Add Recommends on libtxc-dxtn-s2tc0, required by Bastion, Psychonauts,
+    Amnesia and other games on Intel graphics.  This package provides
+    patent-free s3tc texture support.
+    (LP: #1053029)
+
+ -- Bryce Harrington <bryce@ubuntu.com>  Tue, 18 Sep 2012 21:17:11 -0700
+
+mesa (9.0~git20120917.7cfd42ce-0ubuntu1) quantal; urgency=low
+
+  * Merge from unreleased debian git. (LP: #1047306)
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Mon, 17 Sep 2012 13:24:35 +0300
+
+mesa (9.0~git20120903.e1673d20-0ubuntu1) quantal; urgency=low
+
+  * Merge from unreleased debian git.
+  * Remove 118-remove-assertion.diff, included upstream.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Thu, 06 Sep 2012 18:09:56 +0300
+
+mesa (9.0~git20120821.c1114c61-0ubuntu2) quantal; urgency=low
+
+  * Added 118-remove-assertion.diff from upstream (LP: #1042293).
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Mon, 27 Aug 2012 21:12:44 +0300
+
+mesa (9.0~git20120821.c1114c61-0ubuntu1) quantal; urgency=low
+
+  * Merge from unreleased debian git.
+    - Includes support for ATI Trinity PCI IDs (LP: #1009089)
+  * rules, control, libgl1-mesa-swx11*: Remove swx11 support.
+  * Refresh patches:
+    - drop 115_llvm_dynamic_linking.diff,
+      117_nullptr_check_in_query_version.patch, and
+      118_glsl_initialize_samplers.patch, all upstream
+    - disable 116_use_shared_galliumcore.diff until it's reviewed and
+      reworked to apply
+  * not-installed, libegl1-mesa-drivers-install.linux.in: Updated to
+    match the single-pass build.
+  * libgl1-mesa-dri.*install.in: Drop libglsl.so, it's included in
+    libdricore.so now.
+  * rules: Don't disable GLU on the common flags, we need to build it
+    on the dri target.
+  * libglu*install.in: Fix the source file paths to match the build target.
+    Drop the static lib from -dev since only shared libs get built.
+  * libgl1-mesa-dev.install.in: Fix the source file paths to match the
+    build target.
+  * libgl1-mesa-dri.install.linux.in: Don't try to install libgallium.so,
+    which isn't built yet.
+  * rules: Enable llvmpipe on armhf to see if it works or not.
+  * rules: Remove bin/install-sh on clean, and don't create a symlink for
+    it.
+  * control: Add Pre-Depends on dpkg-dev due to the binaries using xz
+    compression.
+
+ -- Timo Aaltonen <tjaalton@ubuntu.com>  Thu, 23 Aug 2012 15:37:30 +0300
+
+mesa (8.0.5-4) unstable; urgency=low
+
+  * Cherry-pick commit 17f1cb1d99 (dri/nouveau: fix crash in
+    nouveau_flush) from upstream master branch.
+
+ -- Sven Joachim <svenjoac@gmx.de>  Wed, 13 Mar 2013 17:52:18 +0100
+
+mesa (8.0.5-3) unstable; urgency=high
+
+  * mesa: add bounds checking for uniform array access (CVE-2012-5129).
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 06 Dec 2012 10:20:40 +0100
+
+mesa (8.0.5-2) unstable; urgency=low
+
+  * Fix regression in 8.0.5 (spurious GL_INVALID_ENUM errors):
+    mesa: test for GL_EXT_framebuffer_sRGB in glPopAttrib().
+    Thanks to Simon Chopin for the report.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 28 Nov 2012 22:09:14 +0100
+
+mesa (8.0.5-1) unstable; urgency=low
+
+  * New upstream stable release
+  * Pull a couple more fixes from upstream's 8.0 branch, including:
+    - nvfx: handle some unknown PIPE_CAPs (closes: 674965)
+  * Install drirc in libgl1-mesa-dri package with some settings for i965
+    (closes: #671747).
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 04 Nov 2012 16:55:17 +0100
+
+mesa (8.0.4-2) unstable; urgency=high
+
+  * Use xz for all binary packages not just *-dbg.
+  * glsl/linker: Avoid buffer over-run in
+    parcel_out_uniform_storage::visit_field (CVE-2012-2864; closes: #685667).
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 24 Aug 2012 00:09:47 +0200
+
+mesa (8.0.4-1) unstable; urgency=low
+
+  [ Sven Joachim ]
+  * New upstream stable release (Closes: #682703).
+  * Cherry-pick commit fbf86c7f0f (i965/gen7: Reduce GT1 WM thread count
+    according to updated BSpec.) from upstream.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 29 Jul 2012 13:17:06 +0200
+
+mesa (8.0.3-1) unstable; urgency=low
+
+  [ Robert Hooker ]
+  * New upstream stable release (Closes: #673532)
+  * Refresh patches.
+
+ -- Cyril Brulebois <kibi@debian.org>  Wed, 13 Jun 2012 14:58:54 +0200
+
+mesa (8.0.2-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 01 May 2012 21:42:35 +0200
+
+mesa (8.0.2-1) experimental; urgency=low
+
+  [ Timo Aaltonen ]
+  * New upstream bugfix release. (LP: #926379)
+  * control: libegl1-mesa-dev should depend on -drivers so that the
+    symlinks work.
+
+  [ Robert Hooker ]
+  * Add libudev-dev to libgbm-dev dependencies.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 29 Apr 2012 15:51:10 +0200
+
+mesa (8.0-2) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * Only build the radeon, r200, i915 and i965 dri drivers on Linux.  They
+    require KMS.
+
+  [ Cyril Brulebois ]
+  * Fix FTBFS on GNU/kFreeBSD with libgl1-mesa-dri.install.kfreebsd.in:
+    there's no *_dri.so file left in the top directory, only swrast is
+    built and shipped under gallium/. So mention it explicitly, in the
+    same way as it is done in the libgl1-mesa-dri.install.linux.in file.
+  * Enable wayland support again, but only on Linux. Wayland needs some
+    porting (it uses *CLOEXEC flags and epoll). For that, add those files
+    since EGL packages are also shipped on GNU/kFreeBSD, and we need to
+    add a few files for Wayland, but only for Linux:
+    - libegl1-mesa-dev.install.linux.in
+    - libegl1-mesa-drivers.install.linux.in
+  * Limit the wl_drm_interface symbol to arch=linux-any accordingly,
+    and bump the version.
+  * Limit the build-dependency on libwayland-dev to linux-any too, and
+    bump it.
+  * Automatically revert changes to bin/{config.{guess,sub},install-sh} in
+    the clean target. The first two are modified, the last one needs to be
+    turned back into a symlink.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 14 Feb 2012 16:18:14 +0100
+
+mesa (8.0-1) experimental; urgency=low
+
+  [ Cyril Brulebois ]
+  * New upstream release.
+  * Disable patch temporarily (needs a refresh):
+    - 11-hurd-ftbfs-again.diff
+  * Drop patch, no longer needed since swrastg was renamed to swrast:
+    - 14-load-swrastg-before-swrast.diff
+  * Update rules file to strop building DRI1 drivers, they went away
+    with the following upstream commit:
+    - dri: Remove all DRI1 drivers (e4344161bd).
+  * Update not-installed for removed files.
+  * Stop trying to ship swrastg through libgl1-mesa-dri-experimental,
+    it replaced the non-gallium variant.
+
+  [ Timo Aaltonen ]
+  * Refresh patches.
+  * control: Add libxcb-glx0-dev to build-depends.
+  * control: Drop libglw1-mesa, libglw1-mesa-dev, glw got moved to a
+    separate source package.
+  * libegl-mesa.symbols, libgles2-mesa.symbols: Add new symbols.
+  * rules: Drop obsolete configure options.
+  * Enable vmwgfx gallium driver & xatracker. (Closes: #652501).
+  * Build llvmpipe swrast only on non-hurd x86, traditional for the
+    rest.
+  * rules: No need to copy nouveau_vieux to the gallium dir, it's
+    installed in libgl1-mesa-dri now.
+  * rules: Handle installing r300_dri.so like other gallium drivers,
+    in libgl1-mesa-dri.install.linux.in.
+
+  [ Robert Hooker ]
+  * Bump libdrm build dep to 2.4.30, x11proto-gl-dev to 1.4.14, and
+    x11proto-dri2-dev to 2.6.
+  * Add libxatracker packaging.
+  * Add libxcb-glx0-dev to libegl1-mesa-dev depends.
+
+  [ Christopher James Halse Rogers ]
+  * debian/control: Add libx11-xcb-dev to libegl1-mesa-dev depends.
+
+ -- Cyril Brulebois <kibi@debian.org>  Fri, 10 Feb 2012 14:02:04 +0100
+
+mesa (7.11.2-1) unstable; urgency=low
+
+  * New upstream release:
+    - Fix a few intel bugs.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 11 Dec 2011 15:43:40 +0100
+
+mesa (7.11.1-1) unstable; urgency=low
+
+  [ Sven Joachim ]
+  * New upstream release.
+  * Move the Nouveau drivers to the libgl1-mesa-dri package
+    (Closes: #645239).
+  * Install the swrastg driver in the libgl1-mesa-dri-experimental package
+    (Closes: #605444).
+    - New patch 14-load-swrastg-before-swrast.diff to prefer swrastg over
+      swrast.
+    - Build-depend on llvm-2.9-dev also on kfreebsd-{amd64,i386}.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 27 Nov 2011 18:54:24 +0100
+
+mesa (7.11-6) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Inline what's left of debian/scripts/choose-configs in debian/rules.
+  * Enable texture-float for dri (closes: #635651).
+  * Update from upstream's 7.11 branch (commit e7794048)
+  * Merge changes from 7.10.3-4, including:
+    - Fix comments in libegl1-mesa.symbols to avoid impending FTBFS with the
+      upcoming dpkg-dev 1.16.1 (closes: #642690)
+
+  [ Cyril Brulebois ]
+  * Document the symlink dance in README.source.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sat, 24 Sep 2011 20:32:55 +0200
+
+mesa (7.11-5) unstable; urgency=low
+
+  * Merge patch from Pino Tiscano (thanks!):
+    - Use hurd-any instead of: hurd-i386 (“wildcard archs are free”).
+    - Use any-i386 instead of: i386 kfreebsd-i386 hurd-i386.
+    - Rewrite a check in debian/rules to follow the same logic.
+    - Switch libgbm1-dbg to arch: linux-any. This fixes uninstallability
+      on kfreebsd-* by getting rid of this package there.
+    - Switch libglapi-mesa{,-dbg} arch: any. This fixes the FTBFS on
+      hurd-i386^Wany.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 28 Aug 2011 19:07:48 +0200
+
+mesa (7.11-4) unstable; urgency=low
+
+  * Use xz compression for dbg packages.
+  * Simplify dh_strip calls a bit using make variables.
+  * libgbm-dev is also linux-only, not just libgbm1.
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 27 Aug 2011 12:02:42 +0200
+
+mesa (7.11-3) unstable; urgency=low
+
+  * Don't build libgbm on kfreebsd, it needs KMS/udev.
+  * Build/ship r300g on all Linux architectures, not just x86.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 26 Aug 2011 11:04:45 +0200
+
+mesa (7.11-2) unstable; urgency=low
+
+  * Work around the lack of O_CLOEXEC on kfreebsd, fix FTBFS.
+  * Don't crash on BadRequest from DRI2Connect, just fall back to sw or
+    indirect.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 25 Aug 2011 23:13:35 +0200
+
+mesa (7.11-1) unstable; urgency=low
+
+  [ Christopher James Halse Rogers ]
+  * New upstream release.
+    - Fix regression from 7.10, missing characters in text display with
+      intel drivers (Closes: #631516). Thanks to Martin Steigerwald for
+      the report and the tests.
+  * Temporarily disable Wayland EGL backend as it requires a newer
+    libwayland-dev
+  * Update rules for configure changes
+  * debian/lib{egl1,openvg1}-mesa.install.in:
+  * debian/libegl1-mesa-drivers.install.in:
+    - Stop trying to install st_{GL,OpenVG} and pipe_*
+      as they are all now built in to egl_gallium.so
+  * Add libgbm{1,1-dbg,-dev} packages for the new buffer-manager library.
+  * Drop 12-llvm-config-check.diff; upstream.
+  * Refresh 13-llvm-config-pick-a-version.diff for new upstream.
+  * Add strictly versioned dependencies on libglapi-mesa to libgl1-mesa-glx
+    and libegl1-mesa-drivers as they also now depend on this internal library.
+  * debian/rules:
+  * debian/libgl1-mesa-dri.install.linux.in:
+    - Manually install r300g only when we actually build it.  Fixes build on
+      non-i386, non-amd64 linux.
+
+  [ Julien Cristau ]
+  * Don't use dh_testroot in clean.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 25 Aug 2011 00:15:27 +0200
+
+mesa (7.11~0-2) experimental; urgency=low
+
+  * Thank you sbuild for giving a green light when that's not actually the
+    case. Fix missing Pre-Depends for the libegl1-mesa-drivers package
+    (multiarch-support).
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 19 Jun 2011 21:26:00 +0200
+
+mesa (7.11~0-1) experimental; urgency=low
+
+  * New upstream snapshot, from the master branch (up to 2fe39b46e7).
+  * Drop 05_hurd-ftbfs.diff, merged upstream (as 758561786c).
+  * Refresh 06_kfreebsd-ftbfs.diff (due to 8fd8de3995).
+  * Refresh 08-kfreebsd-gallium.diff (adjust offsets).
+  * Add 10-hurd-configure-tweaks.diff to enable x86 assembler on Hurd,
+    thanks to Pino Toscano.
+  * Refresh 11-hurd-ftbfs-again.diff (adjust offsets and drop the
+    src/gallium/auxiliary/os/os_time.c hunk, which should be OK since
+    PIPE_OS_UNIX is used there, and should happily replace the use of
+    PIPE_OS_HURD; and adapt for the removal of the PIPE_OS_EMBEDDED check).
+  * debian/libegl1-mesa.install.in: Stop trying to install egl_dri2.so and
+    egl_glx.so, since they are now built-in (since c98ea26e16).
+  * debian/libgles{1,2}-mesa.install.in: Stop trying to install
+    st_GLESv{1,2}_CM.so (respectively), which got removed. Quoting the
+    commit message: “Remove GLES overlay. With core mesa doing runtime API
+    checks, GLES overlay is no longer needed.” (12583174c5).
+  * Drop --enable-gles-overlay from debian/rules accordingly.
+  * Add 12-llvm-config-check.diff to handle --disable-gallium more
+    properly.
+  * Add 13-llvm-config-pick-a-version.diff, so that llvm-config-2.9 is
+    searched by configure, instead of unversioned llvm-config.
+  * Add a NOT_INSTALLED_EITHER variable to debian/not-installed. A few
+    files might have to be removed, but only if that's a git snapshot
+    (those files aren't in the released tarballs). Let's consider it's OK
+    to run “rm -f” on them: {,dri/}usr/include/GL/glut{,f90}.h
+  * Add libglapi-mesa{,-dbg} packages.
+  * Use a package-name-doesnt-match-sonames override accordingly.
+  * Update libegl1-mesa.symbols with new symbols.
+  * Update libgles{1,2}-mesa.symbols now that internal symbols (_glapi_*
+    and _glthread_GetID) moved to libglapi-mesa.
+  * Add a gentarball target, to generate tarballs for git snapshots.
+  * Replace “The OpenGL utility library…” with “Mesa OpenGL utility
+    library…” in the description of the libglu1-mesa* packages.
+  * Replace radeon with r300 in GALLIUM_DRIVERS to match upstream renaming
+    (5722286be2).
+  * Build r300 classic (through DRI_DRIVERS) everywhere, since r300g comes
+    with a few additional requirements: LLVM is needed for this driver,
+    and apparently only works fine on x86 platform. As a consequence, only
+    build r300g on amd and i386, and add llvm-2.9-dev build-dep on those
+    platforms accordingly. Disable it explicitly on other platforms.
+  * Stop building i915g at all, it's apparently never going to be a
+    suitable replacement for i915c.
+  * Add libwayland-dev build-dep.
+  * Add wayland to EGL_DISPLAYS on Linux.
+  * Ship wayland-egl.pc and libwayland-egl.so in libegl1-mesa-dev; and ship
+    libwayland-egl.so.1* in libegl1-mesa-drivers.
+  * Update libegl1-mesa.symbols with new wl_drm_interface symbol.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 19 Jun 2011 19:01:52 +0200
+
+mesa (7.10.3-4) unstable; urgency=medium
+
+  [ Cyril Brulebois ]
+  * Accept libmotif-dev as an alternative to lesstif2-dev in
+    libglw1-mesa-dev's dependencies, as requested by Michael Hanke
+    (Closes: #631236).
+  * Merge upstream 7.10 branch up to e041956cb2.
+  * Wrap Breaks fields.
+  * Add Breaks: {xserver-xorg-core,libgl1-mesa-glx}-no-multiarch to
+    libgl1-mesa-dri* to handle upgrades from squeeze-backports (without
+    multiarch) to wheezy (with multiarch).
+  * Add lintian overrides for breaks-without-version accordingly, those
+    packages are only provided in squeeze-backports.
+  * Replace “The OpenGL utility library…” with “Mesa OpenGL utility
+    library…” in the description of the libglu1-mesa* packages.
+  * Rename all remaining *.install files as *.install.in and use
+    “${DEB_HOST_MULTIARCH}” instead of “*”.
+  * Use the sed substitution on all debian/*.in files accordingly.
+  * Remove debian/clean, and use the same for loop to remove the generated
+    files.
+  * Set urgency to “medium” to speed things up. Migration to testing is
+    a prerequisite for squeeze backports.
+
+  [ Sven Joachim ]
+  * Fix comments in libegl1-mesa.symbols to avoid impending FTBFS with
+    the upcoming dpkg-dev 1.16.1.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 07 Aug 2011 21:50:46 +0200
+
+mesa (7.10.3-3) unstable; urgency=low
+
+  * Update the “Breaks: xserver-xorg-core” from “(<= 2:1.10.2-1)” to
+    “(<< 2:1.10.2-2)”. The first binNMU migrated to testing too soon,
+    so it was needed to rebuild it again, in testing. Updating the
+    Breaks makes sure that a multiarch mesa doesn't get installed with
+    a server built against a pre-multiarch mesa.
+  * Merge upstream 7.10 branch up to 1ad06c7a25.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 19 Jun 2011 17:31:17 +0200
+
+mesa (7.10.3-2) unstable; urgency=low
+
+  [ Cyril Brulebois ]
+  * Add Breaks against nvidia and fglrx packages, since they are also
+    affected by the multiarch changes, and need fixing. Until fixed
+    packages reach the archive, nvidia and fglrx users should stick to
+    mesa 7.10.2-3 packages, currently available in testing. Thanks to
+    Andreas and Patrick for the version strings (Closes: #630710).
+  * Set CXXFLAGS along with CFLAGS (Closes: #630602). Thanks for the
+    report and the patch, Fabio Pedretti!
+
+  [ Julien Cristau ]
+  * Prepend the multiarch dir to the dri driver search path.  ${ORIGIN}/dri
+    works for libGL, but not for egl_dri2.so (which lives in /usr/lib/*/egl/).
+    Thanks to Michel Dänzer for the heads-up!
+
+ -- Cyril Brulebois <kibi@debian.org>  Fri, 17 Jun 2011 11:46:20 +0200
+
+mesa (7.10.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add flex and bison build-deps (even though the generated files are
+    stored in VCS, and shipped…).
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 14 Jun 2011 15:37:41 +0200
+
+mesa (7.10.2-4) unstable; urgency=low
+
+  [ Steve Langasek ]
+  * Build for multiarch.
+
+  [ Cyril Brulebois ]
+  * Explanation of the “Breaks: xserver-xorg-core” part for our users: the
+    server queries the DRI driver path at build time, which is getting
+    changed for multiarch, so the server needs be rebuilt; a binNMU will
+    take care of getting the server ready.
+  * Many thanks for multiarch, Steve!
+  * Update Uploaders list. Thanks, David and Brice!
+  * Wrap Build-Depends.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 14 Jun 2011 12:19:33 +0200
+
+mesa (7.10.2-3) unstable; urgency=low
+
+  * Merge upstream 7.10 branch up to eaadbacb5c.
+  * Ship r600g again, it should be more usable now.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 31 May 2011 17:48:47 +0200
+
+mesa (7.10.2-2) unstable; urgency=low
+
+  [ Cyril Brulebois ]
+  * Merge upstream 7.10 branch up to b8c6362389.
+  * Get rid of leading article in short descriptions, taking care of this
+    lintian tag for almost all binary packages:
+    - description-synopsis-starts-with-article
+  * Get rid of libgl1-mesa-dri-i686, already commented out in control file.
+
+  [ Sven Joachim ]
+  * Avoid installing the nouveau_vieux driver into libgl1-mesa-dri
+    (Closes: #622222).
+
+ -- Cyril Brulebois <kibi@debian.org>  Mon, 02 May 2011 12:29:37 +0200
+
+mesa (7.10.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 10 Apr 2011 23:42:41 +0200
+
+mesa (7.10.1-1) experimental; urgency=low
+
+  [ Cyril Brulebois ]
+  * Revert to r600 classic, r600 gallium doesn't seem ready yet, after all
+    (Closes: #612609).
+
+  [ Julien Cristau ]
+  * Set the DRI driver search path to "${ORIGIN}/dri", allowing libGL to find
+    the drivers after being relocated to /usr/lib32 by ia32-libs
+    (closes: #466790).  Thanks to Javier Serrano Polo for the suggestion.
+
+  [ Christopher James Halse Rogers ]
+  * New upstream release
+    - Lots of intel bugfixes, mainly for Sandybridge.
+    - Lots of GLSL spec conformance fixes
+    - Drop 12-fix-fdo-31940.diff; included included in new release.
+  * Remove talloc from build-depends.  This has been re-implemented in-tree.
+  * Also drop patch fixing talloc linking.
+  * Cherry-pick fix from master for changed nouveau headers in libdrm 2.4.24.
+    - Also bump build-depend on libdrm to 2.4.24
+  * Build and install nouveau_vieux driver in libgl1-mesa-dri-experimental.
+    (Closes: #586062)
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 03 Apr 2011 21:26:05 +0200
+
+mesa (7.10-4) unstable; urgency=low
+
+  * debian/not-installed: Ignore the same files on *i386.
+  * debian/local/control: Report-with: xserver-xorg{,-core}.
+  * debian/local/script: New bug script, calling glxinfo if available,
+    then the server's bug script.
+  * New patch, thanks to Pino Toscano, fixing FTBFS on GNU/Hurd:
+    - 11-hurd-ftbfs-again.diff
+  * Make a lot of binary packages linux-any kfreebsd-any:
+    - libegl1-mesa
+    - libegl1-mesa-dbg
+    - libegl1-mesa-dev
+    - libegl1-mesa-drivers
+    - libegl1-mesa-drivers-dbg
+    - libopenvg1-mesa
+    - libopenvg1-mesa-dbg
+    - libopenvg1-mesa-dev
+    - libgles1-mesa
+    - libgles1-mesa-dbg
+    - libgles1-mesa-dev
+    - libgles2-mesa
+    - libgles2-mesa-dbg
+    - libgles2-mesa-dev
+  * Disable EGL/Gallium/GLES/state trackers on GNU/Hurd.
+  * Fix FTBFS on sparc64, treat it the same way as sparc. Thanks, Aurélien
+    Jarno! (Closes: #613106).
+  * Add patch for a crash in dri2_invalidate_drawable, thanks to Kai
+    Wasserbäch (Closes: #612640):
+    - 12-fix-fdo-31940.diff
+
+ -- Cyril Brulebois <kibi@debian.org>  Wed, 16 Feb 2011 11:53:26 +0100
+
+mesa (7.10-3) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * debian/rules: RIP lpia.
+
+  [ Cyril Brulebois ]
+  * Cherry-pick from upstream (thanks to Dave Airlie for the hint):
+    - radeon: fix build on non-KMS systems.
+    This fixes the FTBFS on GNU/kFreeBSD.
+  * Ship r300g (r300 gallium) on Linux only: Introduce Linux-specific
+    libgl1-mesa-dri.install.linux to that effect.
+  * According to Michel Dänzer, r600g (r600 gallium) is working well
+    enough to be shipped now. Let's ship it, then!
+  * Cherry-pick from upstream, fixing X's failure to start with UMS on
+    r300g (Closes: #612380):
+    - dri_util: fail driCreateNewScreen if InitScreen is NULL
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 08 Feb 2011 16:06:38 +0100
+
+mesa (7.10-2) unstable; urgency=low
+
+  * Fix FTBFS on i386: Add some files to debian/not-installed, on a
+    per-architecture fashion (those are under /usr/lib/i686/cmov/).
+  * Work around FTBFS on sparc due to new symbols: pass -c1 to
+    dpkg-gensymbols instead of -c4 (on sparc only). Those symbols probably
+    shouldn't be exported, but let's make it possible to build xorg-server
+    1.9 in sid.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sat, 05 Feb 2011 11:16:26 +0100
+
+mesa (7.10-1) experimental; urgency=low
+
+  * New upstream release.
+  * Add patch: 10-fix-talloc-linking.diff
+  * Use debian/not-installed to keep track of files which aren't getting
+    installed for now. Delete them before running dh_install. Use the list
+    of files appearing in the build logs for 7.9+repack-2.
+  * Switch from --list-missing to --fail-missing accordingly.
+  * Pass -c4 to dpkg-gensymbols through dh_makeshlibs to make sure
+    symbol-related changes are noticed and dealt with.
+  * Update symbols files with new symbols:
+    - libopenvg1-mesa.symbols
+  * Remove “mesa internal ASM optimized functions” lines from symbols
+    files, those seem to be gone, and with -c4 passed to dpkg-gensymbols,
+    any related issue will break the build:
+    - libgles1-mesa.symbols
+    - libgles2-mesa.symbols
+  * Stop using dh_strip -s --remaining-packages. When a build is resumed
+    (-nc), this dh_strip call is a no-op if it was previously written to
+    the debhelper log files. Specify all remaining packages instead.
+    That's boring, but avoid getting non-stripped packages.
+  * Add debian/git-cleanup.sh script to ease removing files in git which
+    aren't in the release tarballs, and make dpkg-source error out.
+  * Keep my eyes wide shut and add myself to Uploaders.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 25 Jan 2011 00:20:57 +0100
+
+mesa (7.9+repack-2) experimental; urgency=low
+
+  [ Cyril Brulebois ]
+  * Specify PASV in watch file, and mangle +repack.
+
+  [ Christopher James Halse Rogers ]
+  * debian/control:
+    - Add libudev-dev to build-depends.  This is required for the DRI2 EGL
+      driver to work with a drm display.
+
+  [ Sven Joachim ]
+  * Update for the latest libdrm-nouveau API:
+    - Cherry-pick commit c25fcf5a from Mesa master.
+    - Build-depend on libdrm-dev 2.4.23 or newer.
+  * Use linux-any for linux-libc-dev and libudev-dev build-depends.
+
+  [ Julien Cristau ]
+  * Update from upstream 7.9 branch, commit 0ff45dd.
+  * Refresh patches.
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 04 Jan 2011 12:46:59 +0100
+
+mesa (7.9+repack-1) experimental; urgency=low
+
+  * Repack the upstream tarball to get rid of duplicate files which make dpkg
+    choke.  Thanks to Luca Falavigna for his help diagnosing this.
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 15 Nov 2010 23:04:45 +0100
+
+mesa (7.9-1) experimental; urgency=low
+
+  [ Christopher James Halse Rogers ]
+  * debian/control:
+    - Add EGL, GLESv1, GLESv2, and OpenVG virtual packages.  The Khronos group
+      specifies a de-facto linux ABI for these libraries.  We have a similar
+      package for libgl1.
+  * debian/README.Debian:
+    - Document the virtual packages above.
+
+  [ Sven Joachim ]
+  * Bump libdrm-dev build dependency to 2.4.21-2~, the Nouveau Gallium
+    driver does not build with squeeze's libdrm-nouveau1.
+
+  [ Julien Cristau ]
+  * New upstream release.
+  * Update patches:
+    - 03_optional-progs-and-install.patch dropped, demos moved to a separate
+      package
+    - 07-nouveau-update.diff and
+      09-intel-fix-invalidate-before-initialisation.diff dropped, they were
+      backports from upstream
+    - 04_osmesa_version.diff updated
+  * Add build-dep on talloc.
+  * Drop the mesa-utils package, demos were moved out of the mesa tree.
+  * Use --with-egl-platforms instead of --with-egl-displays, and replace kms
+    with drm.
+  * Merge some packaging changes from ubuntu:
+    - libegl1-mesa-drivers-x11,kms: There are no longer separate kms or x11
+      drivers for EGL, libegl1-mesa-drivers now contains a single driver that
+      provides both backends (Christopher James Halse Rogers)
+    - Remove pre-generated .pc's, use the ones generated at build time instead
+      (Robert Hooker)
+    - Build the r600 gallium driver
+    - Update symbols files
+  * README.source: we don't need to repack MesaLib.tar.gz anymore.
+  * Kill old sourceforge url from debian/watch.
+  * Ship the gallium r300 driver instead of the classic one.
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 13 Nov 2010 00:36:11 +0100
+
+mesa (7.8.2-2) experimental; urgency=low
+
+  * Add missing dependencies to libegl1-mesa-dev, thanks to Alexandros
+    Frantzis (LP: #600243).
+  * gallium: handle kfreebsd like freebsd, fixing FTBFS (closes: #585618)
+  * intel: Fix invalidate before initialisation (stolen from fdo bugzilla
+    #29091, fixes server 1.9rc crash when starting an app using GLX 1.3)
+  * Pull from 7.8-branch up to commit d06e011.
+  * Fixup hurd and kfreebsd patches to apply.
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 20 Jul 2010 15:57:31 +0200
+
+mesa (7.8.2-1) experimental; urgency=low
+
+  [ Robert Hooker ]
+  * Adjust the build system to install the dri target in a separate
+    DESTDIR, no longer passing --libdir=/usr/lib/glx at configure time
+    messing with the .pc's since it is used for a majority of the 
+    packages now.
+  * Fix up the mesa-common-dev header install location.
+
+  [ Julien Cristau ]
+  * Add ${misc:Depends} to all packages.
+  * libc6-dev is build-essential, no need to depend on it.
+  * Replace nonsensical dependency of libglw1-mesa-dev on libxext6 with a
+    dependency on libxt-dev and lesstif2-dev.
+  * Add new lintian overrides for the package-name-doesnt-match-sonames stuff.
+  * Don't ship progs/objviewer in the tarball, it's insanely big and unused.
+  * New upstream release.
+  * Refresh patches.
+  * Stop shipping an upstream git log, it's unlikely to be useful to anyone,
+    and it's big.
+  * debian/scripts/choose-configs: use DEB_HOST_ARCH, not DEB_BUILD_ARCH
+    (closes: #451648).
+  * Rename radeong_dri.so to r300_dri.so in build, not binary.
+
+  [ Christopher James Halse Rogers ]
+  * debian/patches/07-nouveau-update.diff:
+    - Pull in nouveau_class.h header no longer shipped by libdrm 2.4.21 and 
+      update nouveau build to use it.  Fixes FTBFS against libdrm 2.4.21.
+  * debian/rules:
+    - Simplify selecting which gallium drivers are built.  Use this to only
+      act on gallium packages on archs where we're actually building them.
+      Part of the fix for FTBFS on Hurd and kFreeBSD.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 01 Jul 2010 12:50:18 +0200
+
+mesa (7.8.1-2) experimental; urgency=low
+
+  [ Tormod Volden ]
+  * debian/rules: Do not strip the same packages twice
+
+  [ Julien Cristau ]
+  * Stop building the ffb dri driver on sparc, it no longer exists.
+  * Merge changes from 7.7.1-2.
+
+  [ Christopher James Halse Rogers ]
+  * debian/compat:
+    - Bump to v7 for dh_install search path behaviour
+  * debian/rules:
+    - Enable gallium for dri build.
+    - Enable egl for dri build.
+    - Build nouveau, radeon & swrast gallium drivers
+    - Build OpenVG, OpenGL|ES, dri, glx & egl state trackers
+  * debian/libegl1-mesa-dev.install:
+  * debian/libegl1-mesa.install:
+  * debian/libegl1-mesa.symbols:
+    - New libEGL package.
+  * debian/libgles1-mesa-dev.install:
+  * debian/libgles1-mesa.install:
+  * debian/libgles1-mesa.symbols:
+    - New OpenGL|ES v1.x package.
+  * debian/libgles2-mesa-dev.install:
+  * debian/libgles2-mesa.install:
+  * debian/libgles2-mesa.symbols:
+    - New OpenGL|ES v2.x package.
+  * debian/libopenvg1-mesa-dev.install:
+  * debian/libopenvg1-mesa.install:
+  * debian/libopenvg1-mesa.symbols:
+    - New OpenVG package.
+  * debian/libegl1-mesa-drivers-x11.install:
+    - New gallium EGL drivers package.
+  * debian/libegl1-mesa-drivers-kms.install:
+    - New gallium EGL kms driver package.
+  * debian/egl.pc:
+  * debian/vg.pc:
+  * debian/glesv1_cm.pc:
+  * debian/glesv2.pc:
+    - Pull pkg-config files from master and install them in the respective
+      -dev packages.
+  * debian/libgl1-mesa-dri-experimental.install:
+  * debian/libgl1-mesa-dri.install:
+    - “make install” puts classic and gallium drivers in the same path, but
+      builds gallium drivers in the gallium/ subdirectory.  Copy the drivers 
+      directly from the build path, rather than trying to separate them out 
+      post-hock.
+  * debian/control:
+    - Add new packages.
+    - Add new build-depends on libx11-xcb-dev, libxcb-dri2-0-dev, 
+      libxcb-xfixes0-dev and python-libxml2 for gallium.
+    - Bump build-depends on dpkg-dev for regex in symbols files.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 11 Jun 2010 03:19:09 +0200
+
+mesa (7.8.1-1) experimental; urgency=low
+
+  * New upstream release.
+    + Pull from upstream 7.8 branch up to commit db3b3421.
+  * Refresh patches.
+  * Bump build dependency to libdrm-dev 2.4.19, x11proto-gl-dev 1.4.11,
+    and x11proto-dri2-dev 2.1.
+
+ -- Brice Goglin <bgoglin@debian.org>  Sun, 18 Apr 2010 09:25:39 +0200
+
+mesa (7.7.1-2) unstable; urgency=low
+
+  * debian/rules: use DEB_HOST_ARCH_CPU instead of DEB_HOST_GNU_CPU.  Prompted
+    by Ubuntu which changed the latter to i686, breaking their packages on
+    i386.
+  * Pull from mesa_7_7_branch (commit 8ba378d).
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 20 May 2010 17:34:19 +0200
+
+mesa (7.7.1-1) unstable; urgency=low
+
+  [ Brice Goglin ]
+  * Remove Thierry Reding from Uploaders, closes: #572539.
+  * Bump Standards-Version to 3.8.4, no changes needed.
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+
+ -- Brice Goglin <bgoglin@debian.org>  Tue, 30 Mar 2010 17:15:09 +0200
+
+mesa (7.7-4) unstable; urgency=low
+
+  * Pull from upstream mesa_7_7_branch up to commit 293f4d51.
+    + r6xx/r7xx: emit relocation for FRAG & TILE buffer, closes: #569663.
+
+ -- Brice Goglin <bgoglin@debian.org>  Wed, 24 Feb 2010 22:44:11 +0100
+
+mesa (7.7-3) experimental; urgency=low
+
+  * Pull from upstream mesa_7_7_branch up to commit f5145a6e.
+  * Build against libdrm-radeon1 2.4.17 to get DRI2 support.
+
+ -- Brice Goglin <bgoglin@debian.org>  Mon, 01 Feb 2010 22:55:36 +0100
+
+mesa (7.7-2) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * Rename the build directory to not include DEB_BUILD_GNU_TYPE for no
+    good reason.  Thanks, Colin Watson!
+  * Remove myself from Uploaders
+
+  [ Brice Goglin ]
+  * Pull from upstream mesa_7_7_branch up to commit 2f28ca0a.
+    + Fix funky colors on radeon/r200/r300.
+
+ -- Brice Goglin <bgoglin@debian.org>  Wed, 27 Jan 2010 09:14:38 +0100
+
+mesa (7.7-1) experimental; urgency=low
+
+  [ Brice Goglin ]
+  * Bump libdrm build dependency to 2.4.15, closes: #561058.
+  * New upstream release.
+  * Pull from upstream mesa_7_7_branch up to commit 6d6c9c66.
+
+  [ Julien Cristau ]
+  * Add freedesktop.org ftp to watch file since that's where newer upstream
+    tarballs are.
+  * Don't include GLUT sources since we don't use them.
+
+ -- Brice Goglin <bgoglin@debian.org>  Mon, 11 Jan 2010 17:52:31 +0100
+
+mesa (7.7~rc2-1) experimental; urgency=low
+
+  * New upstream release candidate.
+    + s3v and trident DRI drivers removed since they never worked.
+
+ -- Brice Goglin <bgoglin@debian.org>  Sat, 12 Dec 2009 13:02:55 +0100
+
+mesa (7.6.1-1) unstable; urgency=low
+
+  * New upstream release
+    + Pull upstream mesa_7_6_branch up to commit da876fa3
+  * Bump linux-libc-dev build-dep to 2.6.31 for the r600 dri driver (fixes
+    ftbfs on mips).
+  * Drop hunk from 05_hurd-ftbfs.diff that was applied upstream.  Refresh
+    other patches.
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 29 Dec 2009 10:42:24 +0000
+
+mesa (7.6.1~rc3-1) unstable; urgency=low
+
+  * New upstream release candidate.
+    + Pull upstream mesa_7_6_branch up to commit 7d41b424.
+    + Includes sparc64 xform asm patch from #560403.
+  * Update debian/rules to fix sparc64 FTBFS, thanks Aurelien Jarno,
+    closes: #560403.
+  * Build r600 DRI driver.
+
+ -- Brice Goglin <bgoglin@debian.org>  Fri, 11 Dec 2009 18:36:36 +0100
+
+mesa (7.6.1~rc2-1) unstable; urgency=low
+
+  * New upstream release candidate.
+    + Pull upstream mesa_7_6_branch up to commit b2953ee.
+    + i965: Fix the bounds emitted in the vertex buffer packets,
+      closes: #556541.
+    + Fix window drawing regression in Kwin on older Radeon hardware,
+      fix assertion failure leading to crash on kwin when compositing
+      is enabled, closes: #549588.
+    + Refresh patches.
+
+ -- Brice Goglin <bgoglin@debian.org>  Sun, 06 Dec 2009 00:14:34 +0100
+
+mesa (7.6-1) unstable; urgency=low
+
+  [ Brice Goglin ]
+  * New upstream release.
+    + Fix software fallback assertion on RS480, closes: #539162.
+    + Fix segfault in _swrast_ReadPixels on i915, closes: #545085.
+
+  [ Julien Cristau ]
+  * Don't run install from the various configs in parallel, hopefully fixing a
+    bug in the previous debian/rules.  Thanks to Bernhard R. Link for the
+    suggestions.
+
+ -- Brice Goglin <bgoglin@debian.org>  Tue, 29 Sep 2009 11:51:58 +0200
+
+mesa (7.5.1-1) unstable; urgency=low
+
+  [ Brice Goglin ]
+  * New upstream release.
+  * Add README.source.
+  * Bump Standards-Version to 3.8.3.
+
+  [ Julien Cristau ]
+  * Override 'package-name-doesnt-match-sonames' lintian warnings for libGLU,
+    libGLw and both libGLs.
+  * Use dh_lintian and bump debhelper build-dep accordingly.
+
+ -- Brice Goglin <bgoglin@debian.org>  Fri, 04 Sep 2009 11:38:46 +0200
+
+mesa (7.5-3) unstable; urgency=low
+
+  * Pull from upstream mesa_7_5_branch up to commit b4ba6a66
+    (early 7.5.1 release snapshot).
+  * Only install the huge upstream changelog in mesa-common-dev,
+    closes: #538094.
+  * Enable i686 optimized libraries on hurd-i386.
+
+ -- Brice Goglin <bgoglin@debian.org>  Fri, 24 Jul 2009 00:29:28 +0200
+
+mesa (7.5-2) unstable; urgency=low
+
+  * Pull from upstream mesa_7_5_branch up to commit a6b31415
+    + radeon/DRI1: if we have HW stencil, only expose fbconfigs with stencil,
+      closes: #537732.
+  * Install the upstream changelog.
+
+ -- Brice Goglin <bgoglin@debian.org>  Tue, 21 Jul 2009 22:21:50 +0200
+
+mesa (7.5-1) unstable; urgency=low
+
+  [ Timo Aaltonen ]
+  * Move dri.pc to mesa-common-dev (closes: #521667)
+
+  [ Brice Goglin ]
+  * Enable i686 optimized libraries on kfreebsd-i386, closes: #537345.
+  * New upstream release:
+    + i915: Fix assertion failure on remapping a non-BO-backed VBO,
+      closes: #537147.
+    + GLX/DRI1: Mark GLX visuals with depth != screen depth non-conformant,
+      closes: #532980.
+
+ -- Brice Goglin <bgoglin@debian.org>  Sun, 19 Jul 2009 12:53:41 +0200
+
+mesa (7.5~rc4-1) experimental; urgency=low
+
+  [ Timo Aaltonen ]
+  * New upstream release candidate.
+    + xdriinfo now works with DRI2 (closes: #527132)
+  * rules: Disable EGL.
+  * mesa-common-dev.install: Don't install glxew.h, conflicts with libglew.
+
+  [ Julien Cristau ]
+  * Update patches:
+    + 02_use-ieee-fp-on-s390-and-m68k.patch moved from imports.h to compiler.h
+    + 03_optional-progs-and-install.patch refreshed
+    + 05_hurd-ftbfs.diff partly applied upstream
+    + 06_kfreebsd-ftbfs.diff refreshed
+  * Install dri.pc, which will be needed to build xorg-server 1.7.
+  * Don't build gallium for now.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 28 Jun 2009 20:21:37 +0200
+
+mesa (7.4.4-1) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * New upstream release.
+    + fixes a crash in swrast glXWaitX (closes: #528708)
+  * Don't build hardware dri drivers on s390.
+  * Update 04_osmesa_version.diff, refresh 06_kfreebsd-ftbfs.diff.
+
+  [ Brice Goglin ]
+  * Enable motif in GLw, closes: #527483.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 28 Jun 2009 18:58:27 +0200
+
+mesa (7.4.1-1) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Make libgl1-mesa-dev and mesa-common-dev 'Architecture: any'.  This gets
+    rid of uninstallability when a new upstream version isn't built on all
+    architectures, and allows us to ship potentially arch-specific .pc files.
+  * Install pkgconfig files for libGLU, libOSMesa and libGLw.
+  * Make libgl1-mesa-dri{,-dbg} 'Architecture: any', as swrast_dri.so should
+    get built everywhere.
+  * Drop the dependency on libgl1-mesa-glx from -dri, and make -glx recommend
+    -dri instead.  The dri drivers are also loaded by the X server, which
+    doesn't need libGL.  On the other hand, libGL needs one of the dri drivers
+    for direct rendering (either software or hardware).  Mark libgl1-mesa-dri
+    as breaking old xserver-xorg-core and libgl1-mesa-glx, to avoid
+    incompatibilities.
+  * Add patch by Samuel Thibault to fix FTBFS on hurd-i386.
+  * Pull from mesa_7_4_branch as of May 3rd (commit 63375254).
+  * Move -dbg packages to new 'debug' section.
+
+  [ Brice Goglin ]
+  * Add patch by Aurelien Jarno to fix FTBFS on kfreebsd-i386, closes: #524690.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 03 May 2009 16:05:09 +0200
+
+mesa (7.4-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 08 Apr 2009 23:53:47 +0100
+
+mesa (7.4-1) experimental; urgency=low
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 01 Apr 2009 20:25:00 +0200
+
+mesa (7.4~rc1-1) experimental; urgency=low
+
+  * New upstream release candidate.
+  * Fix watch file to make uscan not consider release candidates as newer than
+    actual releases.
+  * debian/control: add lpia to the Architecture field for
+    libgl1-mesa-dri{,-dbg} to match Ubuntu.
+  * debian/rules: on lpia, only build the i915 and i965 dri drivers (based on
+    Ubuntu changes).
+  * Build-depend on linux-libc-dev >= 2.6.29 on linux archs.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 25 Mar 2009 11:34:42 +0100
+
+mesa (7.3-1) experimental; urgency=low
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+
+  [ Julien Cristau ]
+  * Try to make the diff a bit smaller by removing directories that are in
+    upstream git but not in tarballs.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 30 Jan 2009 20:00:34 +0100
+
+mesa (7.3~rc3-1) experimental; urgency=low
+
+  [ Timo Aaltonen ]
+  * New upstream release candidate.
+
+  [ Julien Cristau ]
+  * Refresh patches 03 and 04.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 21 Jan 2009 19:01:21 +0100
+
+mesa (7.3~rc1-1) experimental; urgency=low
+
+  * New upstream release candidate.
+    + provides DRI2 (closes: #411141).
+    + i915: fallback for cube map texture.  Fixes GPU hang with scorched3d
+      (closes: #484049).
+
+  [ Timo Aaltonen ]
+  * Remove debian/patches/01_disable-intel-classic-warn.diff, the
+    warning is gone now.
+  * debian/control:
+    - Build-depend on x11proto-dri2-dev (>= 1.99.3)
+
+  [ Julien Cristau ]
+  * Require libdrm-dev 2.4.3.
+  * Merge packaging changes from unstable, from 7.0.3-5 to 7.0.3-7.
+  * Delete unused configs/debian-*, and install-source.sh script.  We've
+    switched to using autoconf, and mesa-swx11-source is gone.
+  * Delete some now unused code from debian/rules.
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 10 Jan 2009 22:14:55 +0100
+
+mesa (7.2-1) experimental; urgency=low
+
+  [ Brice Goglin ]
+  * Fix grammar and punctuation in glxinfo(1), thanks Sam Hocevar,
+    closes: #498595.
+
+  [ Timo Aaltonen ]
+  * New upstream release.
+  * Refresh patch 04_osmesa_version.diff
+
+  [ Julien Cristau ]
+  * Remove the build-dep on dri2proto, DRI2 support has been removed.
+  * intel: don't warn about TTM init failure.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 24 Sep 2008 14:28:21 +0200
+
+mesa (7.1-1) experimental; urgency=low
+
+  * Add parallel build support.
+  * New upstream development release
+    + libGLU now only exports its public interface (closes: #319388)
+  * Some more parallel build updates.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 27 Aug 2008 19:52:24 +0200
+
+mesa (7.1~rc3-1) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * New upstream release candidate (updated to git commit 4fab47b1).
+  * Build against libdrm >= 2.3.1.
+  * 04_osmesa_version.diff: fix libOSMesa versioning, to revert accidental
+    SONAME bump.
+
+  [ Timo Aaltonen ]
+  * Refresh patches, and drop obsolete 00_create-libdir.patch and
+    01_fix-makefile.patch.
+  * Build-depend on x11proto-dri2-dev.
+  * Drop mesa-swx11-source.
+  * Add dri_interface.h to mesa-common-dev.
+  * Add gl.pc to libgl1-mesa-dev
+  * rules: Replace the old build system with the new autotools-based 
+    system.
+  * Run autoreconf before building the various flavours..
+  * Add automake & autoconf to build-deps.
+  * Use --enable-glx-tls for dri.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 13 Jul 2008 19:41:42 +0200
+
+mesa (7.0.3-7) unstable; urgency=low
+
+  * Cherry-pick patch from upstream:
+    Use 3Dnow! x86-64 routines only on processors that support 3Dnow!
+    (closes: #484180).
+  * Also build the x86-specific dri drivers on kfreebsd (closes: #492894).
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 14 Dec 2008 07:34:58 +0530
+
+mesa (7.0.3-6) unstable; urgency=high
+
+  * Update debian/copyright to the SGI Free Software License B, version 2.0.
+    It now mirrors the free X11 license used by X.Org (closes: #368560).
+    http://www.sgi.com/company_info/newsroom/press_releases/2008/september/opengl.html
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 20 Sep 2008 16:30:44 +0200
+
+mesa (7.0.3-5) unstable; urgency=low
+
+  * Disable the i915tex driver, it doesn't build against libdrm 2.3.1.
+  * Pull from mesa_7_0_branch (27425708).
+
+ -- Julien Cristau <jcristau@debian.org>  Sat, 12 Jul 2008 18:56:19 +0200
+
+mesa (7.0.3-4) unstable; urgency=low
+
+  * Pull from mesa_7_0_branch (2ac4919d).
+  * Put back our configs/ changes into the .diff.gz since choose-configs
+    needs them before quilt is invoked. Put 04_cleanup-osmesa-configs.patch
+    there as well for #485161.
+
+ -- Brice Goglin <bgoglin@debian.org>  Wed, 18 Jun 2008 20:59:14 +0200
+
+mesa (7.0.3-3) unstable; urgency=low
+
+  * Pull from mesa_7_0_branch (718724de).
+    + Fix intel_batchbuffer_space on i965, closes: #455817.
+    + Fix busy error in i915_wait_irq for real now, closes: #467319.
+  * Move our configs/ changes from the .diff.gz into our quilt patches,
+    with 04_cleanup-osmesa-configs.patch renamed into 04_debian-configs.patch,
+    closes: #485161.
+
+ -- Brice Goglin <bgoglin@debian.org>  Tue, 17 Jun 2008 20:00:51 +0200
+
+mesa (7.0.3-2) unstable; urgency=low
+
+  * Pull from mesa_7_0_branch (03447de3).
+  * Set right cliprects for the current draw region on Intel, closes: #467319.
+  * Use BRW_TEXCOORDMODE_CLAMP instead of BRW_TEXCOORDMODE_CLAMP_BORDER
+    to implement GL_CLAMP on i965, closes: #478880.
+  * Fix segment fault with BASE_LEVEL set to 5 for MipMap on i915,
+    closes: #451339.
+  * Disable low impact fallback on r300 by default, closes: #440868.
+
+ -- Brice Goglin <bgoglin@debian.org>  Fri, 13 Jun 2008 06:53:29 +0200
+
+mesa (7.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Only call ProgramStringNotify if program parsing succeeded,
+    closes: #473551.
+
+ -- Brice Goglin <bgoglin@debian.org>  Fri, 11 Apr 2008 08:42:37 +0200
+
+mesa (7.0.3~rc2-2) unstable; urgency=low
+
+  * Pull from mesa_7_0_branch (1e83d70b).
+  * Fixes regression in the i965 dri driver (closes: #470984, #470084)
+  * Update 02_use-ieee-fp-on-s390-and-m68k.patch.
+  * Change libgl1-mesa-swx11-i686's pre-dependency on libgl1-mesa-swx11 to a
+    regular versioned dependency, and add ${shlibs:Depends}.
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 31 Mar 2008 16:47:31 +0200
+
+mesa (7.0.3~rc2-1) unstable; urgency=low
+
+  * New upstream release candidate.
+    + enable user-defined clip planes for R300 (closes: #408679)
+    + 03_optional-progs-and-install.patch: partly applied upstream, fixed up
+  * Stop building with -O0 on hppa. Bug #451047 should be fixed in recent gcc
+    versions.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 24 Feb 2008 10:22:54 +0100
+
+mesa (7.0.2-4) unstable; urgency=low
+
+  * Update to mesa_7_0_branch head (commit 48ae5cf0).
+  * Add Vcs-Git, Vcs-Browser and Homepage fields in debian/control.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 17 Jan 2008 22:23:06 +0100
+
+mesa (7.0.2-3) unstable; urgency=low
+
+  * Update to mesa_7_0_branch head (commit 0107acde).
+  * Bump Standards-Version to 3.7.3.
+  * Move libgl1-mesa-swx11-dbg, mesa-common-dev and libosmesa6-dev to section
+    libdevel.
+  * libgl1-mesa-swx11 conflicts with libgl1-mesa-glx.  Move it and
+    libgl1-mesa-swx11-dev to priority extra.
+  * Fix typo in mesa-common-dev's long description.
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 18 Dec 2007 19:13:18 +0100
+
+mesa (7.0.2-2) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Don't set -fno-strict-aliasing in configs/debian-default.  It is set
+    upstream now.
+  * Workaround gcc ICE on hppa: build libOSMesa with -O0 (see bug#451047).
+  * Add build-dep on libxext-dev.  Thanks, Timo Aaltonen!
+
+ -- Brice Goglin <bgoglin@debian.org>  Tue, 13 Nov 2007 21:43:40 +0100
+
+mesa (7.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+    + Fix Blender crash in triangle_twoside(), closes: #439668, #446315.
+    + Fix crash in _generic_read_RGBA_span_RGB565_MMX(), closes: #445313.
+    + Fix the new __gluInvertMatrix() function, closes: #440137 ,#441071.
+    + Refresh 03_optional-progs-and-install.patch since libGLU is not
+      built when building progs/xdemos.
+    + Refresh 04_cleanup-osmesa-configs.patch.
+    + Drop 05_static-nonpic.patch,, applied upstream.
+    + Remove DESTDIR from INSTALL_DIR in configs/debian-default since
+      the upstream Makefiles now support DESTDIR.
+  * Add myself to Uploaders.
+
+ -- Brice Goglin <bgoglin@debian.org>  Sun, 11 Nov 2007 11:53:26 +0100
+
+mesa (7.0.1-2) unstable; urgency=low
+
+  * Update to latest git (from mesa_7_0_branch)
+    + adds support for some new intel chipsets (i915 and i915_tex dri drivers)
+      (closes: #437333)
+    + broken inline asm in dri drivers fixed (closes: #423739)
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 28 Aug 2007 12:11:30 +0200
+
+mesa (7.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Upload to unstable.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 09 Aug 2007 11:56:16 +0200
+
+mesa (7.0.1~rc2-1) experimental; urgency=low
+
+  [ David Nusinow ]
+  * New upstream release candidate
+  * Bite the bullet and add myself to uploaders
+
+  [ Julien Cristau ]
+  * Modify the short descriptions of various packages so they fit in .changes
+    files without being cut off.  Thanks, Marc 'HE' Brockschmidt!
+  * Add a shlibs file for libgl1-mesa-swx11-i686.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 27 Jul 2007 20:17:48 +0200
+
+mesa (6.5.3-1) experimental; urgency=low
+
+  [ David Nusinow ]
+  * New upstream release
+
+  [ Julien Cristau ]
+  * Cherry-pick commit 65faf023679988f93da82b4c7ebdc689f2094459 by Michel
+    Dänzer to fix r300 crash.
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 21 May 2007 11:34:51 +0200
+
+mesa (6.5.3~rc3-1) experimental; urgency=low
+
+  [ Brice Goglin ]
+  * Split out libGLw libs and headers from libgl1-mesa-swx11 and ship both
+    static and shared libraries, creating libglw1-mesa and libglw1-mesa-dev
+    (closes: #374904).
+
+  [ Julien Cristau ]
+  * New upstream release candidate.
+    + 06_fix_texture_data_corruption.patch,
+      07_call_radeonSetCliprects_from_radeonMakeCurrent.patch,
+      08_r300_update_window_state_when_bound_but_stamp_changed.patch,
+      09_i915_always_enable_pixel_fog.patch: remove, included upstream.
+    + 01_fix-makefile.patch, 02_use-ieee-fp-on-s390-and-m68k.patch: refresh.
+  * Add build-dependencies on libxdamage-dev and libxfixes-dev.
+  * Resync debian/scripts/install-source.sh.
+  * Build mesa-swx11-source only in binary-indep.
+  * Update from upstream git (commit
+    dee1b0d5bbe91f83854813cbbcd3090327bcb5c2).
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 25 Apr 2007 10:36:50 +0200
+
+mesa (6.5.2-7) unstable; urgency=low
+
+  [ Brice Goglin ]
+  * libgl1-mesa-dev does not need to depend on libgl1-mesa-dri,
+    libgl1-mesa-glx is enough (since their split in 6.4.1-0.1);
+    closes: #432081.  Thanks, Samuel Thibault!
+
+  [ Julien Cristau ]
+  * libgl1-mesa-dev Depends on libgl1-mesa-glx (>= ${source:Upstream-Version})
+    instead of >= ${Source-Version}.  This way it's still installable on
+    architectures where mesa isn't built yet when a minor revision is
+    uploaded.
+
+ -- Julien Cristau <jcristau@debian.org>  Wed, 11 Jul 2007 05:50:45 +0200
+
+mesa (6.5.2-6) unstable; urgency=low
+
+  * libgl1-mesa-swx11 needs to depend on libosmesa6 (>= 6.5.2-1) because
+    it used to contain libOSMesa.so.6.  This means that programs linked
+    against this lib got a dependency on -swx11 which was broken since
+    6.5.2-1.
+  * Fix build on hurd-i386 (build libgl1-mesa-glx without dri support and
+    don't build the dri drivers); closes: #420403.  Thanks, Samuel Thibault!
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 05 Jul 2007 00:56:35 +0200
+
+mesa (6.5.2-5) unstable; urgency=low
+
+  [ Brice Goglin ]
+  * Add 07_call_radeonSetCliprects_from_radeonMakeCurrent.patch
+    (closes: #420164). Thanks to Christian Ohm.
+  * Add 08_r300_update_window_state_when_bound_but_stamp_changed.patch
+  * Add 09_i915_always_enable_pixel_fog.patch
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 18 May 2007 13:36:25 +0200
+
+mesa (6.5.2-4) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * debian/control: libgl1-mesa-dri now suggests libglide3, with an
+    explanation in the description (closes: #387339).
+  * Upload to unstable.
+
+  [ Brice Goglin ]
+  * Add 06_fix_texture_data_corruption.patch (closes: #412346).
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 20 Apr 2007 05:57:35 +0200
+
+mesa (6.5.2-3) experimental; urgency=low
+
+  * Set LIB_DIR and EXTRA_LIB_PATH in configs/debian-default to override
+    settings in configs/linux-x86-64. This fixes a FTBFS on amd64, thanks to
+    Marc 'HE' Brockschmidt for the report (closes: #410118).
+
+ -- Julien Cristau <jcristau@debian.org>  Wed,  7 Feb 2007 23:04:28 +0100
+
+mesa (6.5.2-2) experimental; urgency=low
+
+  * Sync Section/Priority for all packages with the override.
+  * Build the arch:all debs in binary-indep, and use the debhelper -s option
+    for commands in binary-arch, to fix FTBFS on non-i386 archs, thanks to
+    Marc 'HE' Brockschmidt (closes: #409638).
+  * Add myself to Uploaders.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun,  4 Feb 2007 21:14:02 +0100
+
+mesa (6.5.2-1) experimental; urgency=low
+
+  [ Thierry Reding ]
+  * New upstream release.
+  * Set the Debian X Strike Force as maintainer.
+  * Add myself to uploaders.
+  * Build the i915tex DRI module on the i386 and amd64 architectures.
+  * Add patch 04_cleanup-osmesa-configs that makes the OSMesa configurations
+    behave as expected.
+  * Add patch 05_static-nonpic to build static libraries without -fPIC.
+  * Make debugging symbol packages depend on the corresponding binary package
+    and put them into the libdevel section.
+  * Bump shlibs file for the libosmesa6 package to account for added symbols.
+    Thanks Julien Cristau.
+  * Build the DRI modules with the default optimization flags. Thanks Julien
+    Cristau.
+  * mesa-common-dev now ships the GLX header files so it needs to replace
+    libgl1-mesa-swx11-dev and libgl1-mesa-dev. Thanks Julien Cristau.
+  * All OSMesa libraries were moved to the libosmesa6 and libosmesa6-dev
+    package, so have them replace libgl1-mesa-swx11, libgl1-mesa-swx11-dev and
+    mesa-common-dev respectively. Thanks Julien Cristau.
+
+  [ Julien Cristau ]
+  * Drop obsolete depends on xlibs.
+
+ -- Thierry Reding <thierry@gilfi.de>  Thu, 11 Jan 2007 15:06:52 +0100
+
+mesa (6.5.2~rc3-0.1) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * Update to latest upstream release candidate.
+
+ -- Thierry Reding <thierry@gilfi.de>  Fri,  1 Dec 2006 01:06:28 +0100
+
+mesa (6.5.2~rc2-0.1) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * New upstream release candidate:
+    + Refresh 02_use-ieee-fp-on-s390-and-m68k.patch.
+  * Add manual pages for the glxdemo, glxgears, glxheads and glxinfo
+    utilities (Closes: #385463).
+
+ -- Thierry Reding <thierry@gilfi.de>  Wed, 22 Nov 2006 20:49:06 +0100
+
+mesa (6.5.2~rc1-0.1) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * New upstream release candidate.
+  * Update patches:
+    + Drop hunk #2 of 01_fix-makefile.patch, applied upstream.
+    + Drop 03_handle-sync-and-dont-unlock-display.patch, applied upstream.
+  * Bump build-dependency on libdrm-dev (>= 2.2.0).
+  * Use the new upstream minstall utility to install files and directories.
+    Using /usr/bin/install would result in a symlink's target being copied
+    instead of the symlink.
+
+ -- Thierry Reding <thierry@gilfi.de>  Sat, 18 Nov 2006 22:23:04 +0100
+
+mesa (6.5.1-0.6) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * Rewrote the debian/rules file to make it easier to understand.
+  * Provide i686 optimized versions in libgl1-mesa-swx11-i686 instead of in
+    libgl1-mesa-swx11.
+  * Statically link libOSMesa with the software rasterization code from libGL
+    so that it works independently of the installed libGL. (Closes: #387706)
+  * Make libosmesa6-dev depend on mesa-common-dev because it only needs the
+    gl.h header file and no libGL anymore.
+  * Move glx*.h headers from libgl1-mesa(-swx11)-dev into mesa-common-dev
+    because both packages provide identical files.
+  * Add debugging symbol packages for libgl1-mesa-swx11, libgl1-mesa-glx and
+    libgl1-mesa-dri.
+  * Repack the contents of the three Mesa tarballs (MesaDemos, MesaGLUT and
+    MesaLib) as the original source tarball. (Closes: #392715)
+  * Make mesa-common-dev depend on libx11-dev.
+  * Provide a new package: mesa-utils. These utilities are shipped in the
+    MesaDemos package so mesa is the right package to provide them.
+
+ -- Thierry Reding <thierry@gilfi.de>  Sat, 18 Nov 2006 18:50:07 +0100
+
+mesa (6.5.1-0.5) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Build with -fno-strict-aliasing to fix misbuild of i965_dri.so
+    (closes: #394311).  Thanks to Michel Dänzer for the fix, and to Ryan
+    Richter for the report and testing.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Wed,  3 Jan 2007 13:48:20 +0100
+
+mesa (6.5.1-0.4) unstable; urgency=medium
+
+  * Non-maintainer upload (and brown paper bag release).
+  * _Depend_ on libx11-dev from libgl1-mesa-dev; revert previous change.
+    Fixes FTBFS in other packages. (Really Closes: #396498)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat, 11 Nov 2006 13:55:20 +0100
+
+mesa (6.5.1-0.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build-depend on libx11-dev; fixes FTBFS. (Closes: #396498)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Wed,  8 Nov 2006 20:58:40 +0100
+
+mesa (6.5.1-0.2) unstable; urgency=low
+
+  * Non-maintainer upload
+  * Disable generation of SSE instructions (closes: #390560)
+  * Remove duplicate and unused build configurations
+  * Remove extra source files left from CVS snapshots (closes: #389283)
+  * Enable i965 DRI driver on i386 and amd64. Thanks to Ryan Richter
+    for the patch. (closes: #392030)
+  * Enable Unichrome DRI driver on amd64 (closes: #391900)
+  * Enable FFB DRI driver on sparc, not i386 (closes: #388025)
+  * Consistently compile C sources as C99 (closes: #373623)
+  * Fix X display locking error in GLX. Thanks to Josh Triplett for
+    the patch. (closes: #391681)
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Fri, 13 Oct 2006 02:25:52 +0100
+
+mesa (6.5.1-0.1) unstable; urgency=low
+
+  * New upstream version
+  * Build-dep on x11proto-gl-dev >= 1.4.8
+  * Stuff not in the upstream tarballs
+    + os2 glut stuff
+    + docs/gears.png
+  * Bump libdrm-dev build-dep to >= 2.0.2
+  * Add libdrm cflags to the debian-dri config. This allows the build system
+    to find drm.h
+  * Make sure that libGl looks for the dri drivers in the proper location. Do
+    this by setting the appropriate variables in the debian config
+  * Re-add s390 and m68k to the USE_IEEE test in src/mesa/main/imports.h. This
+    package seriously needs to store patches somewhere that are easy to find
+    and re-apply.
+  * Add patch from Cyril Brulebois to allow package to build on HURD, which
+    lacks DRI and directfb. This includes not using lib-directfb in the
+    build-depends for hurd-i386. It also creates a new debian config,
+    debian-indirect, which is used when building for HURD. This config is
+    invoked in the debian-dri config on hurd-i386. Thanks to Cyril Brulebois
+    for the patch, Michael Banck, Michel Dänzer, and Samuel Thibault for
+    input on an appropriate fix. (closes: #358065)
+
+ -- David Nusinow <dnusinow@debian.org>  Mon, 25 Sep 2006 21:21:47 -0400
+
+mesa (6.5.0.cvs.20060524-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Upload mesa 6.5 cvs to unstable, because we need it for Xorg 7.1.
+  * Upload with medium urgency instead of high, since this is a new
+    upstream that should get some testing in unstable in spite of the
+    multiple RC bugfixes.
+  * Update debian/copyright with the full text of the SGI Free B and SGI
+    MIT-style licenses in use in the package, and take a stab at
+    cleaning up the list of paths and licenses.
+    Closes: #368562.
+  * Make mesa-common-dev Replaces: xlibosmesa-dev from sarge.
+    Closes: #384057.
+  * Fix libgl1-mesa-glx to not Provides: libgl1-mesa-dri, since it
+    definitely doesn't provide DRI support and this Provides: breaks
+    upgrades from sarge.  Closes: #384282.
+  * debian/libgl1-mesa-swx11.shlibs: create a static shlibs file,
+    because libOSMesa.so.6 is not provided by all implementations of
+    libGL and so needs a separate shlibs declaration.  Also make
+    libgl1-mesa-glx the default alternative instead of libgl1-mesa-swx11
+    for consistency even when building against libgl1-mesa-swx11,
+    because to the extent these are interchangeable (i.e., 99%...),
+    there should be no reason to prefer one over the other -- and to the
+    extent that they aren't interchangeable, it's wrong to list libgl1
+    as an alternative dependency at all.  Closes: #386185.
+  * Don't provide shlibs at all for libgl1-mesa-swx11-dbg; this is an
+    unnecessary duplication of the existing libgl1-mesa-swx11 shlibs
+    since packages should not really be linking against /usr/lib/debug/
+    separately.
+  * src/mesa/tnl/t_vb_render.c: Drop a pointless printf() in the
+    RENDER_LINE macro, getting rid of copious debug output on console.
+    Closes: #369895.
+  * libgl1-mesa-swx11 has no reason to depend on libglu, anything that
+    wants libglu will have its own dependency on it; drop this
+    hard-coded dependency from debian/control.
+  * Have libglu1-mesa-dev Provides: xlibmesa-glu-dev, since it's the
+    successor to that package and xlibmesa-glu-dev is still referenced
+    in a number of places and this makes for more reliable builds than
+    depending on alternatives without requiring another dummy -dev
+    package from xorg.
+  * Replace references to Source-Version in debian/control with either 
+    binary:Version or source:Version, depending on whether the
+    relationship references an arch: any or arch: all package, making
+    mesa binNMU-safe; add build-depends on dpkg-dev (>= 1.13.19) to
+    ensure these substvars are available.
+
+ -- Steve Langasek <vorlon@debian.org>  Fri, 15 Sep 2006 15:51:16 -0700
+
+mesa (6.5.0.cvs.20060524-1) experimental; urgency=low
+
+  * The "-O666 -fwater-c00ling -DBE_F4ST" release
+  * New pull from CVS
+  * Merge back and forth with 6.4.2-1
+  * configs/debian*_i386: disabled, optimized build fuxxored.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Wed, 24 May 2006 14:12:13 -0600
+
+mesa (6.5.0.cvs.20060512-0.0.1) experimental; urgency=low
+
+  * New upstream release (6.5.0)
+  * Pulled CVS as of 2006-05-12
+  * debian/control: remove DirectFB packages
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Fri, 12 May 2006 15:23:49 -0600
+
+mesa (6.4.2-1) unstable; urgency=low
+
+  * The "please, please, please don't hate me" release.
+  * New upstream release.
+  * Ack NMUs
+  * debian/control: mesa-common-dev Replaces xlibmesa-gl-dev (<< 1:7)
+    AGAINST MY BETTER JUDGEMENT.  The problem here is gratuitous package
+    renames within a system that does not support them.  (closes:
+    bug#362063)
+  * debian/control: hurd-i386 doesn't have drm.  Doesn't fix #358065,
+    yet.
+  * bin/mklib: fix from Robert Millan to support hurd-i386 and
+    GNU/kFreeBSD.  Thanks Robert.  (closes: bug#358066)
+  * src/glx/x11/indirect_vertex_array.c, src/mesa/main/glheader.h,
+    src/mesa/drivers/dri/common/glcontextmodes.c: fix broken indirect
+    rendering on 64-bit platforms.  Thanks Aaron M. Ucko.  (closes:
+    bug#364228)
+  * debian/control: b-d on x11proto-gl-dev.  Please don't hate me!
+  * debian/control: Standards-Version: 3.7.2
+  * debian/rules: export DEB_HOST_ARCH
+  * configs/debian-dri: use DEB_HOST_ARCH to decide if certain DRI drivers
+    should be built or not.
+        + Built only for i386: i810 i830 sis.
+          Rationale: integrated chipsets available only for i386 processors.
+        + Built only for i386: ffb.
+          Rationale: Michel Dänzer said so, no idea why.
+        + Built only for i386, amd64: i915.
+          Rationale: Apparently this is available in the 64-bit Intel chipset.
+    Please file a bug report stating which drivers should be included/excluded
+    for which architectures.  Positive lists are preferred.  If possible state
+    why.
+  * debian/mesa-swx11-source.install: nuke this abomination.  Dinamically
+    generate the list at build time.
+  * debian/drivers.map: add gl-debian-dri_i386
+  * debian/README.build: updated, add big friendly letters in short sentences.
+    Perhaps I can read it myself this way...
+  * debian/rules, configs/debian, configs/debian-dri, configs/debian_i386,
+    configs/debian-dri_i386, debian/libdir.map, debian/drivers.map: hack in
+    support for variable driver's dir.  If you want this for your pet
+    architecture please provide BOTH configs/debian_arch and
+    configs/debian-dri_arch.  If you just want to include/exclude DRI drivers
+    on your architecture look in configs/debian-dri.
+  * configs/debian*_i386: disabled, optimized build fuxxored.
+  * debian/rules: remove misguided Perl construct, replace by something
+    simpler in shell.  I actually meant to do something else with the Perl
+    thing, but got distracted and forgot about it.  Thanks Aaron M. Ucko!
+  * debian/rules: make it work like debian/README.build says it works wrt to
+    building optimized targets.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Tue, 16 May 2006 18:07:53 -0600
+
+mesa (6.4.1-0.4) unstable; urgency=low
+
+  * NMU
+  * Add versioned conflict between libgl1-mesa-dri and xlibmesa-dri so that
+    the xlibmesa-dri transitional upgrade package works
+
+ -- David Nusinow <dnusinow@debian.org>  Mon,  6 Mar 2006 21:46:18 -0500
+
+mesa (6.4.1-0.3) unstable; urgency=low
+
+  * NMU
+  * Add s390 and m68k to the USE_IEEE test in src/mesa/main/imports.h.
+    (closes: #349437)
+
+ -- David Nusinow <dnusinow@debian.org>  Sat, 11 Feb 2006 17:59:26 -0500
+
+mesa (6.4.1-0.2) unstable; urgency=low
+
+  * NMU
+  * Re-add dh_installdirs call to binary-indep target so that we get
+    arch-specific dirs for the mesa-swx11-source package
+  * Remove makedepend from build-depends. Now we'll just build-dep on xutils
+    to get the app, which will translate over to our own xorg 7.0 plans.
+
+ -- David Nusinow <dnusinow@debian.org>  Tue, 31 Jan 2006 19:21:12 -0500
+
+mesa (6.4.1-0.1) unstable; urgency=low
+
+  [ Marcelo E. Magallon <mmagallo@debian.org> ]
+  * debian/control: build-depend on xutils
+  * include/GL/glx{int,proto,md,tokens}.h: missing upstream (closes: bug#326466)
+  * debian/libgl1-mesa-dri-dev.install: install GLX include files here, too.
+  * debian/rules: GLU and GLW don't have arch-specific targets.
+
+  [ Daniel Stone <daniels@debian.org> ]
+  * New upstream version, incorporating changes from Ubuntu 6.3 packaging.
+  * Rename packages:
+    - mesag3 -> libgl1-mesa-swrast
+    - mesag-dev -> libgl1-mesa-swrast-dev
+    - libgl1-mesa-dri -> libgl1-mesa
+    - libgl1-mesa-dri-dev -> libgl1-mesa-dev
+    - libgl1-mesa-dri still exists, but now contains the DRI modules only.
+  * Drop dependency *from* mesa-common-dev on libgl1-mesa-dev and
+    libglu1-mesa-dev; it should be the other way around. (closes: #336565)
+  * Add Build-Depends on pkg-config to get flags from libdrm, and libexpat-dev
+    for DRI configuration.  Break out xlibs-dev Build-Depends to the
+    individual libraries required.
+  * Bump libdrm-dev Build-Depends to >> 1.0.5, in order to get new
+    via_drm.h to build the unichrome DRI driver.
+  * Configs: pare DRI drivers down to a sensible set for each architecture.
+  * Remove completely broken Glide target, which caused FTBFS.
+  * Add mesa-swrast-source package, providing the source for the software
+    rasteriser for libGLcore in the X server.
+  * Drop tight libosmesa6 -> libgl1-mesa-swrast Depends, replace with
+    shlibs:Depends.
+
+  [ David Nusinow <dnusinow@debian.org> ]
+  * New upstream version (6.4.1) (closes: #232665)
+  * Merge changes from Ubuntu version 6.4.1-0ubuntu1.
+    (closes: #341479, #340168, #334742)
+    + Add new files required by xorg-server GL build to mesa-swrast-source.
+  * NMU to begin getting Xorg 7.0 in to Debian
+  * Change libgl1-mesa-swrast Depends on libx11-6-dev to libx11-dev.
+  * Change libgl1-mesa-swrast to be named libgl1-mesa-swx11
+  * Change libgl1-mesa to be named libgl1-mesa-glx
+  * mesa-swrast-src.install stop looking for the swx11 dir and look for swrast
+
+ -- David Nusinow <dnusinow@debian.org>  Sat, 21 Jan 2006 21:43:37 -0500
+
+mesa (6.3.2-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Adjust Build-Depends:
+    + xlibs transition (Closes: #347129).
+    + xutils, xlibmesa-gl-dev (Closes: #326466).
+  * mesag-dev: Depends: libx11-dev (Closes: #347205).
+
+ -- Christoph Berg <myon@debian.org>  Fri, 20 Jan 2006 20:45:43 +0100
+
+mesa (6.3.2-2) unstable; urgency=low
+
+  * debian/rules: build only whatever needs to be build according to
+    debian/control.
+  * debian/libdir.map: it's usr/lib/debug not usr/lib/dbg
+  * debian/rules: select optimized targets for the current host architecture
+    only (thanks Michel!)
+  * debian/README.build: reword some of the directions, add more info.
+  * debian/control: forgot to add CPR relationships in the new packages
+    (thanks Michel!)
+  * debian/control: Set maintainer to pkg-mesa-devel, add myself as uploader
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 28 Aug 2005 14:41:15 -0600
+
+mesa (6.3.2-1) unstable; urgency=low
+
+  * New upstream
+  * configs/debian-dri: new target
+  * debian/control: add build-depends on libdrm-dev
+  * debian/rules: pass SRC_DIRS instead of SUBDIRS on the command line.
+    This allows for configurations to override the command line in a
+    sane way.
+  * configs/debian-dri: override SRC_DIRS
+  * configs/debian: add -D_GNU_SOURCE (required by dri drivers)
+  * debian/control, debian/rules: drop glide out of this package, it
+    will be moved to the mesa-legacy package, forked from 6.2.1-7.
+  * debian/drivers.map, debian/rules: take into account that some
+    drivers have external components.
+        + To be fixed: debian/drivers.map hardcodes locations
+  * debian/control: libgl1-mesa-dri, libgl1-mesa-directfb: new drivers
+  * dh_makeshlibs for libgl1-mesa-dri and libgl1-mesa-directfb
+  * debian/control: priority is optional... again...
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 21 Aug 2005 17:13:19 -0600
+
+mesa (6.2.1-7) unstable; urgency=low
+
+  * Previous upload got lost somewhere
+      + bin/mklib: add GNU/kFreeBSD, patch from Aurelien Jarno (closes:
+        bug#307154)
+      + recompile with newer g++
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Tue, 02 Aug 2005 06:47:20 -0600
+
+mesa (6.2.1-6) unstable; urgency=low
+
+  * bin/mklib: add GNU/kFreeBSD, patch from Aurelien Jarno (closes:
+    bug#307154)
+  * recompile with newer g++
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 24 Jul 2005 11:47:16 -0600
+
+mesa (6.2.1-5) unstable; urgency=low
+
+  * debian/rules: big mess up, files are not being moved to their proper
+    places.  I naively assumed that command-line options to debhelper
+    commands would override DH_OPTIONS, that is, that having
+    DH_OPTIONS=-i (as suggested in the documentation) would mean
+    something like "use -i unless -p is passed on the command line".  It
+    actually means "use -i in addition to -p passed on the command
+    line", which does not make any sense, but is consistent with the
+    wording in the documentation. (closes: bug#306499, bug#306918,
+    bug#307095)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 01 May 2005 09:45:12 -0600
+
+mesa (6.2.1-4) unstable; urgency=low
+
+  * debian/control: fix description to reflect the exact content and
+    purpose of package (libosmesa-dev, mesag-dev).
+  * debian/rules: DH_OPTIONS=-s added to binary-arch target.  (closes:
+    bug#306091)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 26 Mar 2005 08:03:44 -0600
+
+mesa (6.2.1-3) unstable; urgency=low
+
+  * debian/control: try to match the override file.  If mesa is "extra"
+    (for whatever reason), all the packages should be extra.
+  * debian/rules: quick workaround for left-over libGL.so in GLU -dev
+    package.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Thu, 24 Mar 2005 19:35:34 -0600
+
+mesa (6.2.1-2) unstable; urgency=low
+
+  * The "thank you so much, I'm still voting against you" release.
+  * debian/rules: correct artifact of me not having had a proper
+    pbuilder environment to build stuff on and the repackaging from the
+    previous release.  The -glu- and -glw- targets now explicitly depend
+    on the matching -gl- target, and symlinks are placed in the build
+    directories in order to actually have a libGL.so to make ld happy
+    when creating the libraries.
+  * debian/rules: uncomment dh_install :-\  There was a reason why I had
+    commented that out...
+  * First change closes: bug#298922
+  * Second change closes: bug#300302, bug#300284, bug#300430
+  * debian/control: "An X", whatever, I've been corrected multiple times
+    in both ways (translators beware).  (closes: bug#300012)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 20 Mar 2005 22:03:29 -0600
+
+mesa (6.2.1-1) unstable; urgency=low
+
+  * The "autobuilders, please please please don't hate me" release.
+  * New upstream.
+  * Repackage:
+        + Fall prey to debhelper
+        + Entries below this one preserved for historical reasons or
+          sentimental value, pick as many as you want.  They bear NO
+          relation to the actual packages!
+  * configs/debian, configs/debian-debug, configs/debian-debug-i386,
+    configs/debian-glide, configs/debian-glide-i386, configs/debian-i386,
+    configs/debian-osmesa16, configs/debian-osmesa16-static,
+    configs/debian-osmesa32, configs/debian-osmesa32-static,
+    configs/debian-static, configs/debian-static-i386: new files.
+  * configs/debian-sparc: Dave Miller confirmed that the sparc assembly
+    files do work on Linux.  I don't know where to install the optimized
+    libraries, so the file doesn't actually exist.  Please read
+    debian/README.build if you want to have a sparc-optimized library.
+  * debian/control: GGI and glide2 are gone.  glide is glide3.
+  * debian/rules: modify shlibs file for the glide3 target to require glide3
+    and only glide3 because that library exports functions not available in
+    other libGLs.  Rationale: if someone is compiling a Debian package and
+    uses the glide target either he doesn't know what he is doing or he knows
+    exactly what he is doing.  In the first case the package should not be
+    installable and in the second case the package requires this particular
+    version.
+  * debian/control: libgl1-mesa-glide3-dev does NOT provide a proper OpenGL
+    development environment (see above).
+  * PCR is bound to be wrong... *sigh*
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 25 Dec 2004 14:50:02 -0600
+
+mesa (6.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/rules: redid a bunch of stuff in order to support new build system
+    without autoconf and automake stuff.  The next version is going to change
+    this _again_.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 11 Apr 2004 07:00:19 -0600
+
+mesa (5.0.0-5.1) unstable; urgency=low
+
+  * Non-Maintainer Upload.
+  * Rename "GGIMesa"-references in src/GGI/default/Makefile.am to
+    "MesaGGI", which makes the package build again with newer libtool.
+    (Closes: #213836)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sun, 15 Feb 2004 17:37:08 +0100
+
+mesa (5.0.0-5) unstable; urgency=low
+
+  * debian/control: yank and put error?  Remove hard-coded
+    nvidia-glx-dev from mesag-glide2-dev dependencies.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 09 Feb 2003 10:31:51 +0100
+
+mesa (5.0.0-4) unstable; urgency=low
+
+  * debian/rules: fix typo in definition of GLIDE_ARCHS.  (closes: bug#179622)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Mon, 03 Feb 2003 20:19:12 +0100
+
+mesa (5.0.0-3) unstable; urgency=low
+
+  * The "it's amazing how people pick severities" release
+  * debian/control: mesa-common-dev conflicts with xlibmesa-dev.  Actually put
+    dependency of mesa-common-dev on the mesa-*-dev packages to avoid having
+    to track other libgl-dev packages popping up.  IMO this is less error
+    prone.  You can't install mesa-common-dev without installing mesa-*-dev,
+    and those packages conflict with other libgl-dev packages.  (closes:
+    bug#177996)
+  * Rename libglu1c102 to libglu1-mesa; the libglu1c102 is incorrent since
+    this library does not export C++ functions.  Sorry about the mess.
+  * Rename libglu1-dev to libglu1-mesa-dev to be consistent
+  * debian/rules: use grep-dctrl to extract architectures from debian/control
+  * debian/control: add grep-dctrl to build-depends
+  * debian/shlibs.libglu: libglu1-mesa | libglu1
+  * debian/rules: install include/GL/xmesa.h in /usr/include/GL/xmesa.h; I'm
+    not 100% sure this is the right thing to do, but it's a niche so I don't
+    think it will actually make trouble (closes: bug#148866)
+  * debian/rules: install include/GL/glx*.h in the common package.  (closes:
+    bug#178562)
+  * debian/rules: nasty hack to work arround libtool's idea of how libraries
+    should be linked (closes: bug#178514)
+  * debian/rules: even nastier hack.  Getting environment variables to
+    percolate thru all the make calls isn't getting anywhere.
+  * si-glu/Makefile.am: export only glu.* symbols
+  * si-glu/Makefile.am: add -lm to link line
+  * src/Makefile.am: god damm it.  If you use libm link to it!
+  * debian/control: mesa-common-dev depends on libglu1-mesa-dev to satisfy
+    libgl-dev's requirements
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Mon, 27 Jan 2003 17:15:25 +0100
+
+mesa (5.0.0-2) unstable; urgency=low
+
+  * debian/control: Not funny, I'm sure I put lesstif and xlibs-dev in the
+    build-depends.  CVS says I didn't.  (closes: bug#176730)
+  * debian/control, debian/rules: regenerate auto-stuff (closes: bug#176729)
+  * debian/control, debian/rules: GCC C++ 3.2 transition (libglu1c102 -- ugly!)
+  * remove Makefile.in from CVS control
+  * si-glu/libnurbs/interface/Makefile.am: fix INCLUDES macro
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 19 Jan 2003 00:48:32 +0100
+
+mesa (5.0.0-1) unstable; urgency=low
+
+  * New upstream release, it looks like glide and GGI are in working
+    condition again.
+  * FX patches from previous releases gone.  They'll be back later.
+  * debian/rules: some clean ups.
+  * debian/control: add libglu1 packages
+  * debian/control: Standards-Version: 3.5.8
+  * debian/rules: Build Xt widgets (if you need this stuff, you need to depend
+    on mesag-dev, libgl-dev is not enough)
+  * debian/control, debian/rules: add mesa-common-dev package
+  * debian/control, debian/rules: add osmesa packages.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 15 Dec 2002 12:28:49 +0100
+
+mesa (4.0.3-1) unstable; urgency=low
+
+  * New (and long delayed) upstream version
+  * Redid a bunch of FX patches, probably broke.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Thu, 03 Oct 2002 11:27:29 +0200
+
+mesa (3.5-1) unstable; urgency=low
+
+  * New upstream version.
+  * Redid patches.
+  * Disabled building GGI target.  Someone with a good understanding of GGI
+    needs to write a driver for mesa.  The old version doesn't cut it
+    anymore.
+  * Most makefiles won't work.  Copied them out of CVS.
+  * src/Makefile.am: add -lm to library list.  (closes: bug#102717)
+  * configure.in: adjust GLU's version info to match previous release.
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Mon, 25 Jun 2001 22:13:40 +0200
+
+mesa3 (3.4.2.1-4) unstable; urgency=low
+
+  * So, here's the deal: the 3Dfx backend is going nowhere in 4.x and 5.x is
+    just arround the corner.  Same thing for the GGI stuff.  In order to leave
+    the people who need this stuff with _something_ to work with, I'll compile
+    those targets out of the mesa3 source package and the mesa package will
+    stuck to plain old X.
+  * debian/control, debian/rules: strip out all the parts concerning to mesa3g
+    and mesa3g-dev
+  * debian/control: update GGI architectures, let's see what happens
+  * debian/rules: special case alpha for stripping options.  Chris, did you
+    ever figure out what the problem actually is? (closes: bug#99284)
+  * debian/rules: hereby I decree that everything in etc is a conffile.  Die
+    future bugs, die!.
+  * configure: fix ggi_libdir, ggi_confdir (closes: bug#139598)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sun, 29 Sep 2002 11:21:00 +0200
+ 
+mesa (3.4.2.1-3) unstable; urgency=low
+
+  * Actually install widgets on the mesag-dev package (closes: bug#98988)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat,  9 Jun 2001 16:39:36 +0200
+
+mesa (3.4.2.1-2) unstable; urgency=low
+
+  * src/X/xmesa1.c: I knew it, I knew it.  This was bound to break.  Stupid
+    typo.  Restored MESA_GLX_FX (got renamed to GLX_FX accidentally, if you
+    have to know) (closes: bug#94114)
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Mon, 21 May 2001 08:52:07 +0200
+
+mesa (3.4.2.1-1) unstable; urgency=low
+
+  * Upstream released 3.4.2.
+  * Hmmm... thought about it on my way home.  The code to parse 3dfx.conf
+    is wrong.  Redid.  Still not tested.  (closes: bug#94114)
+  * debian/README.Debian: document 3dfx.conf
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 19 May 2001 11:57:33 +0200
+
+mesa (3.4.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * debian/config.guess, debian/config.sub: newest versions from
+    http://subversions.gnu.org/cgi-bin/cvsweb/config (closes: bug#95338)
+  * GAAAAAAARGGH! src/X/xmesa1.c: horrible hack to use /etc/mesa/3dfx.conf
+    if there's no MESA_GLX_FX environment variable defined.  I.  Hate.
+    This.  I'll make a deal with you: you find another of these things,
+    and you send me a nice tested patch.  I don't have a 3DFX card and I
+    *HATE* uploading stuff I can't fully test. (closes: bug#94114)
+  * debian/rules: use the new files
+  * debian/rules: s/TMPDIR/DTEMPDIR/g
+  * gl3DfxSetDitherModeEXT from Zephaniah (closes: bug#65860)
+  * Disable GL_EXT_shared_texture_palette per default.  Patch looks funny,
+    but I'll blindly trust Zephaniah.
+  * Hmmm... I hope Zephaniah tested this, because it broke in a rather silly
+    way at compile time.
+  * Fancy what people regard as "pretty important".
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Fri, 18 May 2001 09:23:49 +0200
+
+mesa (3.4.1-3) unstable; urgency=low
+
+  * PLEASE SUBMIT NMUs TO THE BTS, DAMN IT!
+  * debian/control: exclude m68k from libggi2-dev build-dependency.
+ 
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 17 Mar 2001 19:45:09 +0100
+
+mesa (3.4.1-2) unstable; urgency=low
+
+  * debian/control: add missing dependency on xlibs-dev and corrected the
+    one for libglide2-dev
+ 
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Wed, 14 Mar 2001 00:21:42 +0100
+
+mesa (3.4.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * New maintainer. (closes: bug#81139)
+  * Some fixes to get it to compile.
+  * debian/rules: some reorganization happened to allow me test different
+    builds better.
+  * debian/control: nuked widgets package, if you miss it, you are doing
+    something wrong.
+  * debian/rules: -dev packages will be missing some garbage they used to
+    install.  If you miss any of those files, I'm fairly confident you
+    are doing something wrong.
+  * configure, ltmain.sh, aclocal.m4, acinclude.m4, ...: vicious hacks to
+    allow the GGI version to compile.
+  * TODO: add the widgets to the packages
+  * TODO: make OSmesa packages
+
+ -- Marcelo E. Magallon <mmagallo@debian.org>  Sat, 10 Feb 2001 18:34:13 +0100
+
+mesa (3.2.1-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- James A. Treacy <treacy@debian.org>  Mon, 31 Jul 2000 15:13:34 -0400
+
+mesa (3.2-2) frozen unstable; urgency=low
+
+  * add MMX and 3Dnow opts for x86.
+
+ -- James A. Treacy <treacy@debian.org>  Fri,  7 Jul 2000 16:06:43 -0400
+
+mesa (3.2-1) frozen unstable; urgency=low
+
+  * New upstream version.
+  * Made minor changes to README.3DFX. Closes bug#56827
+  * Added symlinks for mesa widget libraries. Closes bug#63115
+
+ -- James A. Treacy <treacy@debian.org>  Wed, 28 Jun 2000 11:21:09 -0400
+
+mesa (3.1-17) frozen unstable; urgency=low
+
+  * Fixed Makefile for demos in mesag-widgets-dev. Closes bug#62674
+
+ -- James A. Treacy <treacy@debian.org>  Fri, 19 May 2000 13:23:00 -0400
+
+mesa (3.1-16) frozen unstable; urgency=low
+
+  * Add --prefix=/usr to ggi build. Closes bug#61705, #61486
+
+ -- James A. Treacy <treacy@debian.org>  Wed, 12 Apr 2000 15:12:48 -0400
+
+mesa (3.1-15) frozen unstable; urgency=low
+
+  * Remove ggi from the build on m68k. Closes bug#59273
+
+ -- James A. Treacy <treacy@debian.org>  Mon,  6 Mar 2000 13:20:29 -0500
+
+mesa (3.1-14) frozen unstable; urgency=low
+
+  * Fixed hard-coded location of config file in library. This is release
+    critical, even though no bug was filed (relates to bug#58267).
+
+ -- James A. Treacy <treacy@debian.org>  Mon, 28 Feb 2000 10:58:34 -0500
+
+mesa (3.1-13) frozen unstable; urgency=low
+
+  * Add missing ggi libraries. Closes bug#58267, #57760
+
+ -- James A. Treacy <treacy@debian.org>  Thu, 24 Feb 2000 00:59:30 -0500
+
+mesa (3.1-12) frozen unstable; urgency=low
+
+  * Dependencies are now computed in a more intelligent way. Closes: bug#55861
+
+ -- James A. Treacy <treacy@debian.org>  Fri, 21 Jan 2000 16:26:40 -0500
+
+mesa (3.1-11) frozen unstable; urgency=low
+
+  * Remove svgalib support from the software only package of mesa
+
+ -- James A. Treacy <treacy@debian.org>  Sat, 22 Jan 2000 05:33:13 +0000
+
+mesa (3.1-10) frozen unstable; urgency=low
+
+  * Fix the mesag3-glide2 postinst. Closes bug#55462
+
+ -- James A. Treacy <treacy@debian.org>  Sat, 22 Jan 2000 02:06:27 +0000
+
+mesa (3.1-9) frozen unstable; urgency=low
+
+  * The ggi based packages are now built with the other versions of mesa. Closes: bug#49218, #55221
+
+ -- James A. Treacy <treacy@debian.org>  Sat, 15 Jan 2000 22:24:13 -0500
+
+mesa (3.1-8) unstable; urgency=low
+
+  * fixed the postinst and prerm for the glide packages
+  * added Provides: mesag-dev to the mesag-glide2-dev package to maintain
+    backwards compatability
+
+ -- James A. Treacy <treacy@debian.org>  Sat, 15 Jan 2000 01:01:58 -0500
+
+mesa (3.1-7) unstable; urgency=low
+
+  * Fix version number for soname in the shlib file. Closes: bug#54926
+
+ -- James A. Treacy <treacy@debian.org>  Thu, 13 Jan 2000 01:37:03 -0500
+
+mesa (3.1-6) unstable; urgency=low
+
+  * Include docs/README.3DFX in mesag3-glide2 package. Closes: bug#54625
+  * Remove Provides: libgl1 from mesag3-widgets. Closes: bug#54774
+  * conflicts with older versions of mesa. Closes: bug#54831
+
+ -- James A. Treacy <treacy@debian.org>  Mon, 10 Jan 2000 11:50:49 -0500
+
+mesa (3.1-5) unstable; urgency=low
+
+  * now Conflicts: libgl1
+  * remove extra '.' in library name
+
+ -- James A. Treacy <treacy@debian.org>  Sun,  9 Jan 2000 20:47:31 -0500
+
+mesa (3.1-4) unstable; urgency=low
+
+  * Added links libGL.so.1 <- libMesaGL.so.3 so existing progs don't break
+  * Copyright changed for version 3.1
+
+ -- James A. Treacy <treacy@debian.org>  Thu,  6 Jan 2000 17:11:11 -0500
+
+mesa (3.1-3) unstable; urgency=low
+
+  * copyright file now refers to /usr/share/common-license/LGPL.
+
+ -- James A. Treacy <treacy@debian.org>  Tue,  4 Jan 2000 11:50:45 -0500
+
+mesa (3.1-2) unstable; urgency=low
+
+  * Second try. Fixed shlibs file.
+
+ -- James A. Treacy <treacy@debian.org>  Tue,  4 Jan 2000 00:00:29 -0500
+
+mesa (3.1-1) unstable; urgency=low
+
+  * New upstream version.
+  * glide version of packages added, since glide is now under the GPL.
+  * mesa widget libraries are now in a separate package
+  * library names are changed to lib{GL,GLU}.*
+
+ -- James A. Treacy <treacy@debian.org>  Tue, 14 Dec 1999 10:06:14 -0500
+
+mesa (3.0-2) unstable; urgency=low
+
+  * added symlinks from libMesaGL* -> libGL*. Fixes bug #37160
+  * added lines (commented out) for building a glide version of mesa. Fixes bug #39758
+
+ -- James A. Treacy <treacy@debian.org>  Thu, 13 May 1999 01:02:42 -0400
+
+mesa (3.0-1) unstable; urgency=low
+
+  * mesa libs moved to /usr/lib. Fixes bug #26874
+  * motif widget library libMesaGLwM added (compiled using headers from lesstif). Fixes bug #25380
+
+ -- James A. Treacy <treacy@debian.org>  Thu,  6 Aug 1998 13:49:37 -0400
+
+mesa (2.6-4) unstable; urgency=low
+
+  * call to ldconfig in postinst put back in. Fixes bug #20552
+  * changelog.Debian file created for the mesa-doc package.
+  * deleted miscellaneous files. Fixes bug #21481
+
+ -- James A. Treacy <treacy@debian.org>  Sat, 23 May 1998 23:41:34 -0400
+
+mesa (2.6-3) frozen unstable; urgency=low
+
+  * No changes. Just trying (again) to get this back in the distribution
+
+ -- James A. Treacy <treacy@debian.org>  Tue, 24 Mar 1998 00:53:09 -0500
+
+mesa (2.6-2) unstable frozen; urgency=low
+
+  * point copyright to LPGL in /usr/doc/copyright. Fixes bug #19633
+
+ -- James A. Treacy <treacy@debian.org>  Sun, 15 Mar 1998 14:00:33 -0500
+
+mesa (2.6-1) unstable; urgency=low
+
+  * New upstream Release
+  * strip static lib with --strip-debug and shared with strip--unneeded: Fixes bug#17301
+  * create doc package in build-indep: Fixes bug#16090
+  * added widgets-mesa library to package: Fixes bug#15729
+  * created mesa-glide* packages
+
+ -- James A. Treacy <treacy@debian.org>  Mon, 19 Jan 1998 23:45:50 -0500
+
+mesa (2.5-2) unstable; urgency=low
+
+  * Corrected i386 specific debian/rules file: Fixes bug#15640
+
+ -- James A. Treacy <treacy@debian.org>  Fri,  5 Nov 1997 11:46:13 -0500
+
+mesa (2.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- James A. Treacy <treacy@debian.org>  Sun, 23 Nov 1997 20:46:13 -0500
+
+mesa (2.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * New maintainer.
+  * libc6 release.
+
+ -- James A. Treacy <treacy@debian.org>  Mon,  3 Nov 1997 01:11:34 -0500
+
+mesa (2.2-2) unstable; urgency=low
+
+  * debian/control: mesa-doc no longer depends on mesa (bug #8840).
+
+ -- Karl Sackett <krs@debian.org>  Wed, 30 Apr 1997 10:25:25 -0500
+
+mesa (2.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Make-config: linux-elf libraries compiled with -D_REENTRANT.
+
+ -- Karl Sackett <krs@debian.org>  Wed, 19 Mar 1997 09:10:22 -0600
+
+mesa (2.1-4) unstable; urgency=low
+
+  * debian/control: lib packages moved from 'graphics' to 'libs'.
+  * debian/rules: headers moved from /usr/include/mesa to /usr/include
+    (no more -I/usr/include/mesa).
+
+ -- Karl Sackett <krs@debian.org>  Tue, 25 Feb 1997 09:30:23 -0600
+
+mesa (2.1-3) unstable; urgency=low
+
+  * debian/control: mesa2 provides mesa and conflicts with mesa
+    (bug #7394).
+
+ -- Karl Sackett <krs@debian.org>  Mon, 17 Feb 1997 09:25:42 -0600
+
+mesa (2.1-2) unstable; urgency=low
+
+  * debian/rules: install gmesa.h, osmesa.h, FooMesa.h in mesa-dev
+    (bug #6864).
+
+ -- Karl Sackett <krs@debian.org>  Tue, 28 Jan 1997 09:37:41 -0600
+
+mesa (2.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added soname to mesa and mesa-widgets.
+  * Moved static libraries to mesa2-dbg.
+  * debian/postinst, postinst-widgets: call ldconfig without explicit
+    pathname (bugs #6176, 6180).
+
+ -- Karl Sackett <krs@debian.org>  Mon, 6 Jan 1997 09:30:10 -0600
+
+mesa (2.0-2) unstable; urgency=low
+
+  * Created mesa-widgets and mesa-widgets-dev (Bug #5029).
+
+ -- Karl Sackett <krs@debian.org>  Wed, 30 Oct 1996 08:44:19 -0600
+
+mesa (2.0-1) unstable; urgency=low
+
+  * src/draw.c: replaced with upstream patch.
+  * Make-config: linux-elf target builds libMesaGLw.so library, looks
+    for XLIBS in /usr/X11R6/lib, removed -mieee-mp from CFLAGS.
+  * widgets-sgi/Makefile: builds libMesaGlw.a library
+  * New upstream release.
+  * Converted to new package standard.
+  * Maintainer address changed.
+
+ -- Karl Sackett <krs@debian.org>  Mon, 14 Oct 1996 15:37:19 -0500
+
+1.2.8-3
+  * Package split into runtime, development, and documentation
+    packages.
+  * widgets now made as a sharable library.
+  * GLUT removed.  This will be released as a separate package.
+
+1.2.8-2
+  * Support files now architecture-independent
+
+1.2.8-1
+  * Upgrade to latest release
+  * Brought support files up to latest packaging requirements
+  * mondello/Makefile: fixed error in realclean target
+
+1.2.7-2
+  * debian.rules: clean all Makefiles out of widgets directory
+  * debian.postrm: remove /usr/lib/mesa entry from /etc/ld.so.config
+    (bug #2817)
+
+1.2.7-1
+  * Added Debian support files
+  * Included the GLUT OpenGL Utility Toolkit
+  * Makefile - disable building programs in demos, samples, and book
+    directories
+  * mklib.linux - disabled building *.a libraries
+  * widgets/Makefile.in - disabled building demo programs
--- mesa-lts-xenial-11.2.0.orig/debian/compat
+++ mesa-lts-xenial-11.2.0/debian/compat
@@ -0,0 +1 @@
+9
--- mesa-lts-xenial-11.2.0.orig/debian/control
+++ mesa-lts-xenial-11.2.0/debian/control
@@ -0,0 +1,542 @@
+Source: mesa-lts-xenial
+Section: graphics
+Priority: optional
+Maintainer: Ubuntu X-SWAT <ubuntu-x@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
+Uploaders: Andreas Boll <andreas.boll.dev@gmail.com>
+Standards-Version: 3.9.7
+Build-Depends:
+ debhelper (>= 9),
+ dh-autoreconf,
+ quilt (>= 0.40),
+ pkg-config,
+ libdrm-dev (>= 2.4.67) [!hurd-any],
+ libx11-dev,
+ x11proto-gl-dev (>= 1.4.14),
+ libxxf86vm-dev,
+ libexpat1-dev,
+ dpkg-dev (>= 1.16.1),
+ libxfixes-dev,
+ libxdamage-dev,
+ libxext-dev,
+# libva-dev (>= 1.6.0) [linux-any kfreebsd-any],
+ libvdpau-dev (>= 0.4.1) [linux-any kfreebsd-any],
+ autoconf,
+ automake,
+ libtool,
+ x11proto-dri2-dev (>= 2.6),
+ x11proto-dri3-dev (>= 1.0),
+ x11proto-present-dev (>= 1.0),
+ linux-libc-dev (>= 2.6.31) [linux-any],
+ libx11-xcb-dev,
+ libxcb-dri2-0-dev (>= 1.8),
+ libxcb-glx0-dev (>= 1.8.1),
+ libxcb-xfixes0-dev,
+ libxcb-dri3-dev,
+ libxcb-present-dev,
+ libxcb-randr0-dev,
+ libxcb-sync-dev,
+ libxshmfence-dev (>= 1.1),
+ python,
+ python-mako,
+ libudev-dev [linux-any],
+ flex,
+ bison,
+ llvm-3.8-dev (>= 1:3.8~) [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
+ libelf-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
+ libwayland-dev (>= 1.2.0) [linux-any],
+# libclang-3.8-dev (>= 1:3.8~) [amd64 i386 armhf],
+# libclc-dev [amd64 i386 armhf],
+Vcs-Git: https://anonscm.debian.org/git/pkg-xorg/lib/mesa.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-xorg/lib/mesa.git
+Homepage: http://mesa3d.org/
+
+Package: libxatracker2-lts-xenial
+Section: libs
+Architecture: linux-any 
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: X acceleration library -- runtime
+ This package contains the XA (X acceleration) library.  It is used exclusively
+ by the X server to do render, copy and video acceleration.
+ .
+ XA is intended to be used by the vmware driver for virtualized X acceleration.
+Replaces: libxatracker2
+Provides: libxatracker2, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libxatracker2, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libxatracker-dev-lts-xenial
+Section: libdevel
+Architecture: linux-any
+Depends:
+ libxatracker2-lts-xenial (= ${binary:Version}),
+ ${misc:Depends},
+Multi-Arch: same
+Description: X acceleration library -- development files
+ This package contains the XA (X acceleration) library.  It is used exclusively
+ by the X server to do render, copy and video acceleration.
+ .
+ XA is intended to be used by the vmware driver for virtualized X acceleration.
+ .
+ This package provides the development environment for compiling programs
+ against the xatracker library.
+Replaces: libxatracker-dev
+Provides: libxatracker-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libxatracker-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libgbm1-lts-xenial
+Section: libs
+Architecture: linux-any kfreebsd-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libudev1 [linux-any],
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: generic buffer management API -- runtime
+ This package contains the GBM buffer management library.  It provides a
+ mechanism for allocating buffers for graphics rendering tied to Mesa.
+ .
+ GBM is intended to be used as a native platform for EGL on drm or openwfd.
+Replaces:
+Provides: xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libgbm-dev-lts-xenial
+Section: libdevel
+Architecture: linux-any kfreebsd-any
+Depends:
+ libgbm1-lts-xenial (= ${binary:Version}),
+ libudev-dev [linux-any],
+ ${misc:Depends},
+Multi-Arch: same
+Description: generic buffer management API -- development files
+ This package contains the GBM buffer management library.  It provides a
+ mechanism for allocating buffers for graphics rendering tied to Mesa.
+ .
+ GBM is intended to be used as a native platform for EGL on drm or openwfd.
+ .
+ This package provides the development environment for compiling programs
+ against the GBM library.
+Replaces: libgbm-dev
+Provides: libgbm-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libgbm-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libegl1-mesa-lts-xenial
+Section: libs
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libudev1 [linux-any],
+ libgl1-mesa-dri-lts-xenial (= ${binary:Version}),
+Provides:
+ libegl1-mesa, xorg-renamed-package, xorg-renamed-package-lts-xenial, libegl1-mesa-drivers,
+ libegl1-x11
+Conflicts:
+ libegl1-mesa, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libegl1-x11
+Replaces:
+ libegl1-mesa,
+ libegl1-x11
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the EGL API -- runtime
+ This package contains the EGL native platform graphics interface library.
+ EGL provides a platform-agnostic mechanism for creating rendering surfaces
+ for use with other graphics libraries, such as OpenGL|ES.
+ .
+ This package contains modules to interface with the existing system GLX or
+ DRI2 drivers to provide OpenGL via EGL.
+
+Package: libegl1-mesa-dev-lts-xenial
+Section: libdevel
+Architecture: any
+Depends:
+ libegl1-mesa-lts-xenial (= ${binary:Version}),
+ libwayland-egl1-mesa-lts-xenial (= ${binary:Version}) [linux-any],
+ libdrm-dev (>= 2.4.52) [!hurd-any],
+ x11proto-dri2-dev (>= 2.6),
+ x11proto-gl-dev (>= 1.4.14),
+ libx11-dev,
+ libxext-dev,
+ libxxf86vm-dev,
+ libxdamage-dev,
+ libxfixes-dev,
+ libxcb-glx0-dev,
+ libxcb-dri2-0-dev,
+ libxcb-dri3-dev,
+ libxcb-present-dev,
+ libxcb-sync-dev,
+ libxshmfence-dev,
+ libx11-xcb-dev,
+ libwayland-dev (>= 1.2.0) [linux-any],
+ ${misc:Depends},
+Multi-Arch: same
+Description: free implementation of the EGL API -- development files
+ This package contains the development environment required for compiling
+ programs against EGL native platform graphics interface library.
+ EGL provides a platform-agnostic mechanism for creating rendering surfaces
+ for use with other graphics libraries, such as OpenGL|ES.
+ .
+ This package provides the development environment for compiling programs
+ against the EGL library.
+Replaces: libegl1-mesa-dev
+Provides: libegl1-mesa-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libegl1-mesa-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+#Package: libegl1-mesa-drivers
+#Section: libs
+#Architecture: linux-any kfreebsd-any
+#Depends:
+# ${misc:Depends},
+#Multi-Arch: same
+#Description: transitional dummy package
+# This is a transitional dummy package, it can be safely removed.
+
+Package: libwayland-egl1-mesa-lts-xenial
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libegl1-mesa-lts-xenial (= ${binary:Version})
+Provides:
+ libwayland-egl1-mesa, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ libwayland-egl1
+Conflicts:
+ libwayland-egl1-mesa, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libwayland-egl1
+Replaces:
+ libwayland-egl1-mesa,
+ libwayland-egl1, libegl1-mesa-drivers  (<< 10.1.0-2)
+Breaks: libegl1-mesa-drivers (<< 10.1.0-2)
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: implementation of the Wayland EGL platform -- runtime
+ This package contains the mesa implementation of the Wayland EGL platform
+
+Package: libgles1-mesa-lts-xenial
+Section: libs
+Architecture: any
+Depends:
+ libglapi-mesa-lts-xenial (= ${binary:Version}),
+ ${shlibs:Depends},
+ ${misc:Depends},
+Provides:
+ libgles1-mesa, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ libgles1
+Conflicts:
+ libgles1-mesa, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libgles1
+Replaces:
+ libgles1-mesa,
+ libgles1
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the OpenGL|ES 1.x API -- runtime
+ OpenGL|ES is a cross-platform API for full-function 2D and 3D graphics on
+ embedded systems - including consoles, phones, appliances and vehicles.
+ It contains a subset of OpenGL plus a number of extensions for the
+ special needs of embedded systems.
+ .
+ OpenGL|ES 1.x provides an API for fixed-function hardware.
+
+Package: libgles1-mesa-dev-lts-xenial
+Section: libdevel
+Architecture: any
+Depends:
+ libgles1-mesa-lts-xenial (= ${binary:Version}),
+ libegl1-mesa-dev-lts-xenial,
+ ${misc:Depends},
+Multi-Arch: same
+Description: free implementation of the OpenGL|ES 1.x API -- development files
+ OpenGL|ES is a cross-platform API for full-function 2D and 3D graphics on
+ embedded systems - including consoles, phones, appliances and vehicles.
+ It contains a subset of OpenGL plus a number of extensions for the
+ special needs of embedded systems.
+ .
+ OpenGL|ES 1.x provides an API for fixed-function hardware.
+ .
+ This package provides a development environment for building programs using
+ the OpenGL|ES 1.x APIs.
+Replaces: libgles1-mesa-dev
+Provides: libgles1-mesa-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libgles1-mesa-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libgles2-mesa-lts-xenial
+Section: libs
+Architecture: any
+Depends:
+ libglapi-mesa-lts-xenial (= ${binary:Version}),
+ ${shlibs:Depends},
+ ${misc:Depends},
+Provides:
+ libgles2-mesa, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ libgles2
+Conflicts:
+ libgles2-mesa, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libgles2
+Replaces:
+ libgles2-mesa,
+ libgles2
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the OpenGL|ES 2.x API -- runtime
+ OpenGL|ES is a cross-platform API for full-function 2D and 3D graphics on
+ embedded systems - including consoles, phones, appliances and vehicles.
+ It contains a subset of OpenGL plus a number of extensions for the
+ special needs of embedded systems.
+ .
+ OpenGL|ES 2.x provides an API for programmable hardware including vertex
+ and fragment shaders.
+
+Package: libgles2-mesa-dev-lts-xenial
+Section: libdevel
+Architecture: any
+Depends:
+ libgles2-mesa-lts-xenial (= ${binary:Version}),
+ libegl1-mesa-dev-lts-xenial,
+ ${misc:Depends},
+Multi-Arch: same
+Description: free implementation of the OpenGL|ES 2.x API -- development files
+ OpenGL|ES is a cross-platform API for full-function 2D and 3D graphics on
+ embedded systems - including consoles, phones, appliances and vehicles.
+ It contains a subset of OpenGL plus a number of extensions for the
+ special needs of embedded systems.
+ .
+ OpenGL|ES 2.x provides an API for programmable hardware including vertex
+ and fragment shaders.
+ .
+ This package provides a development environment for building applications
+ using the OpenGL|ES 2.x APIs.
+Replaces: libgles2-mesa-dev
+Provides: libgles2-mesa-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libgles2-mesa-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libglapi-mesa-lts-xenial
+Section: libs
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the GL API -- shared library
+ The Mesa GL API module is responsible for dispatching all the gl*
+ functions. It is intended to be mainly used by both the libgles1-mesa
+ and libgles2-mesa packages.
+Replaces: libglapi-mesa
+Provides: libglapi-mesa, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libglapi-mesa, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libgl1-mesa-glx-lts-xenial
+Section: libs
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ libglapi-mesa-lts-xenial (= ${binary:Version}),
+ libudev1 [linux-any],
+ libgl1-mesa-dri-lts-xenial (>= 7.2)
+Conflicts:
+ libgl1-mesa-glx, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libgl1
+Replaces:
+ libgl1-mesa-glx,
+ libgl1
+Provides:
+ libgl1-mesa-glx, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ libgl1
+Breaks:
+ libgl1-nvidia-alternatives (<= 275.09.07-1),
+ fglrx-glx (<< 1:11-6-1),
+ glx-diversions (<< 0.4),
+ libopengl-perl (<< 0.6704+dfsg-2),
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the OpenGL API -- GLX runtime
+ Mesa is a 3-D graphics library with an API which is very similar to
+ that of OpenGL.  To the extent that Mesa utilizes the OpenGL command
+ syntax or state machine, it is being used with authorization from
+ Silicon Graphics, Inc.  However, the authors make no claim that Mesa
+ is in any way a compatible replacement for OpenGL or associated with
+ Silicon Graphics, Inc.
+ .
+ This version of Mesa provides GLX and DRI capabilities: it is capable of
+ both direct and indirect rendering.  For direct rendering, it can use DRI
+ modules from the libgl1-mesa-dri package to accelerate drawing.
+ .
+ This package does not include the modules themselves: these can be found
+ in the libgl1-mesa-dri package.
+
+Package: libgl1-mesa-dri-lts-xenial
+Section: libs
+Priority: optional
+Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends}
+Recommends: libtxc-dxtn-s2tc0 | libtxc-dxtn0
+Breaks:
+ xserver-xorg-core-lts-xenial (<< 2:1.14.3-5),
+Multi-Arch: same
+Description: free implementation of the OpenGL API -- DRI modules
+ This version of Mesa provides GLX and DRI capabilities: it is capable of
+ both direct and indirect rendering.  For direct rendering, it can use DRI
+ modules from the libgl1-mesa-dri package to accelerate drawing.
+ .
+ This package does not include the OpenGL library itself, only the DRI
+ modules for accelerating direct rendering.
+ .
+ For a complete description of Mesa, please look at the
+ libgl1-mesa-glx package.
+Replaces: libgl1-mesa-dri
+Provides: libgl1-mesa-dri, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: libgl1-mesa-dri, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: libgl1-mesa-dev-lts-xenial
+Section: libdevel
+Architecture: any
+Depends:
+ mesa-common-dev-lts-xenial (= ${binary:Version}),
+ libgl1-mesa-glx-lts-xenial (= ${binary:Version}),
+ libdrm-dev (>= 2.4.65) [!hurd-any],
+ libx11-dev,
+ libx11-xcb-dev,
+ libxcb-dri3-dev,
+ libxcb-present-dev,
+ libxcb-sync-dev,
+ libxshmfence-dev,
+ libxcb-dri2-0-dev,
+ libxcb-glx0-dev,
+ libxdamage-dev,
+ libxext-dev,
+ libxfixes-dev,
+ libxxf86vm-dev,
+ x11proto-dri2-dev (>= 2.6),
+ x11proto-gl-dev (>= 1.4.14),
+ ${misc:Depends},
+Conflicts:
+ libgl1-mesa-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,,
+ libgl-dev
+Replaces:
+ libgl1-mesa-dev,
+ libgl-dev
+Provides:
+ libgl1-mesa-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ libgl-dev
+Multi-Arch: same
+Description: free implementation of the OpenGL API -- GLX development files
+ This version of Mesa provides GLX and DRI capabilities: it is capable of
+ both direct and indirect rendering.  For direct rendering, it can use DRI
+ modules from the libgl1-mesa-dri package to accelerate drawing.
+ .
+ This package includes headers and static libraries for compiling
+ programs with Mesa.
+ .
+ For a complete description of Mesa, please look at the libgl1-mesa-glx
+ package.
+
+Package: mesa-common-dev-lts-xenial
+Section: libdevel
+Architecture: any
+Depends:
+ libx11-dev,
+ libdrm-dev (>= 2.4.65) [!hurd-any],
+ ${misc:Depends},
+Multi-Arch: same
+Description: Developer documentation for Mesa
+ This package includes the specifications for the Mesa-specific OpenGL
+ extensions, the complete set of release notes and the development header
+ files common to all Mesa packages.
+Replaces: mesa-common-dev
+Provides: mesa-common-dev, xorg-renamed-package, xorg-renamed-package-lts-xenial
+Conflicts: mesa-common-dev, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+#Package: libosmesa6
+#Section: libs
+#Architecture: any
+#Depends:
+# ${shlibs:Depends},
+# ${misc:Depends},
+# libglapi-mesa (= ${binary:Version}),
+#Pre-Depends: ${misc:Pre-Depends}
+#Multi-Arch: same
+#Description: Mesa Off-screen rendering extension
+# OSmesa is a Mesa extension that allows programs to render to an
+# off-screen buffer using the OpenGL API without having to create a
+# rendering context on an X Server.  It uses a pure software renderer.
+# .
+# This package provides both 16-bit and 32-bit versions of the off-screen
+# renderer which do not require external libraries to work.
+
+#Package: libosmesa6-dev
+#Section: libdevel
+#Architecture: any
+#Depends:
+# libosmesa6 (= ${binary:Version}),
+# mesa-common-dev (= ${binary:Version}) | libgl-dev,
+# ${misc:Depends},
+#Conflicts: libosmesa-dev
+#Replaces: libosmesa-dev
+#Provides: libosmesa-dev
+#Multi-Arch: same
+#Description: Mesa Off-screen rendering extension -- development files
+# This package provides the required environment for developing programs
+# that use the off-screen rendering extension of Mesa.
+# .
+# For more information on OSmesa see the libosmesa6 package.
+
+#Package: mesa-va-drivers-lts-xenial
+#Section: libs
+#Architecture: linux-any kfreebsd-any
+#Depends:
+# libva1,
+# ${shlibs:Depends},
+# ${misc:Depends},
+#Enhances:
+# libva1,
+#Provides:
+# mesa-va-drivers, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+# va-driver,
+#Breaks: vdpau-va-driver (<< 0.7.4-5)
+#Replaces:
+# mesa-va-drivers,
+# vdpau-va-driver (<< 0.7.4-5)
+#Multi-Arch: same
+#Pre-Depends: ${misc:Pre-Depends}
+#Description: Mesa VA-API video acceleration drivers
+# These libraries provide the Video Acceleration API (VA-API) for Unix.
+# They provide accelerated video playback (incl. H.264) and video
+# post-processing for the supported graphics cards.
+# .
+# This package enables support for VA-API for some gallium drivers.
+#Conflicts: mesa-va-drivers, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
+
+Package: mesa-vdpau-drivers-lts-xenial
+Section: libs
+Architecture: linux-any kfreebsd-any
+Depends:
+ libvdpau1,
+ ${shlibs:Depends},
+ ${misc:Depends},
+Enhances:
+ libvdpau1,
+Provides:
+ mesa-vdpau-drivers, xorg-renamed-package, xorg-renamed-package-lts-xenial,
+ vdpau-driver,
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Description: Mesa VDPAU video acceleration drivers
+ These libraries provide the Video Decode and Presentation API for Unix.
+ They provide accelerated video playback (incl. H.264) and video
+ post-processing for the supported graphics cards.
+ .
+ This package enables support for VDPAU for some gallium drivers.
+Replaces: mesa-vdpau-drivers
+Conflicts: mesa-vdpau-drivers, xorg-renamed-package-lts-utopic, xorg-renamed-package-lts-vivid, xorg-renamed-package-lts-wily,
--- mesa-lts-xenial-11.2.0.orig/debian/copyright
+++ mesa-lts-xenial-11.2.0/debian/copyright
@@ -0,0 +1,157 @@
+This package was debianized by James A. Treacy treacy@debian.org on Thu,
+6 Jan 2000 01:11:34 -0500.  It was newly debianized by Marcelo E.
+Magallon <mmagallo@debian.org> on Sat, 25 Dec 2004 14:50:02 -0600. It was
+again debianized by Thierry Reding <thierry@gilfi.de> on Sat, 14 Oct 2006
+02:01:12 +0200.
+
+It was downloaded from http://www.mesa3d.org/download.html
+
+For more information see:
+
+  http://www.mesa3d.org/
+
+-------------------------------------------------------------------------------
+The Mesa distribution consists of several components. Different copyrights and
+licenses apply to different components. For example, some demo programs are
+copyrighted by SGI, some of the Mesa device drivers are copyrighted by their
+authors. See below for a list of Mesa's main components and the license for
+each.
+
+The core Mesa library is licensed according to the terms of the MIT license.
+This allows integration with the XFree86, Xorg and DRI projects.
+
+The default Mesa license is as follows:
+
+Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
+
+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.
+
+Attention, Contributors
+
+When contributing to the Mesa project you must agree to the licensing terms of
+the component to which you're contributing. The following section lists the
+primary components of the Mesa distribution and their respective licenses.
+
+Mesa Component Licenses
+
+Component         Location               License
+------------------------------------------------------------------
+Main Mesa code    src/mesa/              Mesa (MIT)
+
+Device drivers    src/mesa/drivers/*     MIT, generally
+
+Ext headers       include/GL/glext.h     Khronos
+                  include/GL/glxext.h
+
+C11 thread        include/c11/threads*.h Boost (permissive)
+emulation
+
+In general, consult the source files for license terms.
+--------------------------------------------------------------------------------
+
+Khronos license:
+
+ Copyright (c) 2013-2015 The Khronos Group Inc.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and/or associated documentation files (the
+ "Materials"), to deal in the Materials without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Materials, and to
+ permit persons to whom the Materials are 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 Materials.
+
+ THE MATERIALS ARE 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
+ MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+
+Boost license:
+
+ (C) Copyright yohhoy 2012.
+ Distributed under the Boost Software License, Version 1.0.
+
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare [[derivative work]]s of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+
+ 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+
+SGI Free Software License B:
+
+ SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
+ Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
+
+ 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 including the dates of first publication and
+ either this permission notice or a reference to
+ http://oss.sgi.com/projects/FreeB/
+ 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
+ SILICON GRAPHICS, INC. 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.
+
+ Except as contained in this notice, the name of Silicon Graphics, Inc.
+ shall not be used in advertising or otherwise to promote the sale, use or
+ other dealings in this Software without prior written authorization from
+ Silicon Graphics, Inc.
+
+
+On Debian systems the full text of the GNU LGPL license is found in
+/usr/share/common-licenses/LGPL.
+
+------------------------------------------------------------------------------
+
+The Debian packaging is (C) 2006, Thierry Reding <thierry@gilfi.de> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- mesa-lts-xenial-11.2.0.orig/debian/gbp.conf
+++ mesa-lts-xenial-11.2.0/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+debian-branch=ubuntu
--- mesa-lts-xenial-11.2.0.orig/debian/git-cleanup.sh
+++ mesa-lts-xenial-11.2.0/debian/git-cleanup.sh
@@ -0,0 +1,75 @@
+#!/bin/sh
+# © 2011 Cyril Brulebois <kibi@debian.org>
+set -e
+
+### First phase, files known to make dpkg-source unhappy.
+
+# List broken symlinks:
+symlinks=$(find -type l)
+
+# Symlinks vs. directories:
+dirs_vs_symlinks=''
+
+# Modified binaries:
+binaries='
+src/gallium/state_trackers/d3d1x/progs/bin/d3d10tri.exe
+src/gallium/state_trackers/d3d1x/progs/bin/d3d11gears.exe
+src/gallium/state_trackers/d3d1x/progs/bin/d3d11spikysphere.exe
+src/gallium/state_trackers/d3d1x/progs/bin/d3d11tex.exe
+src/gallium/state_trackers/d3d1x/progs/bin/d3d11tri.exe
+src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-abs.png
+docs/gears.png
+'
+
+case $1 in
+  "")   clean=0; echo "I: No parameter given, listing only (-f to remove).";;
+  "-f") clean=1; echo "I: Removing files.";;
+  *)    clean=0; echo "I: Unknown parameter given, listing only (-f to remove).";;
+esac
+
+# Readibility:
+echo
+
+for x in $symlinks $dirs_vs_symlinks $binaries; do
+  # Do not fail if the file went away already, only warn:
+  if [ -e $x -o -L $x ]; then
+    if [ $clean = 1 ]; then
+      git rm $x
+    else
+      echo "I: Would remove $x"
+    fi
+  else
+   echo "W: Unable to remove non-existing: $x"
+  fi
+done
+
+### Second phase, kill all files in git not in the tarball
+version=$(dpkg-parsechangelog|awk '/Version: / {print $2}'|sed 's/-.*$//')
+tarball="../mesa_$version.orig.tar.gz"
+if [ ! -f $tarball ]; then
+  echo "E: Missing tarball ($tarball), you could use: uscan --download-current --rename"
+  exit 1
+fi
+
+# Be lazy for now, temporary files would be better:
+one=1
+two=2
+
+# Strip one directory, Mesa-$version/ is the top-level:
+tar tfz $tarball | sed 's,[^/]*/,,' | sort > $two
+# List all files known to git, except those under debian/:
+git ls-files | grep -v ^debian/ | sort > $one
+
+for x in $(diff -u $one $two|tail -n +3|grep ^-|sed 's/^-//'); do
+  if [ -e $x -o -L $x ]; then
+    if [ $clean = 1 ]; then
+      git rm $x
+    else
+      echo "I: Would remove $x"
+    fi
+  else
+    echo "W: Unable to remove non-existing: $x (maybe gone during 1st phase)"
+  fi
+done
+
+rm $one $two
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-dev-lts-xenial.install.in
@@ -0,0 +1,5 @@
+# This file gets tweaked in an os-specific fashion (see libegl1-mesa-dev.install.linux.in)
+usr/lib/${DEB_HOST_MULTIARCH}/libEGL.so usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
+usr/include/EGL usr/include
+usr/include/KHR usr/include
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/egl.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-dev-lts-xenial.install.linux.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-dev-lts-xenial.install.linux.in
@@ -0,0 +1,9 @@
+# OS-independent part (from libegl1-mesa-dev.install.in):
+usr/lib/${DEB_HOST_MULTIARCH}/libEGL.so usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
+usr/include/EGL usr/include
+usr/include/KHR usr/include
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/egl.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
+
+# Wayland support, only on Linux:
+usr/lib/${DEB_HOST_MULTIARCH}/libwayland-egl.so usr/lib/${DEB_HOST_MULTIARCH}
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/wayland-egl.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-dev-lts-xenial.links.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-dev-lts-xenial.links.in
@@ -0,0 +1 @@
+/usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/libEGL.so /usr/lib/${DEB_HOST_MULTIARCH}/libEGL.so
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libEGL.so.1* usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libEGL1
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-lts-xenial.postinst.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-lts-xenial.postinst.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+THIS_PACKAGE=libegl1-mesa
+THIS_SCRIPT=postinst
+
+case "$1" in
+  configure)
+  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
+  update-alternatives --force \
+    --install /etc/ld.so.conf.d/${DEB_HOST_MULTIARCH}_EGL.conf ${DEB_HOST_MULTIARCH}_egl_conf /usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/ld.so.conf 500 \
+
+  # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
+  # alternatives.
+  LDCONFIG_NOTRIGGER=y ldconfig
+
+esac
+
+#DEBHELPER#
+
+exit 0
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-lts-xenial.prerm.in
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-lts-xenial.prerm.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+THIS_PACKAGE=libegl1-mesa
+THIS_SCRIPT=prerm
+
+case "$1" in
+  remove)
+  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
+  update-alternatives --remove ${DEB_HOST_MULTIARCH}_egl_conf /usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/ld.so.conf
+
+  # explicit ldconfig due to alternatives
+  ldconfig
+
+esac
+
+#DEBHELPER#
+
+exit 0
--- mesa-lts-xenial-11.2.0.orig/debian/libegl1-mesa-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libegl1-mesa-lts-xenial.symbols
@@ -0,0 +1,46 @@
+libEGL.so.1 libegl1-mesa-lts-xenial #MINVER# | libegl1-x11
+ eglBindAPI@Base 7.8.1
+ eglBindTexImage@Base 7.8.1
+ eglChooseConfig@Base 7.8.1
+ eglClientWaitSync@Base 10.7.0~
+ eglCopyBuffers@Base 7.8.1
+ eglCreateContext@Base 7.8.1
+ eglCreateImage@Base 10.7.0~
+ eglCreatePbufferFromClientBuffer@Base 7.8.1
+ eglCreatePbufferSurface@Base 7.8.1
+ eglCreatePixmapSurface@Base 7.8.1
+ eglCreatePlatformPixmapSurface@Base 10.7.0~
+ eglCreatePlatformWindowSurface@Base 10.7.0~
+ eglCreateSync@Base 10.7.0~
+ eglCreateWindowSurface@Base 7.8.1
+ eglDestroyContext@Base 7.8.1
+ eglDestroyImage@Base 10.7.0~
+ eglDestroySurface@Base 7.8.1
+ eglDestroySync@Base 10.7.0~
+ eglGetConfigAttrib@Base 7.8.1
+ eglGetConfigs@Base 7.8.1
+ eglGetCurrentContext@Base 7.8.1
+ eglGetCurrentDisplay@Base 7.8.1
+ eglGetCurrentSurface@Base 7.8.1
+ eglGetDisplay@Base 7.8.1
+ eglGetError@Base 7.8.1
+ eglGetPlatformDisplay@Base 10.7.0~
+ eglGetProcAddress@Base 7.8.1
+ eglGetSyncAttrib@Base 10.7.0~
+ eglInitialize@Base 7.8.1
+ eglMakeCurrent@Base 7.8.1
+ eglQueryAPI@Base 7.8.1
+ eglQueryContext@Base 7.8.1
+ eglQueryString@Base 7.8.1
+ eglQuerySurface@Base 7.8.1
+ eglReleaseTexImage@Base 7.8.1
+ eglReleaseThread@Base 7.8.1
+ eglSurfaceAttrib@Base 7.8.1
+ eglSwapBuffers@Base 7.8.1
+ eglSwapInterval@Base 7.8.1
+ eglTerminate@Base 7.8.1
+ eglWaitClient@Base 7.8.1
+ eglWaitGL@Base 7.8.1
+ eglWaitNative@Base 7.8.1
+ eglWaitSync@Base 10.7.0~
+ (arch=linux-any)wl_drm_interface@Base 8.0-2~
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgbm-dev-lts-xenial.install.in
@@ -0,0 +1,3 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libgbm.so
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/gbm.pc
+usr/include/gbm.h
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm1-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgbm1-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libgbm.so.1*
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm1-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libgbm1-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+symbols-declares-dependency-on-other-package libgbm1-private
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm1-lts-xenial.postrm.in
+++ mesa-lts-xenial-11.2.0/debian/libgbm1-lts-xenial.postrm.in
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+set -e
+
+dir=/usr/lib/${DEB_HOST_MULTIARCH}
+pkg=$(dpkg-divert --listpackage "${dir}/libgbm.so.1.0.0")
+
+if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/old.libgbm.so.1.0.0" "${dir}/libgbm.so.1.0.0"
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/old.libgbm.so.1" "${dir}/libgbm.so.1"
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/gbm/old.gbm_gallium_drm.so" "${dir}/gbm/gbm_gallium_drm.so"
+fi
+
+#DEBHELPER#
+
+exit 0
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm1-lts-xenial.preinst.in
+++ mesa-lts-xenial-11.2.0/debian/libgbm1-lts-xenial.preinst.in
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+set -e
+
+dir=/usr/lib/${DEB_HOST_MULTIARCH}
+pkg=$(dpkg-divert --listpackage "${dir}/libgbm.so.1.0.0")
+
+if [ -n "${pkg}" -a "${pkg}" != "libgbm1-lts-xenial" ]; then
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/old.libgbm.so.1.0.0" "${dir}/libgbm.so.1.0.0"
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/old.libgbm.so.1" "${dir}/libgbm.so.1"
+    dpkg-divert --remove --package ${pkg} --rename \
+        --divert "${dir}/gbm/old.gbm_gallium_drm.so" "${dir}/gbm/gbm_gallium_drm.so"
+    pkg=""
+fi
+
+if [ -z "${pkg}" ]; then
+    dpkg-divert --add --package "libgbm1-lts-xenial" --rename \
+        --divert "${dir}/old.libgbm.so.1.0.0" "${dir}/libgbm.so.1.0.0"
+    dpkg-divert --add --package "libgbm1-lts-xenial" --rename \
+        --divert "${dir}/old.libgbm.so.1" "${dir}/libgbm.so.1"
+    dpkg-divert --add --package "libgbm1-lts-xenial" --rename \
+        --divert "${dir}/gbm/old.gbm_gallium_drm.so" "${dir}/gbm/gbm_gallium_drm.so"
+fi
+
+#DEBHELPER#
+
+exit 0
--- mesa-lts-xenial-11.2.0.orig/debian/libgbm1-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libgbm1-lts-xenial.symbols
@@ -0,0 +1,28 @@
+libgbm.so.1 libgbm1-lts-xenial #MINVER#
+| libgbm1-private
+ gbm_bo_create@Base 7.11~1
+ gbm_bo_destroy@Base 7.11~1
+ gbm_bo_get_device@Base 8.1~0
+ gbm_bo_get_fd@Base 10.2~0
+ gbm_bo_get_format@Base 8.1~0
+ gbm_bo_get_handle@Base 7.11~1
+ gbm_bo_get_height@Base 7.11~1
+ gbm_bo_get_stride@Base 8.1~0
+ gbm_bo_get_user_data@Base 8.1~0
+ gbm_bo_get_width@Base 7.11~1
+ gbm_bo_import@Base 8.1~0
+ gbm_bo_set_user_data@Base 8.1~0
+ gbm_bo_write@Base 8.1~0
+ gbm_create_device@Base 7.11~1
+ gbm_device_destroy@Base 7.11~1
+ gbm_device_get_backend_name@Base 7.11~1
+ gbm_device_get_fd@Base 7.11~1
+ gbm_device_is_format_supported@Base 8.1~0
+ gbm_surface_create@Base 8.1~0
+ gbm_surface_destroy@Base 8.1~0
+ gbm_surface_has_free_buffers@Base 8.1~0
+ gbm_surface_lock_front_buffer@Base 8.1~0
+ gbm_surface_release_buffer@Base 8.1~0
+# stupid side effect of code generation from
+# src/egl/wayland/wayland-drm/wayland-drm.xml which ought to be private.
+ (arch=linux-any)wl_drm_interface@Base 0 1
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-dev-lts-xenial.install.in
@@ -0,0 +1,3 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGL.so usr/lib/${DEB_HOST_MULTIARCH}/mesa
+usr/lib/${DEB_HOST_MULTIARCH}/libglapi.so usr/lib/${DEB_HOST_MULTIARCH}
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/gl.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-dev-lts-xenial.links.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-dev-lts-xenial.links.in
@@ -0,0 +1 @@
+/usr/lib/${DEB_HOST_MULTIARCH}/mesa/libGL.so /usr/lib/${DEB_HOST_MULTIARCH}/libGL.so
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-dri-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-dri-lts-xenial.install.in
@@ -0,0 +1 @@
+etc/drirc
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-glx-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-glx-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGL.so.* usr/lib/${DEB_HOST_MULTIARCH}/mesa
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-glx-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-glx-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libGL1
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-glx-lts-xenial.postinst.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-glx-lts-xenial.postinst.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+THIS_PACKAGE=libgl1-mesa-glx
+THIS_SCRIPT=postinst
+
+case "$1" in
+  configure)
+  # on upgrade from previous versions, clean up our non-arch-qualified
+  # alternative
+  if dpkg --compare-versions "$2" lt-nl 7.10.3-0ubuntu1; then
+    update-alternatives --remove gl_conf /usr/lib/mesa/ld.so.conf
+  fi
+  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
+  update-alternatives --force \
+    --install /etc/ld.so.conf.d/${DEB_HOST_MULTIARCH}_GL.conf ${DEB_HOST_MULTIARCH}_gl_conf /usr/lib/${DEB_HOST_MULTIARCH}/mesa/ld.so.conf 500 \
+    --slave /usr/lib/${DEB_HOST_MULTIARCH}/xorg/extra-modules ${DEB_HOST_MULTIARCH}_xorg_extra_modules /usr/lib/${DEB_HOST_MULTIARCH}/xorg/x11-extra-modules
+
+  # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
+  # alternatives.
+  LDCONFIG_NOTRIGGER=y ldconfig
+
+esac
+
+#DEBHELPER#
+
+exit 0
+
+# vim:set ai et sw=2 ts=2 tw=80:
+
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-glx-lts-xenial.prerm.in
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-glx-lts-xenial.prerm.in
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+THIS_PACKAGE=libgl1-mesa-glx
+THIS_SCRIPT=prerm
+
+case "$1" in
+  remove)
+  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
+  update-alternatives --remove ${DEB_HOST_MULTIARCH}_gl_conf /usr/lib/${DEB_HOST_MULTIARCH}/mesa/ld.so.conf
+
+  # explicit ldconfig due to alternatives
+  ldconfig
+
+esac
+
+#DEBHELPER#
+
+exit 0
+
+# vim:set ai et sw=2 ts=2 tw=80:
+
--- mesa-lts-xenial-11.2.0.orig/debian/libgl1-mesa-glx-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libgl1-mesa-glx-lts-xenial.symbols
@@ -0,0 +1,1292 @@
+libGL.so.1 libgl1-mesa-glx-lts-xenial | libgl1
+ glAccum@Base 0
+ glActiveTexture@Base 0
+ glActiveTextureARB@Base 0
+ glAlphaFunc@Base 0
+ glAlphaFuncx@Base 0
+ glAreTexturesResident@Base 0
+ glAreTexturesResidentEXT@Base 0
+ glArrayElement@Base 0
+ glArrayElementEXT@Base 0
+ glAttachObjectARB@Base 0
+ glAttachShader@Base 0
+ glBegin@Base 0
+ glBeginConditionalRender@Base 0
+ glBeginConditionalRenderNV@Base 0
+ glBeginQuery@Base 0
+ glBeginQueryARB@Base 0
+ glBeginQueryIndexed@Base 0
+ glBeginTransformFeedback@Base 0
+ glBindAttribLocation@Base 0
+ glBindAttribLocationARB@Base 0
+ glBindBuffer@Base 0
+ glBindBufferARB@Base 0
+ glBindBufferBase@Base 0
+ glBindBufferRange@Base 0
+ glBindBuffersBase@Base 0
+ glBindBuffersRange@Base 0
+ glBindFragDataLocation@Base 0
+ glBindFragDataLocationEXT@Base 0
+ glBindFragDataLocationIndexed@Base 0
+ glBindFramebuffer@Base 0
+ glBindFramebufferEXT@Base 0
+ glBindImageTexture@Base 0
+ glBindImageTextures@Base 0
+ glBindProgramARB@Base 0
+ glBindRenderbuffer@Base 0
+ glBindRenderbufferEXT@Base 0
+ glBindSampler@Base 0
+ glBindSamplers@Base 0
+ glBindTexture@Base 0
+ glBindTextureEXT@Base 0
+ glBindTextures@Base 0
+ glBindTransformFeedback@Base 0
+ glBindVertexArray@Base 0
+ glBindVertexBuffer@Base 0
+ glBindVertexBuffers@Base 0
+ glBitmap@Base 0
+ glBlendColor@Base 0
+ glBlendColorEXT@Base 0
+ glBlendEquation@Base 0
+ glBlendEquationEXT@Base 0
+ glBlendEquationSeparate@Base 0
+ glBlendEquationSeparateiARB@Base 0
+ glBlendEquationiARB@Base 0
+ glBlendFunc@Base 0
+ glBlendFuncSeparate@Base 0
+ glBlendFuncSeparateEXT@Base 0
+ glBlendFuncSeparateiARB@Base 0
+ glBlendFunciARB@Base 0
+ glBlitFramebuffer@Base 0
+ glBufferData@Base 0
+ glBufferDataARB@Base 0
+ glBufferStorage@Base 0
+ glBufferSubData@Base 0
+ glBufferSubDataARB@Base 0
+ glCallList@Base 0
+ glCallLists@Base 0
+ glCheckFramebufferStatus@Base 0
+ glCheckFramebufferStatusEXT@Base 0
+ glClampColor@Base 0
+ glClampColorARB@Base 0
+ glClear@Base 0
+ glClearAccum@Base 0
+ glClearBufferData@Base 0
+ glClearBufferSubData@Base 0
+ glClearBufferfi@Base 0
+ glClearBufferfv@Base 0
+ glClearBufferiv@Base 0
+ glClearBufferuiv@Base 0
+ glClearColor@Base 0
+ glClearColorIiEXT@Base 0
+ glClearColorIuiEXT@Base 0
+ glClearColorx@Base 0
+ glClearDepth@Base 0
+ glClearDepthf@Base 0
+ glClearDepthx@Base 0
+ glClearIndex@Base 0
+ glClearStencil@Base 0
+ glClearTexImage@Base 0
+ glClearTexSubImage@Base 0
+ glClientActiveTexture@Base 0
+ glClientActiveTextureARB@Base 0
+ glClientWaitSync@Base 0
+ glClipPlane@Base 0
+ glClipPlanef@Base 0
+ glClipPlanex@Base 0
+ glColor3b@Base 0
+ glColor3bv@Base 0
+ glColor3d@Base 0
+ glColor3dv@Base 0
+ glColor3f@Base 0
+ glColor3fv@Base 0
+ glColor3i@Base 0
+ glColor3iv@Base 0
+ glColor3s@Base 0
+ glColor3sv@Base 0
+ glColor3ub@Base 0
+ glColor3ubv@Base 0
+ glColor3ui@Base 0
+ glColor3uiv@Base 0
+ glColor3us@Base 0
+ glColor3usv@Base 0
+ glColor4b@Base 0
+ glColor4bv@Base 0
+ glColor4d@Base 0
+ glColor4dv@Base 0
+ glColor4f@Base 0
+ glColor4fv@Base 0
+ glColor4i@Base 0
+ glColor4iv@Base 0
+ glColor4s@Base 0
+ glColor4sv@Base 0
+ glColor4ub@Base 0
+ glColor4ubv@Base 0
+ glColor4ui@Base 0
+ glColor4uiv@Base 0
+ glColor4us@Base 0
+ glColor4usv@Base 0
+ glColor4x@Base 0
+ glColorMask@Base 0
+ glColorMaskIndexedEXT@Base 0
+ glColorMaski@Base 0
+ glColorMaterial@Base 0
+ glColorP3ui@Base 0
+ glColorP3uiv@Base 0
+ glColorP4ui@Base 0
+ glColorP4uiv@Base 0
+ glColorPointer@Base 0
+ glColorPointerEXT@Base 0
+ glColorSubTable@Base 0
+ glColorTable@Base 0
+ glColorTableParameterfv@Base 0
+ glColorTableParameteriv@Base 0
+ glCompileShader@Base 0
+ glCompileShaderARB@Base 0
+ glCompressedTexImage1D@Base 0
+ glCompressedTexImage1DARB@Base 0
+ glCompressedTexImage2D@Base 0
+ glCompressedTexImage2DARB@Base 0
+ glCompressedTexImage3D@Base 0
+ glCompressedTexImage3DARB@Base 0
+ glCompressedTexSubImage1D@Base 0
+ glCompressedTexSubImage1DARB@Base 0
+ glCompressedTexSubImage2D@Base 0
+ glCompressedTexSubImage2DARB@Base 0
+ glCompressedTexSubImage3D@Base 0
+ glCompressedTexSubImage3DARB@Base 0
+ glConvolutionFilter1D@Base 0
+ glConvolutionFilter2D@Base 0
+ glConvolutionParameterf@Base 0
+ glConvolutionParameterfv@Base 0
+ glConvolutionParameteri@Base 0
+ glConvolutionParameteriv@Base 0
+ glCopyBufferSubData@Base 0
+ glCopyColorSubTable@Base 0
+ glCopyColorTable@Base 0
+ glCopyConvolutionFilter1D@Base 0
+ glCopyConvolutionFilter2D@Base 0
+ glCopyImageSubData@Base 0
+ glCopyPixels@Base 0
+ glCopyTexImage1D@Base 0
+ glCopyTexImage2D@Base 0
+ glCopyTexSubImage1D@Base 0
+ glCopyTexSubImage2D@Base 0
+ glCopyTexSubImage3D@Base 0
+ glCopyTexSubImage3DEXT@Base 0
+ glCreateProgram@Base 0
+ glCreateProgramObjectARB@Base 0
+ glCreateShader@Base 0
+ glCreateShaderObjectARB@Base 0
+ glCullFace@Base 0
+ glDebugMessageCallback@Base 0
+ glDebugMessageCallbackARB@Base 0
+ glDebugMessageControl@Base 0
+ glDebugMessageControlARB@Base 0
+ glDebugMessageInsert@Base 0
+ glDebugMessageInsertARB@Base 0
+ glDeleteBuffers@Base 0
+ glDeleteBuffersARB@Base 0
+ glDeleteFramebuffers@Base 0
+ glDeleteFramebuffersEXT@Base 0
+ glDeleteLists@Base 0
+ glDeleteObjectARB@Base 0
+ glDeleteProgram@Base 0
+ glDeleteProgramsARB@Base 0
+ glDeleteQueries@Base 0
+ glDeleteQueriesARB@Base 0
+ glDeleteRenderbuffers@Base 0
+ glDeleteRenderbuffersEXT@Base 0
+ glDeleteSamplers@Base 0
+ glDeleteShader@Base 0
+ glDeleteSync@Base 0
+ glDeleteTextures@Base 0
+ glDeleteTexturesEXT@Base 0
+ glDeleteTransformFeedbacks@Base 0
+ glDeleteVertexArrays@Base 0
+ glDepthFunc@Base 0
+ glDepthMask@Base 0
+ glDepthRange@Base 0
+ glDepthRangeArrayv@Base 0
+ glDepthRangeIndexed@Base 0
+ glDepthRangef@Base 0
+ glDepthRangex@Base 0
+ glDetachObjectARB@Base 0
+ glDetachShader@Base 0
+ glDisable@Base 0
+ glDisableClientState@Base 0
+ glDisableIndexedEXT@Base 0
+ glDisableVertexAttribArray@Base 0
+ glDisableVertexAttribArrayARB@Base 0
+ glDisablei@Base 0
+ glDispatchCompute@Base 0
+ glDispatchComputeIndirect@Base 0
+ glDrawArrays@Base 0
+ glDrawArraysEXT@Base 0
+ glDrawArraysIndirect@Base 0
+ glDrawArraysInstanced@Base 0
+ glDrawArraysInstancedARB@Base 0
+ glDrawArraysInstancedBaseInstance@Base 0
+ glDrawArraysInstancedEXT@Base 0
+ glDrawBuffer@Base 0
+ glDrawBuffers@Base 0
+ glDrawBuffersARB@Base 0
+ glDrawBuffersATI@Base 0
+ glDrawElements@Base 0
+ glDrawElementsBaseVertex@Base 0
+ glDrawElementsIndirect@Base 0
+ glDrawElementsInstanced@Base 0
+ glDrawElementsInstancedARB@Base 0
+ glDrawElementsInstancedBaseInstance@Base 0
+ glDrawElementsInstancedBaseVertex@Base 0
+ glDrawElementsInstancedBaseVertexBaseInstance@Base 0
+ glDrawElementsInstancedEXT@Base 0
+ glDrawPixels@Base 0
+ glDrawRangeElements@Base 0
+ glDrawRangeElementsBaseVertex@Base 0
+ glDrawRangeElementsEXT@Base 0
+ glDrawTransformFeedback@Base 0
+ glDrawTransformFeedbackInstanced@Base 0
+ glDrawTransformFeedbackStream@Base 0
+ glDrawTransformFeedbackStreamInstanced@Base 0
+ glEdgeFlag@Base 0
+ glEdgeFlagPointer@Base 0
+ glEdgeFlagPointerEXT@Base 0
+ glEdgeFlagv@Base 0
+ glEnable@Base 0
+ glEnableClientState@Base 0
+ glEnableIndexedEXT@Base 0
+ glEnableVertexAttribArray@Base 0
+ glEnableVertexAttribArrayARB@Base 0
+ glEnablei@Base 0
+ glEnd@Base 0
+ glEndConditionalRender@Base 0
+ glEndConditionalRenderNV@Base 0
+ glEndList@Base 0
+ glEndQuery@Base 0
+ glEndQueryARB@Base 0
+ glEndQueryIndexed@Base 0
+ glEndTransformFeedback@Base 0
+ glEvalCoord1d@Base 0
+ glEvalCoord1dv@Base 0
+ glEvalCoord1f@Base 0
+ glEvalCoord1fv@Base 0
+ glEvalCoord2d@Base 0
+ glEvalCoord2dv@Base 0
+ glEvalCoord2f@Base 0
+ glEvalCoord2fv@Base 0
+ glEvalMesh1@Base 0
+ glEvalMesh2@Base 0
+ glEvalPoint1@Base 0
+ glEvalPoint2@Base 0
+ glFeedbackBuffer@Base 0
+ glFenceSync@Base 0
+ glFinish@Base 0
+ glFlush@Base 0
+ glFlushMappedBufferRange@Base 0
+ glFogCoordPointer@Base 0
+ glFogCoordPointerEXT@Base 0
+ glFogCoordd@Base 0
+ glFogCoorddEXT@Base 0
+ glFogCoorddv@Base 0
+ glFogCoorddvEXT@Base 0
+ glFogCoordf@Base 0
+ glFogCoordfEXT@Base 0
+ glFogCoordfv@Base 0
+ glFogCoordfvEXT@Base 0
+ glFogf@Base 0
+ glFogfv@Base 0
+ glFogi@Base 0
+ glFogiv@Base 0
+ glFogx@Base 0
+ glFogxv@Base 0
+ glFramebufferRenderbuffer@Base 0
+ glFramebufferRenderbufferEXT@Base 0
+ glFramebufferTexture1D@Base 0
+ glFramebufferTexture1DEXT@Base 0
+ glFramebufferTexture2D@Base 0
+ glFramebufferTexture2DEXT@Base 0
+ glFramebufferTexture3D@Base 0
+ glFramebufferTexture3DEXT@Base 0
+ glFramebufferTexture@Base 0
+ glFramebufferTextureLayer@Base 0
+ glFramebufferTextureLayerEXT@Base 0
+ glFrontFace@Base 0
+ glFrustum@Base 0
+ glFrustumf@Base 0
+ glFrustumx@Base 0
+ glGenBuffers@Base 0
+ glGenBuffersARB@Base 0
+ glGenFramebuffers@Base 0
+ glGenFramebuffersEXT@Base 0
+ glGenLists@Base 0
+ glGenProgramsARB@Base 0
+ glGenQueries@Base 0
+ glGenQueriesARB@Base 0
+ glGenRenderbuffers@Base 0
+ glGenRenderbuffersEXT@Base 0
+ glGenSamplers@Base 0
+ glGenTextures@Base 0
+ glGenTexturesEXT@Base 0
+ glGenTransformFeedbacks@Base 0
+ glGenVertexArrays@Base 0
+ glGenerateMipmap@Base 0
+ glGenerateMipmapEXT@Base 0
+ glGetActiveAtomicCounterBufferiv@Base 0
+ glGetActiveAttrib@Base 0
+ glGetActiveAttribARB@Base 0
+ glGetActiveUniform@Base 0
+ glGetActiveUniformARB@Base 0
+ glGetActiveUniformBlockName@Base 0
+ glGetActiveUniformBlockiv@Base 0
+ glGetActiveUniformName@Base 0
+ glGetActiveUniformsiv@Base 0
+ glGetAttachedObjectsARB@Base 0
+ glGetAttachedShaders@Base 0
+ glGetAttribLocation@Base 0
+ glGetAttribLocationARB@Base 0
+ glGetBooleanIndexedvEXT@Base 0
+ glGetBooleani_v@Base 0
+ glGetBooleanv@Base 0
+ glGetBufferParameteri64v@Base 0
+ glGetBufferParameteriv@Base 0
+ glGetBufferParameterivARB@Base 0
+ glGetBufferPointerv@Base 0
+ glGetBufferPointervARB@Base 0
+ glGetBufferSubData@Base 0
+ glGetBufferSubDataARB@Base 0
+ glGetClipPlane@Base 0
+ glGetClipPlanef@Base 0
+ glGetClipPlanex@Base 0
+ glGetColorTable@Base 0
+ glGetColorTableParameterfv@Base 0
+ glGetColorTableParameteriv@Base 0
+ glGetCompressedTexImage@Base 0
+ glGetCompressedTexImageARB@Base 0
+ glGetConvolutionFilter@Base 0
+ glGetConvolutionParameterfv@Base 0
+ glGetConvolutionParameteriv@Base 0
+ glGetDebugMessageLog@Base 0
+ glGetDebugMessageLogARB@Base 0
+ glGetDoublei_v@Base 0
+ glGetDoublev@Base 0
+ glGetError@Base 0
+ glGetFixedv@Base 0
+ glGetFloati_v@Base 0
+ glGetFloatv@Base 0
+ glGetFragDataIndex@Base 0
+ glGetFragDataLocation@Base 0
+ glGetFragDataLocationEXT@Base 0
+ glGetFramebufferAttachmentParameteriv@Base 0
+ glGetFramebufferAttachmentParameterivEXT@Base 0
+ glGetGraphicsResetStatusARB@Base 0
+ glGetHandleARB@Base 0
+ glGetHistogram@Base 0
+ glGetHistogramParameterfv@Base 0
+ glGetHistogramParameteriv@Base 0
+ glGetInfoLogARB@Base 0
+ glGetInteger64i_v@Base 0
+ glGetInteger64v@Base 0
+ glGetIntegerIndexedvEXT@Base 0
+ glGetIntegeri_v@Base 0
+ glGetIntegerv@Base 0
+ glGetLightfv@Base 0
+ glGetLightiv@Base 0
+ glGetLightxv@Base 0
+ glGetMapdv@Base 0
+ glGetMapfv@Base 0
+ glGetMapiv@Base 0
+ glGetMaterialfv@Base 0
+ glGetMaterialiv@Base 0
+ glGetMaterialxv@Base 0
+ glGetMinmax@Base 0
+ glGetMinmaxParameterfv@Base 0
+ glGetMinmaxParameteriv@Base 0
+ glGetMultisamplefv@Base 0
+ glGetObjectLabel@Base 0
+ glGetObjectParameterfvARB@Base 0
+ glGetObjectParameterivARB@Base 0
+ glGetObjectPtrLabel@Base 0
+ glGetPixelMapfv@Base 0
+ glGetPixelMapuiv@Base 0
+ glGetPixelMapusv@Base 0
+ glGetPointerv@Base 0
+ glGetPointervEXT@Base 0
+ glGetPolygonStipple@Base 0
+ glGetProgramBinary@Base 0
+ glGetProgramEnvParameterdvARB@Base 0
+ glGetProgramEnvParameterfvARB@Base 0
+ glGetProgramInfoLog@Base 0
+ glGetProgramLocalParameterdvARB@Base 0
+ glGetProgramLocalParameterfvARB@Base 0
+ glGetProgramStringARB@Base 0
+ glGetProgramiv@Base 0
+ glGetProgramivARB@Base 0
+ glGetQueryIndexediv@Base 0
+ glGetQueryObjectiv@Base 0
+ glGetQueryObjectivARB@Base 0
+ glGetQueryObjectuiv@Base 0
+ glGetQueryObjectuivARB@Base 0
+ glGetQueryiv@Base 0
+ glGetQueryivARB@Base 0
+ glGetRenderbufferParameteriv@Base 0
+ glGetRenderbufferParameterivEXT@Base 0
+ glGetSamplerParameterIiv@Base 0
+ glGetSamplerParameterIuiv@Base 0
+ glGetSamplerParameterfv@Base 0
+ glGetSamplerParameteriv@Base 0
+ glGetSeparableFilter@Base 0
+ glGetShaderInfoLog@Base 0
+ glGetShaderPrecisionFormat@Base 0
+ glGetShaderSource@Base 0
+ glGetShaderSourceARB@Base 0
+ glGetShaderiv@Base 0
+ glGetString@Base 0
+ glGetStringi@Base 0
+ glGetSynciv@Base 0
+ glGetTexEnvfv@Base 0
+ glGetTexEnviv@Base 0
+ glGetTexEnvxv@Base 0
+ glGetTexGendv@Base 0
+ glGetTexGenfv@Base 0
+ glGetTexGeniv@Base 0
+ glGetTexImage@Base 0
+ glGetTexLevelParameterfv@Base 0
+ glGetTexLevelParameteriv@Base 0
+ glGetTexParameterIiv@Base 0
+ glGetTexParameterIivEXT@Base 0
+ glGetTexParameterIuiv@Base 0
+ glGetTexParameterIuivEXT@Base 0
+ glGetTexParameterfv@Base 0
+ glGetTexParameteriv@Base 0
+ glGetTexParameterxv@Base 0
+ glGetTransformFeedbackVarying@Base 0
+ glGetUniformBlockIndex@Base 0
+ glGetUniformIndices@Base 0
+ glGetUniformLocation@Base 0
+ glGetUniformLocationARB@Base 0
+ glGetUniformfv@Base 0
+ glGetUniformfvARB@Base 0
+ glGetUniformiv@Base 0
+ glGetUniformivARB@Base 0
+ glGetUniformuiv@Base 0
+ glGetUniformuivEXT@Base 0
+ glGetVertexAttribIiv@Base 0
+ glGetVertexAttribIivEXT@Base 0
+ glGetVertexAttribIuiv@Base 0
+ glGetVertexAttribIuivEXT@Base 0
+ glGetVertexAttribPointerv@Base 0
+ glGetVertexAttribPointervARB@Base 0
+ glGetVertexAttribdv@Base 0
+ glGetVertexAttribdvARB@Base 0
+ glGetVertexAttribfv@Base 0
+ glGetVertexAttribfvARB@Base 0
+ glGetVertexAttribiv@Base 0
+ glGetVertexAttribivARB@Base 0
+ glGetnColorTableARB@Base 0
+ glGetnCompressedTexImageARB@Base 0
+ glGetnConvolutionFilterARB@Base 0
+ glGetnHistogramARB@Base 0
+ glGetnMapdvARB@Base 0
+ glGetnMapfvARB@Base 0
+ glGetnMapivARB@Base 0
+ glGetnMinmaxARB@Base 0
+ glGetnPixelMapfvARB@Base 0
+ glGetnPixelMapuivARB@Base 0
+ glGetnPixelMapusvARB@Base 0
+ glGetnPolygonStippleARB@Base 0
+ glGetnSeparableFilterARB@Base 0
+ glGetnTexImageARB@Base 0
+ glGetnUniformdvARB@Base 0
+ glGetnUniformfvARB@Base 0
+ glGetnUniformivARB@Base 0
+ glGetnUniformuivARB@Base 0
+ glHint@Base 0
+ glHistogram@Base 0
+ glIndexMask@Base 0
+ glIndexPointer@Base 0
+ glIndexPointerEXT@Base 0
+ glIndexd@Base 0
+ glIndexdv@Base 0
+ glIndexf@Base 0
+ glIndexfv@Base 0
+ glIndexi@Base 0
+ glIndexiv@Base 0
+ glIndexs@Base 0
+ glIndexsv@Base 0
+ glIndexub@Base 0
+ glIndexubv@Base 0
+ glInitNames@Base 0
+ glInterleavedArrays@Base 0
+ glInvalidateBufferData@Base 0
+ glInvalidateBufferSubData@Base 0
+ glInvalidateFramebuffer@Base 0
+ glInvalidateSubFramebuffer@Base 0
+ glInvalidateTexImage@Base 0
+ glInvalidateTexSubImage@Base 0
+ glIsBuffer@Base 0
+ glIsBufferARB@Base 0
+ glIsEnabled@Base 0
+ glIsEnabledIndexedEXT@Base 0
+ glIsEnabledi@Base 0
+ glIsFramebuffer@Base 0
+ glIsFramebufferEXT@Base 0
+ glIsList@Base 0
+ glIsProgram@Base 0
+ glIsProgramARB@Base 0
+ glIsQuery@Base 0
+ glIsQueryARB@Base 0
+ glIsRenderbuffer@Base 0
+ glIsRenderbufferEXT@Base 0
+ glIsSampler@Base 0
+ glIsShader@Base 0
+ glIsSync@Base 0
+ glIsTexture@Base 0
+ glIsTextureEXT@Base 0
+ glIsTransformFeedback@Base 0
+ glIsVertexArray@Base 0
+ glLightModelf@Base 0
+ glLightModelfv@Base 0
+ glLightModeli@Base 0
+ glLightModeliv@Base 0
+ glLightModelx@Base 0
+ glLightModelxv@Base 0
+ glLightf@Base 0
+ glLightfv@Base 0
+ glLighti@Base 0
+ glLightiv@Base 0
+ glLightx@Base 0
+ glLightxv@Base 0
+ glLineStipple@Base 0
+ glLineWidth@Base 0
+ glLineWidthx@Base 0
+ glLinkProgram@Base 0
+ glLinkProgramARB@Base 0
+ glListBase@Base 0
+ glLoadIdentity@Base 0
+ glLoadMatrixd@Base 0
+ glLoadMatrixf@Base 0
+ glLoadMatrixx@Base 0
+ glLoadName@Base 0
+ glLoadTransposeMatrixd@Base 0
+ glLoadTransposeMatrixdARB@Base 0
+ glLoadTransposeMatrixf@Base 0
+ glLoadTransposeMatrixfARB@Base 0
+ glLockArraysEXT@Base 0
+ glLogicOp@Base 0
+ glMap1d@Base 0
+ glMap1f@Base 0
+ glMap2d@Base 0
+ glMap2f@Base 0
+ glMapBuffer@Base 0
+ glMapBufferARB@Base 0
+ glMapBufferRange@Base 0
+ glMapGrid1d@Base 0
+ glMapGrid1f@Base 0
+ glMapGrid2d@Base 0
+ glMapGrid2f@Base 0
+ glMaterialf@Base 0
+ glMaterialfv@Base 0
+ glMateriali@Base 0
+ glMaterialiv@Base 0
+ glMaterialx@Base 0
+ glMaterialxv@Base 0
+ glMatrixMode@Base 0
+ glMemoryBarrier@Base 0
+ glMinSampleShading@Base 0
+ glMinSampleShadingARB@Base 0
+ glMinmax@Base 0
+ glMultMatrixd@Base 0
+ glMultMatrixf@Base 0
+ glMultMatrixx@Base 0
+ glMultTransposeMatrixd@Base 0
+ glMultTransposeMatrixdARB@Base 0
+ glMultTransposeMatrixf@Base 0
+ glMultTransposeMatrixfARB@Base 0
+ glMultiDrawArrays@Base 0
+ glMultiDrawArraysEXT@Base 0
+ glMultiDrawArraysIndirect@Base 0
+ glMultiDrawElements@Base 0
+ glMultiDrawElementsBaseVertex@Base 0
+ glMultiDrawElementsEXT@Base 0
+ glMultiDrawElementsIndirect@Base 0
+ glMultiTexCoord1d@Base 0
+ glMultiTexCoord1dARB@Base 0
+ glMultiTexCoord1dv@Base 0
+ glMultiTexCoord1dvARB@Base 0
+ glMultiTexCoord1f@Base 0
+ glMultiTexCoord1fARB@Base 0
+ glMultiTexCoord1fv@Base 0
+ glMultiTexCoord1fvARB@Base 0
+ glMultiTexCoord1i@Base 0
+ glMultiTexCoord1iARB@Base 0
+ glMultiTexCoord1iv@Base 0
+ glMultiTexCoord1ivARB@Base 0
+ glMultiTexCoord1s@Base 0
+ glMultiTexCoord1sARB@Base 0
+ glMultiTexCoord1sv@Base 0
+ glMultiTexCoord1svARB@Base 0
+ glMultiTexCoord2d@Base 0
+ glMultiTexCoord2dARB@Base 0
+ glMultiTexCoord2dv@Base 0
+ glMultiTexCoord2dvARB@Base 0
+ glMultiTexCoord2f@Base 0
+ glMultiTexCoord2fARB@Base 0
+ glMultiTexCoord2fv@Base 0
+ glMultiTexCoord2fvARB@Base 0
+ glMultiTexCoord2i@Base 0
+ glMultiTexCoord2iARB@Base 0
+ glMultiTexCoord2iv@Base 0
+ glMultiTexCoord2ivARB@Base 0
+ glMultiTexCoord2s@Base 0
+ glMultiTexCoord2sARB@Base 0
+ glMultiTexCoord2sv@Base 0
+ glMultiTexCoord2svARB@Base 0
+ glMultiTexCoord3d@Base 0
+ glMultiTexCoord3dARB@Base 0
+ glMultiTexCoord3dv@Base 0
+ glMultiTexCoord3dvARB@Base 0
+ glMultiTexCoord3f@Base 0
+ glMultiTexCoord3fARB@Base 0
+ glMultiTexCoord3fv@Base 0
+ glMultiTexCoord3fvARB@Base 0
+ glMultiTexCoord3i@Base 0
+ glMultiTexCoord3iARB@Base 0
+ glMultiTexCoord3iv@Base 0
+ glMultiTexCoord3ivARB@Base 0
+ glMultiTexCoord3s@Base 0
+ glMultiTexCoord3sARB@Base 0
+ glMultiTexCoord3sv@Base 0
+ glMultiTexCoord3svARB@Base 0
+ glMultiTexCoord4d@Base 0
+ glMultiTexCoord4dARB@Base 0
+ glMultiTexCoord4dv@Base 0
+ glMultiTexCoord4dvARB@Base 0
+ glMultiTexCoord4f@Base 0
+ glMultiTexCoord4fARB@Base 0
+ glMultiTexCoord4fv@Base 0
+ glMultiTexCoord4fvARB@Base 0
+ glMultiTexCoord4i@Base 0
+ glMultiTexCoord4iARB@Base 0
+ glMultiTexCoord4iv@Base 0
+ glMultiTexCoord4ivARB@Base 0
+ glMultiTexCoord4s@Base 0
+ glMultiTexCoord4sARB@Base 0
+ glMultiTexCoord4sv@Base 0
+ glMultiTexCoord4svARB@Base 0
+ glMultiTexCoord4x@Base 0
+ glMultiTexCoordP1ui@Base 0
+ glMultiTexCoordP1uiv@Base 0
+ glMultiTexCoordP2ui@Base 0
+ glMultiTexCoordP2uiv@Base 0
+ glMultiTexCoordP3ui@Base 0
+ glMultiTexCoordP3uiv@Base 0
+ glMultiTexCoordP4ui@Base 0
+ glMultiTexCoordP4uiv@Base 0
+ glNewList@Base 0
+ glNormal3b@Base 0
+ glNormal3bv@Base 0
+ glNormal3d@Base 0
+ glNormal3dv@Base 0
+ glNormal3f@Base 0
+ glNormal3fv@Base 0
+ glNormal3i@Base 0
+ glNormal3iv@Base 0
+ glNormal3s@Base 0
+ glNormal3sv@Base 0
+ glNormal3x@Base 0
+ glNormalP3ui@Base 0
+ glNormalP3uiv@Base 0
+ glNormalPointer@Base 0
+ glNormalPointerEXT@Base 0
+ glObjectLabel@Base 0
+ glObjectPtrLabel@Base 0
+ glOrtho@Base 0
+ glOrthof@Base 0
+ glOrthox@Base 0
+ glPassThrough@Base 0
+ glPauseTransformFeedback@Base 0
+ glPixelMapfv@Base 0
+ glPixelMapuiv@Base 0
+ glPixelMapusv@Base 0
+ glPixelStoref@Base 0
+ glPixelStorei@Base 0
+ glPixelTransferf@Base 0
+ glPixelTransferi@Base 0
+ glPixelZoom@Base 0
+ glPointParameterf@Base 0
+ glPointParameterfARB@Base 0
+ glPointParameterfEXT@Base 0
+ glPointParameterfv@Base 0
+ glPointParameterfvARB@Base 0
+ glPointParameterfvEXT@Base 0
+ glPointParameteri@Base 0
+ glPointParameteriv@Base 0
+ glPointParameterx@Base 0
+ glPointParameterxv@Base 0
+ glPointSize@Base 0
+ glPointSizePointerOES@Base 0
+ glPointSizex@Base 0
+ glPolygonMode@Base 0
+ glPolygonOffset@Base 0
+ glPolygonOffsetx@Base 0
+ glPolygonStipple@Base 0
+ glPopAttrib@Base 0
+ glPopClientAttrib@Base 0
+ glPopDebugGroup@Base 0
+ glPopMatrix@Base 0
+ glPopName@Base 0
+ glPrimitiveRestartIndex@Base 0
+ glPrimitiveRestartIndexNV@Base 0
+ glPrimitiveRestartNV@Base 0
+ glPrioritizeTextures@Base 0
+ glPrioritizeTexturesEXT@Base 0
+ glProgramBinary@Base 0
+ glProgramEnvParameter4dARB@Base 0
+ glProgramEnvParameter4dvARB@Base 0
+ glProgramEnvParameter4fARB@Base 0
+ glProgramEnvParameter4fvARB@Base 0
+ glProgramLocalParameter4dARB@Base 0
+ glProgramLocalParameter4dvARB@Base 0
+ glProgramLocalParameter4fARB@Base 0
+ glProgramLocalParameter4fvARB@Base 0
+ glProgramParameteri@Base 0
+ glProgramStringARB@Base 0
+ glProvokingVertex@Base 0
+ glProvokingVertexEXT@Base 0
+ glPushAttrib@Base 0
+ glPushClientAttrib@Base 0
+ glPushDebugGroup@Base 0
+ glPushMatrix@Base 0
+ glPushName@Base 0
+ glRasterPos2d@Base 0
+ glRasterPos2dv@Base 0
+ glRasterPos2f@Base 0
+ glRasterPos2fv@Base 0
+ glRasterPos2i@Base 0
+ glRasterPos2iv@Base 0
+ glRasterPos2s@Base 0
+ glRasterPos2sv@Base 0
+ glRasterPos3d@Base 0
+ glRasterPos3dv@Base 0
+ glRasterPos3f@Base 0
+ glRasterPos3fv@Base 0
+ glRasterPos3i@Base 0
+ glRasterPos3iv@Base 0
+ glRasterPos3s@Base 0
+ glRasterPos3sv@Base 0
+ glRasterPos4d@Base 0
+ glRasterPos4dv@Base 0
+ glRasterPos4f@Base 0
+ glRasterPos4fv@Base 0
+ glRasterPos4i@Base 0
+ glRasterPos4iv@Base 0
+ glRasterPos4s@Base 0
+ glRasterPos4sv@Base 0
+ glReadBuffer@Base 0
+ glReadPixels@Base 0
+ glReadnPixelsARB@Base 0
+ glRectd@Base 0
+ glRectdv@Base 0
+ glRectf@Base 0
+ glRectfv@Base 0
+ glRecti@Base 0
+ glRectiv@Base 0
+ glRects@Base 0
+ glRectsv@Base 0
+ glReleaseShaderCompiler@Base 0
+ glRenderMode@Base 0
+ glRenderbufferStorage@Base 0
+ glRenderbufferStorageEXT@Base 0
+ glRenderbufferStorageMultisample@Base 0
+ glRenderbufferStorageMultisampleEXT@Base 0
+ glResetHistogram@Base 0
+ glResetMinmax@Base 0
+ glResumeTransformFeedback@Base 0
+ glRotated@Base 0
+ glRotatef@Base 0
+ glRotatex@Base 0
+ glSampleCoverage@Base 0
+ glSampleCoverageARB@Base 0
+ glSampleCoveragex@Base 0
+ glSampleMaski@Base 0
+ glSamplerParameterIiv@Base 0
+ glSamplerParameterIuiv@Base 0
+ glSamplerParameterf@Base 0
+ glSamplerParameterfv@Base 0
+ glSamplerParameteri@Base 0
+ glSamplerParameteriv@Base 0
+ glScaled@Base 0
+ glScalef@Base 0
+ glScalex@Base 0
+ glScissor@Base 0
+ glScissorArrayv@Base 0
+ glScissorIndexed@Base 0
+ glScissorIndexedv@Base 0
+ glSecondaryColor3b@Base 0
+ glSecondaryColor3bEXT@Base 0
+ glSecondaryColor3bv@Base 0
+ glSecondaryColor3bvEXT@Base 0
+ glSecondaryColor3d@Base 0
+ glSecondaryColor3dEXT@Base 0
+ glSecondaryColor3dv@Base 0
+ glSecondaryColor3dvEXT@Base 0
+ glSecondaryColor3f@Base 0
+ glSecondaryColor3fEXT@Base 0
+ glSecondaryColor3fv@Base 0
+ glSecondaryColor3fvEXT@Base 0
+ glSecondaryColor3i@Base 0
+ glSecondaryColor3iEXT@Base 0
+ glSecondaryColor3iv@Base 0
+ glSecondaryColor3ivEXT@Base 0
+ glSecondaryColor3s@Base 0
+ glSecondaryColor3sEXT@Base 0
+ glSecondaryColor3sv@Base 0
+ glSecondaryColor3svEXT@Base 0
+ glSecondaryColor3ub@Base 0
+ glSecondaryColor3ubEXT@Base 0
+ glSecondaryColor3ubv@Base 0
+ glSecondaryColor3ubvEXT@Base 0
+ glSecondaryColor3ui@Base 0
+ glSecondaryColor3uiEXT@Base 0
+ glSecondaryColor3uiv@Base 0
+ glSecondaryColor3uivEXT@Base 0
+ glSecondaryColor3us@Base 0
+ glSecondaryColor3usEXT@Base 0
+ glSecondaryColor3usv@Base 0
+ glSecondaryColor3usvEXT@Base 0
+ glSecondaryColorP3ui@Base 0
+ glSecondaryColorP3uiv@Base 0
+ glSecondaryColorPointer@Base 0
+ glSecondaryColorPointerEXT@Base 0
+ glSelectBuffer@Base 0
+ glSeparableFilter2D@Base 0
+ glShadeModel@Base 0
+ glShaderBinary@Base 0
+ glShaderSource@Base 0
+ glShaderSourceARB@Base 0
+ glStencilFunc@Base 0
+ glStencilFuncSeparate@Base 0
+ glStencilMask@Base 0
+ glStencilMaskSeparate@Base 0
+ glStencilOp@Base 0
+ glStencilOpSeparate@Base 0
+ glTexBuffer@Base 0
+ glTexBufferARB@Base 0
+ glTexBufferRange@Base 0
+ glTexCoord1d@Base 0
+ glTexCoord1dv@Base 0
+ glTexCoord1f@Base 0
+ glTexCoord1fv@Base 0
+ glTexCoord1i@Base 0
+ glTexCoord1iv@Base 0
+ glTexCoord1s@Base 0
+ glTexCoord1sv@Base 0
+ glTexCoord2d@Base 0
+ glTexCoord2dv@Base 0
+ glTexCoord2f@Base 0
+ glTexCoord2fv@Base 0
+ glTexCoord2i@Base 0
+ glTexCoord2iv@Base 0
+ glTexCoord2s@Base 0
+ glTexCoord2sv@Base 0
+ glTexCoord3d@Base 0
+ glTexCoord3dv@Base 0
+ glTexCoord3f@Base 0
+ glTexCoord3fv@Base 0
+ glTexCoord3i@Base 0
+ glTexCoord3iv@Base 0
+ glTexCoord3s@Base 0
+ glTexCoord3sv@Base 0
+ glTexCoord4d@Base 0
+ glTexCoord4dv@Base 0
+ glTexCoord4f@Base 0
+ glTexCoord4fv@Base 0
+ glTexCoord4i@Base 0
+ glTexCoord4iv@Base 0
+ glTexCoord4s@Base 0
+ glTexCoord4sv@Base 0
+ glTexCoordP1ui@Base 0
+ glTexCoordP1uiv@Base 0
+ glTexCoordP2ui@Base 0
+ glTexCoordP2uiv@Base 0
+ glTexCoordP3ui@Base 0
+ glTexCoordP3uiv@Base 0
+ glTexCoordP4ui@Base 0
+ glTexCoordP4uiv@Base 0
+ glTexCoordPointer@Base 0
+ glTexCoordPointerEXT@Base 0
+ glTexEnvf@Base 0
+ glTexEnvfv@Base 0
+ glTexEnvi@Base 0
+ glTexEnviv@Base 0
+ glTexEnvx@Base 0
+ glTexEnvxv@Base 0
+ glTexGend@Base 0
+ glTexGendv@Base 0
+ glTexGenf@Base 0
+ glTexGenfv@Base 0
+ glTexGeni@Base 0
+ glTexGeniv@Base 0
+ glTexImage1D@Base 0
+ glTexImage2D@Base 0
+ glTexImage2DMultisample@Base 0
+ glTexImage3D@Base 0
+ glTexImage3DEXT@Base 0
+ glTexImage3DMultisample@Base 0
+ glTexParameterIiv@Base 0
+ glTexParameterIivEXT@Base 0
+ glTexParameterIuiv@Base 0
+ glTexParameterIuivEXT@Base 0
+ glTexParameterf@Base 0
+ glTexParameterfv@Base 0
+ glTexParameteri@Base 0
+ glTexParameteriv@Base 0
+ glTexParameterx@Base 0
+ glTexParameterxv@Base 0
+ glTexStorage1D@Base 0
+ glTexStorage2D@Base 0
+ glTexStorage2DMultisample@Base 0
+ glTexStorage3D@Base 0
+ glTexStorage3DMultisample@Base 0
+ glTexSubImage1D@Base 0
+ glTexSubImage2D@Base 0
+ glTexSubImage3D@Base 0
+ glTexSubImage3DEXT@Base 0
+ glTextureBarrierNV@Base 0
+ glTextureStorage1DEXT@Base 0
+ glTextureStorage2DEXT@Base 0
+ glTextureStorage3DEXT@Base 0
+ glTextureView@Base 0
+ glTransformFeedbackVaryings@Base 0
+ glTranslated@Base 0
+ glTranslatef@Base 0
+ glTranslatex@Base 0
+ glUniform1f@Base 0
+ glUniform1fARB@Base 0
+ glUniform1fv@Base 0
+ glUniform1fvARB@Base 0
+ glUniform1i@Base 0
+ glUniform1iARB@Base 0
+ glUniform1iv@Base 0
+ glUniform1ivARB@Base 0
+ glUniform1ui@Base 0
+ glUniform1uiEXT@Base 0
+ glUniform1uiv@Base 0
+ glUniform1uivEXT@Base 0
+ glUniform2f@Base 0
+ glUniform2fARB@Base 0
+ glUniform2fv@Base 0
+ glUniform2fvARB@Base 0
+ glUniform2i@Base 0
+ glUniform2iARB@Base 0
+ glUniform2iv@Base 0
+ glUniform2ivARB@Base 0
+ glUniform2ui@Base 0
+ glUniform2uiEXT@Base 0
+ glUniform2uiv@Base 0
+ glUniform2uivEXT@Base 0
+ glUniform3f@Base 0
+ glUniform3fARB@Base 0
+ glUniform3fv@Base 0
+ glUniform3fvARB@Base 0
+ glUniform3i@Base 0
+ glUniform3iARB@Base 0
+ glUniform3iv@Base 0
+ glUniform3ivARB@Base 0
+ glUniform3ui@Base 0
+ glUniform3uiEXT@Base 0
+ glUniform3uiv@Base 0
+ glUniform3uivEXT@Base 0
+ glUniform4f@Base 0
+ glUniform4fARB@Base 0
+ glUniform4fv@Base 0
+ glUniform4fvARB@Base 0
+ glUniform4i@Base 0
+ glUniform4iARB@Base 0
+ glUniform4iv@Base 0
+ glUniform4ivARB@Base 0
+ glUniform4ui@Base 0
+ glUniform4uiEXT@Base 0
+ glUniform4uiv@Base 0
+ glUniform4uivEXT@Base 0
+ glUniformBlockBinding@Base 0
+ glUniformMatrix2fv@Base 0
+ glUniformMatrix2fvARB@Base 0
+ glUniformMatrix2x3fv@Base 0
+ glUniformMatrix2x4fv@Base 0
+ glUniformMatrix3fv@Base 0
+ glUniformMatrix3fvARB@Base 0
+ glUniformMatrix3x2fv@Base 0
+ glUniformMatrix3x4fv@Base 0
+ glUniformMatrix4fv@Base 0
+ glUniformMatrix4fvARB@Base 0
+ glUniformMatrix4x2fv@Base 0
+ glUniformMatrix4x3fv@Base 0
+ glUnlockArraysEXT@Base 0
+ glUnmapBuffer@Base 0
+ glUnmapBufferARB@Base 0
+ glUseProgram@Base 0
+ glUseProgramObjectARB@Base 0
+ glValidateProgram@Base 0
+ glValidateProgramARB@Base 0
+ glVertex2d@Base 0
+ glVertex2dv@Base 0
+ glVertex2f@Base 0
+ glVertex2fv@Base 0
+ glVertex2i@Base 0
+ glVertex2iv@Base 0
+ glVertex2s@Base 0
+ glVertex2sv@Base 0
+ glVertex3d@Base 0
+ glVertex3dv@Base 0
+ glVertex3f@Base 0
+ glVertex3fv@Base 0
+ glVertex3i@Base 0
+ glVertex3iv@Base 0
+ glVertex3s@Base 0
+ glVertex3sv@Base 0
+ glVertex4d@Base 0
+ glVertex4dv@Base 0
+ glVertex4f@Base 0
+ glVertex4fv@Base 0
+ glVertex4i@Base 0
+ glVertex4iv@Base 0
+ glVertex4s@Base 0
+ glVertex4sv@Base 0
+ glVertexAttrib1d@Base 0
+ glVertexAttrib1dARB@Base 0
+ glVertexAttrib1dv@Base 0
+ glVertexAttrib1dvARB@Base 0
+ glVertexAttrib1f@Base 0
+ glVertexAttrib1fARB@Base 0
+ glVertexAttrib1fv@Base 0
+ glVertexAttrib1fvARB@Base 0
+ glVertexAttrib1s@Base 0
+ glVertexAttrib1sARB@Base 0
+ glVertexAttrib1sv@Base 0
+ glVertexAttrib1svARB@Base 0
+ glVertexAttrib2d@Base 0
+ glVertexAttrib2dARB@Base 0
+ glVertexAttrib2dv@Base 0
+ glVertexAttrib2dvARB@Base 0
+ glVertexAttrib2f@Base 0
+ glVertexAttrib2fARB@Base 0
+ glVertexAttrib2fv@Base 0
+ glVertexAttrib2fvARB@Base 0
+ glVertexAttrib2s@Base 0
+ glVertexAttrib2sARB@Base 0
+ glVertexAttrib2sv@Base 0
+ glVertexAttrib2svARB@Base 0
+ glVertexAttrib3d@Base 0
+ glVertexAttrib3dARB@Base 0
+ glVertexAttrib3dv@Base 0
+ glVertexAttrib3dvARB@Base 0
+ glVertexAttrib3f@Base 0
+ glVertexAttrib3fARB@Base 0
+ glVertexAttrib3fv@Base 0
+ glVertexAttrib3fvARB@Base 0
+ glVertexAttrib3s@Base 0
+ glVertexAttrib3sARB@Base 0
+ glVertexAttrib3sv@Base 0
+ glVertexAttrib3svARB@Base 0
+ glVertexAttrib4Nbv@Base 0
+ glVertexAttrib4NbvARB@Base 0
+ glVertexAttrib4Niv@Base 0
+ glVertexAttrib4NivARB@Base 0
+ glVertexAttrib4Nsv@Base 0
+ glVertexAttrib4NsvARB@Base 0
+ glVertexAttrib4Nub@Base 0
+ glVertexAttrib4NubARB@Base 0
+ glVertexAttrib4Nubv@Base 0
+ glVertexAttrib4NubvARB@Base 0
+ glVertexAttrib4Nuiv@Base 0
+ glVertexAttrib4NuivARB@Base 0
+ glVertexAttrib4Nusv@Base 0
+ glVertexAttrib4NusvARB@Base 0
+ glVertexAttrib4bv@Base 0
+ glVertexAttrib4bvARB@Base 0
+ glVertexAttrib4d@Base 0
+ glVertexAttrib4dARB@Base 0
+ glVertexAttrib4dv@Base 0
+ glVertexAttrib4dvARB@Base 0
+ glVertexAttrib4f@Base 0
+ glVertexAttrib4fARB@Base 0
+ glVertexAttrib4fv@Base 0
+ glVertexAttrib4fvARB@Base 0
+ glVertexAttrib4iv@Base 0
+ glVertexAttrib4ivARB@Base 0
+ glVertexAttrib4s@Base 0
+ glVertexAttrib4sARB@Base 0
+ glVertexAttrib4sv@Base 0
+ glVertexAttrib4svARB@Base 0
+ glVertexAttrib4ubv@Base 0
+ glVertexAttrib4ubvARB@Base 0
+ glVertexAttrib4uiv@Base 0
+ glVertexAttrib4uivARB@Base 0
+ glVertexAttrib4usv@Base 0
+ glVertexAttrib4usvARB@Base 0
+ glVertexAttribBinding@Base 0
+ glVertexAttribDivisor@Base 0
+ glVertexAttribDivisorARB@Base 0
+ glVertexAttribFormat@Base 0
+ glVertexAttribI1i@Base 0
+ glVertexAttribI1iEXT@Base 0
+ glVertexAttribI1iv@Base 0
+ glVertexAttribI1ivEXT@Base 0
+ glVertexAttribI1ui@Base 0
+ glVertexAttribI1uiEXT@Base 0
+ glVertexAttribI1uiv@Base 0
+ glVertexAttribI1uivEXT@Base 0
+ glVertexAttribI2i@Base 0
+ glVertexAttribI2iEXT@Base 0
+ glVertexAttribI2iv@Base 0
+ glVertexAttribI2ivEXT@Base 0
+ glVertexAttribI2ui@Base 0
+ glVertexAttribI2uiEXT@Base 0
+ glVertexAttribI2uiv@Base 0
+ glVertexAttribI2uivEXT@Base 0
+ glVertexAttribI3i@Base 0
+ glVertexAttribI3iEXT@Base 0
+ glVertexAttribI3iv@Base 0
+ glVertexAttribI3ivEXT@Base 0
+ glVertexAttribI3ui@Base 0
+ glVertexAttribI3uiEXT@Base 0
+ glVertexAttribI3uiv@Base 0
+ glVertexAttribI3uivEXT@Base 0
+ glVertexAttribI4bv@Base 0
+ glVertexAttribI4bvEXT@Base 0
+ glVertexAttribI4i@Base 0
+ glVertexAttribI4iEXT@Base 0
+ glVertexAttribI4iv@Base 0
+ glVertexAttribI4ivEXT@Base 0
+ glVertexAttribI4sv@Base 0
+ glVertexAttribI4svEXT@Base 0
+ glVertexAttribI4ubv@Base 0
+ glVertexAttribI4ubvEXT@Base 0
+ glVertexAttribI4ui@Base 0
+ glVertexAttribI4uiEXT@Base 0
+ glVertexAttribI4uiv@Base 0
+ glVertexAttribI4uivEXT@Base 0
+ glVertexAttribI4usv@Base 0
+ glVertexAttribI4usvEXT@Base 0
+ glVertexAttribIFormat@Base 0
+ glVertexAttribIPointer@Base 0
+ glVertexAttribIPointerEXT@Base 0
+ glVertexAttribLFormat@Base 0
+ glVertexAttribP1ui@Base 0
+ glVertexAttribP1uiv@Base 0
+ glVertexAttribP2ui@Base 0
+ glVertexAttribP2uiv@Base 0
+ glVertexAttribP3ui@Base 0
+ glVertexAttribP3uiv@Base 0
+ glVertexAttribP4ui@Base 0
+ glVertexAttribP4uiv@Base 0
+ glVertexAttribPointer@Base 0
+ glVertexAttribPointerARB@Base 0
+ glVertexBindingDivisor@Base 0
+ glVertexP2ui@Base 0
+ glVertexP2uiv@Base 0
+ glVertexP3ui@Base 0
+ glVertexP3uiv@Base 0
+ glVertexP4ui@Base 0
+ glVertexP4uiv@Base 0
+ glVertexPointer@Base 0
+ glVertexPointerEXT@Base 0
+ glViewport@Base 0
+ glViewportArrayv@Base 0
+ glViewportIndexedf@Base 0
+ glViewportIndexedfv@Base 0
+ glWaitSync@Base 0
+ glWindowPos2d@Base 0
+ glWindowPos2dARB@Base 0
+ glWindowPos2dv@Base 0
+ glWindowPos2dvARB@Base 0
+ glWindowPos2f@Base 0
+ glWindowPos2fARB@Base 0
+ glWindowPos2fv@Base 0
+ glWindowPos2fvARB@Base 0
+ glWindowPos2i@Base 0
+ glWindowPos2iARB@Base 0
+ glWindowPos2iv@Base 0
+ glWindowPos2ivARB@Base 0
+ glWindowPos2s@Base 0
+ glWindowPos2sARB@Base 0
+ glWindowPos2sv@Base 0
+ glWindowPos2svARB@Base 0
+ glWindowPos3d@Base 0
+ glWindowPos3dARB@Base 0
+ glWindowPos3dv@Base 0
+ glWindowPos3dvARB@Base 0
+ glWindowPos3f@Base 0
+ glWindowPos3fARB@Base 0
+ glWindowPos3fv@Base 0
+ glWindowPos3fvARB@Base 0
+ glWindowPos3i@Base 0
+ glWindowPos3iARB@Base 0
+ glWindowPos3iv@Base 0
+ glWindowPos3ivARB@Base 0
+ glWindowPos3s@Base 0
+ glWindowPos3sARB@Base 0
+ glWindowPos3sv@Base 0
+ glWindowPos3svARB@Base 0
+ glXChooseFBConfig@Base 0
+ glXChooseFBConfigSGIX@Base 0
+ glXChooseVisual@Base 0
+ glXCopyContext@Base 0
+ glXCreateContext@Base 0
+ glXCreateContextWithConfigSGIX@Base 0
+ glXCreateGLXPbufferSGIX@Base 0
+ glXCreateGLXPixmap@Base 0
+ glXCreateGLXPixmapMESA@Base 0
+ glXCreateGLXPixmapWithConfigSGIX@Base 0
+ glXCreateNewContext@Base 0
+ glXCreatePbuffer@Base 0
+ glXCreatePixmap@Base 0
+ glXCreateWindow@Base 0
+ glXDestroyContext@Base 0
+ glXDestroyGLXPbufferSGIX@Base 0
+ glXDestroyGLXPixmap@Base 0
+ glXDestroyPbuffer@Base 0
+ glXDestroyPixmap@Base 0
+ glXDestroyWindow@Base 0
+ glXFreeContextEXT@Base 0
+ glXGetClientString@Base 0
+ glXGetConfig@Base 0
+ glXGetContextIDEXT@Base 0
+ glXGetCurrentContext@Base 0
+ glXGetCurrentDisplay@Base 0
+ glXGetCurrentDisplayEXT@Base 0
+ glXGetCurrentDrawable@Base 0
+ glXGetCurrentReadDrawable@Base 0
+ (arch=!hurd-any)glXGetDriverConfig@Base 0
+ glXGetFBConfigAttrib@Base 0
+ glXGetFBConfigAttribSGIX@Base 0
+ glXGetFBConfigFromVisualSGIX@Base 0
+ glXGetFBConfigs@Base 0
+ glXGetProcAddress@Base 0
+ glXGetProcAddressARB@Base 0
+ (arch=!hurd-any)glXGetScreenDriver@Base 0
+ glXGetSelectedEvent@Base 0
+ glXGetSelectedEventSGIX@Base 0
+ glXGetVisualFromFBConfig@Base 0
+ glXGetVisualFromFBConfigSGIX@Base 0
+ glXImportContextEXT@Base 0
+ glXIsDirect@Base 0
+ glXMakeContextCurrent@Base 0
+ glXMakeCurrent@Base 0
+ glXMakeCurrentReadSGI@Base 0
+ glXQueryContext@Base 0
+ glXQueryContextInfoEXT@Base 0
+ glXQueryDrawable@Base 0
+ glXQueryExtension@Base 0
+ glXQueryExtensionsString@Base 0
+ glXQueryGLXPbufferSGIX@Base 0
+ glXQueryServerString@Base 0
+ glXQueryVersion@Base 0
+ glXSelectEvent@Base 0
+ glXSelectEventSGIX@Base 0
+ glXSwapBuffers@Base 0
+ glXUseXFont@Base 0
+ glXWaitGL@Base 0
+ glXWaitX@Base 0
--- mesa-lts-xenial-11.2.0.orig/debian/libglapi-mesa-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libglapi-mesa-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libglapi.so.0*
--- mesa-lts-xenial-11.2.0.orig/debian/libglapi-mesa-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libglapi-mesa-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libglapi0
--- mesa-lts-xenial-11.2.0.orig/debian/libgles1-mesa-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgles1-mesa-dev-lts-xenial.install.in
@@ -0,0 +1,3 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGLESv1_CM.so usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
+usr/include/GLES usr/include
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/glesv1_cm.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
--- mesa-lts-xenial-11.2.0.orig/debian/libgles1-mesa-dev-lts-xenial.links.in
+++ mesa-lts-xenial-11.2.0/debian/libgles1-mesa-dev-lts-xenial.links.in
@@ -0,0 +1 @@
+/usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/libGLESv1_CM.so /usr/lib/${DEB_HOST_MULTIARCH}/libGLESv1_CM.so
--- mesa-lts-xenial-11.2.0.orig/debian/libgles1-mesa-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgles1-mesa-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGLESv1_CM.so.1* usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
--- mesa-lts-xenial-11.2.0.orig/debian/libgles1-mesa-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libgles1-mesa-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libGLESv1-CM1
--- mesa-lts-xenial-11.2.0.orig/debian/libgles1-mesa-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libgles1-mesa-lts-xenial.symbols
@@ -0,0 +1,148 @@
+libGLESv1_CM.so.1 libgles1-mesa-lts-xenial #MINVER# | libgles1
+ glActiveTexture@Base 7.8.1
+ glAlphaFunc@Base 7.8.1
+ glAlphaFuncx@Base 7.8.1
+ glBindBuffer@Base 7.8.1
+ glBindTexture@Base 7.8.1
+ glBlendFunc@Base 7.8.1
+ glBufferData@Base 7.8.1
+ glBufferSubData@Base 7.8.1
+ glClear@Base 7.8.1
+ glClearColor@Base 7.8.1
+ glClearColorx@Base 7.8.1
+ glClearDepthf@Base 7.8.1
+ glClearDepthx@Base 7.8.1
+ glClearStencil@Base 7.8.1
+ glClientActiveTexture@Base 7.8.1
+ glClipPlanef@Base 7.8.1
+ glClipPlanex@Base 7.8.1
+ glColor4f@Base 7.8.1
+ glColor4ub@Base 7.8.1
+ glColor4x@Base 7.8.1
+ glColorMask@Base 7.8.1
+ glColorPointer@Base 7.8.1
+ glCompressedTexImage2D@Base 7.8.1
+ glCompressedTexSubImage2D@Base 7.8.1
+ glCopyTexImage2D@Base 7.8.1
+ glCopyTexSubImage2D@Base 7.8.1
+ glCullFace@Base 7.8.1
+ glDeleteBuffers@Base 7.8.1
+ glDeleteTextures@Base 7.8.1
+ glDepthFunc@Base 7.8.1
+ glDepthMask@Base 7.8.1
+ glDepthRangef@Base 7.8.1
+ glDepthRangex@Base 7.8.1
+ glDisable@Base 7.8.1
+ glDisableClientState@Base 7.8.1
+ glDrawArrays@Base 7.8.1
+ glDrawElements@Base 7.8.1
+ glEnable@Base 7.8.1
+ glEnableClientState@Base 7.8.1
+ glFinish@Base 7.8.1
+ glFlush@Base 7.8.1
+ glFogf@Base 7.8.1
+ glFogfv@Base 7.8.1
+ glFogx@Base 7.8.1
+ glFogxv@Base 7.8.1
+ glFrontFace@Base 7.8.1
+ glFrustumf@Base 7.8.1
+ glFrustumx@Base 7.8.1
+ glGenBuffers@Base 7.8.1
+ glGenTextures@Base 7.8.1
+ glGetBooleanv@Base 7.8.1
+ glGetBufferParameteriv@Base 7.8.1
+ glGetClipPlanef@Base 7.8.1
+ glGetClipPlanex@Base 7.8.1
+ glGetError@Base 7.8.1
+ glGetFixedv@Base 7.8.1
+ glGetFloatv@Base 7.8.1
+ glGetIntegerv@Base 7.8.1
+ glGetLightfv@Base 7.8.1
+ glGetLightxv@Base 7.8.1
+ glGetMaterialfv@Base 7.8.1
+ glGetMaterialxv@Base 7.8.1
+ glGetPointerv@Base 7.8.1
+ glGetString@Base 7.8.1
+ glGetTexEnvfv@Base 7.8.1
+ glGetTexEnviv@Base 7.8.1
+ glGetTexEnvxv@Base 7.8.1
+ glGetTexParameterfv@Base 7.8.1
+ glGetTexParameteriv@Base 7.8.1
+ glGetTexParameterxv@Base 7.8.1
+ glHint@Base 7.8.1
+ glIsBuffer@Base 7.8.1
+ glIsEnabled@Base 7.8.1
+ glIsTexture@Base 7.8.1
+ glLightModelf@Base 7.8.1
+ glLightModelfv@Base 7.8.1
+ glLightModelx@Base 7.8.1
+ glLightModelxv@Base 7.8.1
+ glLightf@Base 7.8.1
+ glLightfv@Base 7.8.1
+ glLightx@Base 7.8.1
+ glLightxv@Base 7.8.1
+ glLineWidth@Base 7.8.1
+ glLineWidthx@Base 7.8.1
+ glLoadIdentity@Base 7.8.1
+ glLoadMatrixf@Base 7.8.1
+ glLoadMatrixx@Base 7.8.1
+ glLogicOp@Base 7.8.1
+ glMaterialf@Base 7.8.1
+ glMaterialfv@Base 7.8.1
+ glMaterialx@Base 7.8.1
+ glMaterialxv@Base 7.8.1
+ glMatrixMode@Base 7.8.1
+ glMultMatrixf@Base 7.8.1
+ glMultMatrixx@Base 7.8.1
+ glMultiDrawArraysEXT@Base 7.8.1
+ glMultiDrawElementsEXT@Base 7.8.1
+ glMultiTexCoord4f@Base 7.8.1
+ glMultiTexCoord4x@Base 7.8.1
+ glNormal3f@Base 7.8.1
+ glNormal3x@Base 7.8.1
+ glNormalPointer@Base 7.8.1
+ glOrthof@Base 7.8.1
+ glOrthox@Base 7.8.1
+ glPixelStorei@Base 7.8.1
+ glPointParameterf@Base 7.8.1
+ glPointParameterfv@Base 7.8.1
+ glPointParameterx@Base 7.8.1
+ glPointParameterxv@Base 7.8.1
+ glPointSize@Base 7.8.1
+ glPointSizePointerOES@Base 7.8.1
+ glPointSizex@Base 7.8.1
+ glPolygonOffset@Base 7.8.1
+ glPolygonOffsetx@Base 7.8.1
+ glPopMatrix@Base 7.8.1
+ glPushMatrix@Base 7.8.1
+ glReadPixels@Base 7.8.1
+ glRotatef@Base 7.8.1
+ glRotatex@Base 7.8.1
+ glSampleCoverage@Base 7.8.1
+ glSampleCoveragex@Base 7.8.1
+ glScalef@Base 7.8.1
+ glScalex@Base 7.8.1
+ glScissor@Base 7.8.1
+ glShadeModel@Base 7.8.1
+ glStencilFunc@Base 7.8.1
+ glStencilMask@Base 7.8.1
+ glStencilOp@Base 7.8.1
+ glTexCoordPointer@Base 7.8.1
+ glTexEnvf@Base 7.8.1
+ glTexEnvfv@Base 7.8.1
+ glTexEnvi@Base 7.8.1
+ glTexEnviv@Base 7.8.1
+ glTexEnvx@Base 7.8.1
+ glTexEnvxv@Base 7.8.1
+ glTexImage2D@Base 7.8.1
+ glTexParameterf@Base 7.8.1
+ glTexParameterfv@Base 7.8.1
+ glTexParameteri@Base 7.8.1
+ glTexParameteriv@Base 7.8.1
+ glTexParameterx@Base 7.8.1
+ glTexParameterxv@Base 7.8.1
+ glTexSubImage2D@Base 7.8.1
+ glTranslatef@Base 7.8.1
+ glTranslatex@Base 7.8.1
+ glVertexPointer@Base 7.8.1
+ glViewport@Base 7.8.1
--- mesa-lts-xenial-11.2.0.orig/debian/libgles2-mesa-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgles2-mesa-dev-lts-xenial.install.in
@@ -0,0 +1,4 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGLESv2.so usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
+usr/include/GLES2 usr/include
+usr/include/GLES3 usr/include
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/glesv2.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
--- mesa-lts-xenial-11.2.0.orig/debian/libgles2-mesa-dev-lts-xenial.links.in
+++ mesa-lts-xenial-11.2.0/debian/libgles2-mesa-dev-lts-xenial.links.in
@@ -0,0 +1 @@
+/usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/libGLESv2.so /usr/lib/${DEB_HOST_MULTIARCH}/libGLESv2.so
--- mesa-lts-xenial-11.2.0.orig/debian/libgles2-mesa-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libgles2-mesa-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libGLESv2.so.2* usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl
--- mesa-lts-xenial-11.2.0.orig/debian/libgles2-mesa-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libgles2-mesa-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libGLESv2-2
--- mesa-lts-xenial-11.2.0.orig/debian/libgles2-mesa-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libgles2-mesa-lts-xenial.symbols
@@ -0,0 +1,270 @@
+libGLESv2.so.2 libgles2-mesa-lts-xenial #MINVER# | libgles2
+ glActiveTexture@Base 7.8.1
+ glAttachShader@Base 7.8.1
+ glBeginQuery@Base 9.1~
+ glBeginTransformFeedback@Base 9.1~
+ glBindAttribLocation@Base 7.8.1
+ glBindBuffer@Base 7.8.1
+ glBindBufferBase@Base 9.1~
+ glBindBufferRange@Base 9.1~
+ glBindFragDataLocationEXT@Base 11.1.0~
+ glBindFramebuffer@Base 7.8.1
+ glBindImageTexture@Base 10.7.0~
+ glBindRenderbuffer@Base 7.8.1
+ glBindSampler@Base 9.1~
+ glBindTexture@Base 7.8.1
+ glBindTransformFeedback@Base 9.1~
+ glBindVertexArray@Base 9.1~
+ glBindVertexBuffer@Base 10.7.0~
+ glBlendColor@Base 7.8.1
+ glBlendEquation@Base 7.8.1
+ glBlendEquationSeparate@Base 7.8.1
+ glBlendFunc@Base 7.8.1
+ glBlendFuncSeparate@Base 7.8.1
+ glBlitFramebuffer@Base 9.1~
+ glBufferData@Base 7.8.1
+ glBufferSubData@Base 7.8.1
+ glCheckFramebufferStatus@Base 7.8.1
+ glClear@Base 7.8.1
+ glClearBufferfi@Base 9.1~
+ glClearBufferfv@Base 9.1~
+ glClearBufferiv@Base 9.1~
+ glClearBufferuiv@Base 9.1~
+ glClearColor@Base 7.8.1
+ glClearDepthf@Base 7.8.1
+ glClearStencil@Base 7.8.1
+ glClientWaitSync@Base 9.1~
+ glColorMask@Base 7.8.1
+ glCompileShader@Base 7.8.1
+ glCompressedTexImage2D@Base 7.8.1
+ glCompressedTexImage3D@Base 9.1~
+ glCompressedTexSubImage2D@Base 7.8.1
+ glCompressedTexSubImage3D@Base 9.1~
+ glCopyBufferSubData@Base 9.1~
+ glCopyTexImage2D@Base 7.8.1
+ glCopyTexSubImage2D@Base 7.8.1
+ glCopyTexSubImage3D@Base 9.1~
+ glCreateProgram@Base 7.8.1
+ glCreateShader@Base 7.8.1
+ glCullFace@Base 7.8.1
+ glDeleteBuffers@Base 7.8.1
+ glDeleteFramebuffers@Base 7.8.1
+ glDeleteProgram@Base 7.8.1
+ glDeleteQueries@Base 9.1~
+ glDeleteRenderbuffers@Base 7.8.1
+ glDeleteSamplers@Base 9.1~
+ glDeleteShader@Base 7.8.1
+ glDeleteSync@Base 9.1~
+ glDeleteTextures@Base 7.8.1
+ glDeleteTransformFeedbacks@Base 9.1~
+ glDeleteVertexArrays@Base 9.1~
+ glDepthFunc@Base 7.8.1
+ glDepthMask@Base 7.8.1
+ glDepthRangef@Base 7.8.1
+ glDetachShader@Base 7.8.1
+ glDisable@Base 7.8.1
+ glDisableVertexAttribArray@Base 7.8.1
+ glDispatchCompute@Base 10.7.0~
+ glDispatchComputeIndirect@Base 10.7.0~
+ glDrawArrays@Base 7.8.1
+ glDrawArraysIndirect@Base 10.7.0~
+ glDrawArraysInstanced@Base 9.1~
+ glDrawBuffers@Base 9.1~
+ glDrawElements@Base 7.8.1
+ glDrawElementsBaseVertex@Base 11.1.0~
+ glDrawElementsIndirect@Base 10.7.0~
+ glDrawElementsInstanced@Base 9.1~
+ glDrawElementsInstancedBaseVertex@Base 11.1.0~
+ glDrawRangeElements@Base 9.1~
+ glDrawRangeElementsBaseVertex@Base 11.1.0~
+ glEnable@Base 7.8.1
+ glEnableVertexAttribArray@Base 7.8.1
+ glEndQuery@Base 9.1~
+ glEndTransformFeedback@Base 9.1~
+ glFenceSync@Base 9.1~
+ glFinish@Base 7.8.1
+ glFlush@Base 7.8.1
+ glFlushMappedBufferRange@Base 9.1~
+ glFramebufferRenderbuffer@Base 7.8.1
+ glFramebufferTexture2D@Base 7.8.1
+ glFramebufferTextureLayer@Base 9.1~
+ glFrontFace@Base 7.8.1
+ glGenBuffers@Base 7.8.1
+ glGenFramebuffers@Base 7.8.1
+ glGenQueries@Base 9.1~
+ glGenRenderbuffers@Base 7.8.1
+ glGenSamplers@Base 9.1~
+ glGenTextures@Base 7.8.1
+ glGenTransformFeedbacks@Base 9.1~
+ glGenVertexArrays@Base 9.1~
+ glGenerateMipmap@Base 7.8.1
+ glGetActiveAttrib@Base 7.8.1
+ glGetActiveUniform@Base 7.8.1
+ glGetActiveUniformBlockName@Base 9.1~
+ glGetActiveUniformBlockiv@Base 9.1~
+ glGetActiveUniformsiv@Base 9.1~
+ glGetAttachedShaders@Base 7.8.1
+ glGetAttribLocation@Base 7.8.1
+ glGetBooleani_v@Base 10.7.0~
+ glGetBooleanv@Base 7.8.1
+ glGetBufferParameteri64v@Base 9.1~
+ glGetBufferParameteriv@Base 7.8.1
+ glGetBufferPointerv@Base 9.1~
+ glGetError@Base 7.8.1
+ glGetFloatv@Base 7.8.1
+ glGetFragDataLocation@Base 9.1~
+ glGetFramebufferAttachmentParameteriv@Base 7.8.1
+ glGetInteger64i_v@Base 9.1~
+ glGetInteger64v@Base 9.1~
+ glGetIntegeri_v@Base 9.1~
+ glGetIntegerv@Base 7.8.1
+ glGetInternalformativ@Base 9.1~
+ glGetMultisamplefv@Base 10.7.0~
+ glGetProgramBinary@Base 9.1~
+ glGetProgramInfoLog@Base 7.8.1
+ glGetProgramiv@Base 7.8.1
+ glGetQueryObjectuiv@Base 9.1~
+ glGetQueryiv@Base 9.1~
+ glGetRenderbufferParameteriv@Base 7.8.1
+ glGetSamplerParameterfv@Base 9.1~
+ glGetSamplerParameteriv@Base 9.1~
+ glGetShaderInfoLog@Base 7.8.1
+ glGetShaderPrecisionFormat@Base 7.8.1
+ glGetShaderSource@Base 7.8.1
+ glGetShaderiv@Base 7.8.1
+ glGetString@Base 7.8.1
+ glGetStringi@Base 9.1~
+ glGetSynciv@Base 9.1~
+ glGetTexLevelParameterfv@Base 10.7.0~
+ glGetTexLevelParameteriv@Base 10.7.0~
+ glGetTexParameterfv@Base 7.8.1
+ glGetTexParameteriv@Base 7.8.1
+ glGetTransformFeedbackVarying@Base 9.1~
+ glGetUniformBlockIndex@Base 9.1~
+ glGetUniformIndices@Base 9.1~
+ glGetUniformLocation@Base 7.8.1
+ glGetUniformfv@Base 7.8.1
+ glGetUniformiv@Base 7.8.1
+ glGetUniformuiv@Base 9.1~
+ glGetVertexAttribIiv@Base 9.1~
+ glGetVertexAttribIuiv@Base 9.1~
+ glGetVertexAttribPointerv@Base 7.8.1
+ glGetVertexAttribfv@Base 7.8.1
+ glGetVertexAttribiv@Base 7.8.1
+ glHint@Base 7.8.1
+ glInvalidateFramebuffer@Base 9.1~
+ glInvalidateSubFramebuffer@Base 9.1~
+ glIsBuffer@Base 7.8.1
+ glIsEnabled@Base 7.8.1
+ glIsFramebuffer@Base 7.8.1
+ glIsProgram@Base 7.8.1
+ glIsQuery@Base 9.1~
+ glIsRenderbuffer@Base 7.8.1
+ glIsSampler@Base 9.1~
+ glIsShader@Base 7.8.1
+ glIsSync@Base 9.1~
+ glIsTexture@Base 7.8.1
+ glIsTransformFeedback@Base 9.1~
+ glIsVertexArray@Base 9.1~
+ glLineWidth@Base 7.8.1
+ glLinkProgram@Base 7.8.1
+ glMapBufferRange@Base 9.1~
+ glMemoryBarrier@Base 10.7.0~
+ glMultiDrawArraysEXT@Base 7.8.1
+ glMultiDrawElementsEXT@Base 7.8.1
+ glPauseTransformFeedback@Base 9.1~
+ glPixelStorei@Base 7.8.1
+ glPolygonOffset@Base 7.8.1
+ glProgramBinary@Base 9.1~
+ glProgramParameteri@Base 9.1~
+ glReadBuffer@Base 9.1~
+ glReadPixels@Base 7.8.1
+ glReleaseShaderCompiler@Base 7.8.1
+ glRenderbufferStorage@Base 7.8.1
+ glRenderbufferStorageMultisample@Base 9.1~
+ glResumeTransformFeedback@Base 9.1~
+ glSampleCoverage@Base 7.8.1
+ glSampleMaski@Base 10.7.0~
+ glSamplerParameterf@Base 9.1~
+ glSamplerParameterfv@Base 9.1~
+ glSamplerParameteri@Base 9.1~
+ glSamplerParameteriv@Base 9.1~
+ glScissor@Base 7.8.1
+ glShaderBinary@Base 7.8.1
+ glShaderSource@Base 7.8.1
+ glStencilFunc@Base 7.8.1
+ glStencilFuncSeparate@Base 7.8.1
+ glStencilMask@Base 7.8.1
+ glStencilMaskSeparate@Base 7.8.1
+ glStencilOp@Base 7.8.1
+ glStencilOpSeparate@Base 7.8.1
+ glTexImage2D@Base 7.8.1
+ glTexImage3D@Base 9.1~
+ glTexParameterf@Base 7.8.1
+ glTexParameterfv@Base 7.8.1
+ glTexParameteri@Base 7.8.1
+ glTexParameteriv@Base 7.8.1
+ glTexStorage2D@Base 9.1~
+ glTexStorage2DMultisample@Base 10.7.0~
+ glTexStorage3D@Base 9.1~
+ glTexSubImage2D@Base 7.8.1
+ glTexSubImage3D@Base 9.1~
+ glTransformFeedbackVaryings@Base 9.1~
+ glUniform1f@Base 7.8.1
+ glUniform1fv@Base 7.8.1
+ glUniform1i@Base 7.8.1
+ glUniform1iv@Base 7.8.1
+ glUniform1ui@Base 9.1~
+ glUniform1uiv@Base 9.1~
+ glUniform2f@Base 7.8.1
+ glUniform2fv@Base 7.8.1
+ glUniform2i@Base 7.8.1
+ glUniform2iv@Base 7.8.1
+ glUniform2ui@Base 9.1~
+ glUniform2uiv@Base 9.1~
+ glUniform3f@Base 7.8.1
+ glUniform3fv@Base 7.8.1
+ glUniform3i@Base 7.8.1
+ glUniform3iv@Base 7.8.1
+ glUniform3ui@Base 9.1~
+ glUniform3uiv@Base 9.1~
+ glUniform4f@Base 7.8.1
+ glUniform4fv@Base 7.8.1
+ glUniform4i@Base 7.8.1
+ glUniform4iv@Base 7.8.1
+ glUniform4ui@Base 9.1~
+ glUniform4uiv@Base 9.1~
+ glUniformBlockBinding@Base 9.1~
+ glUniformMatrix2fv@Base 7.8.1
+ glUniformMatrix2x3fv@Base 9.1~
+ glUniformMatrix2x4fv@Base 9.1~
+ glUniformMatrix3fv@Base 7.8.1
+ glUniformMatrix3x2fv@Base 9.1~
+ glUniformMatrix3x4fv@Base 9.1~
+ glUniformMatrix4fv@Base 7.8.1
+ glUniformMatrix4x2fv@Base 9.1~
+ glUniformMatrix4x3fv@Base 9.1~
+ glUnmapBuffer@Base 9.1~
+ glUseProgram@Base 7.8.1
+ glValidateProgram@Base 7.8.1
+ glVertexAttrib1f@Base 7.8.1
+ glVertexAttrib1fv@Base 7.8.1
+ glVertexAttrib2f@Base 7.8.1
+ glVertexAttrib2fv@Base 7.8.1
+ glVertexAttrib3f@Base 7.8.1
+ glVertexAttrib3fv@Base 7.8.1
+ glVertexAttrib4f@Base 7.8.1
+ glVertexAttrib4fv@Base 7.8.1
+ glVertexAttribBinding@Base 10.7.0~
+ glVertexAttribDivisor@Base 9.1~
+ glVertexAttribFormat@Base 10.7.0~
+ glVertexAttribI4i@Base 9.1~
+ glVertexAttribI4iv@Base 9.1~
+ glVertexAttribI4ui@Base 9.1~
+ glVertexAttribI4uiv@Base 9.1~
+ glVertexAttribIFormat@Base 10.7.0~
+ glVertexAttribIPointer@Base 9.1~
+ glVertexAttribPointer@Base 7.8.1
+ glVertexBindingDivisor@Base 10.7.0~
+ glViewport@Base 7.8.1
+ glWaitSync@Base 9.1~
--- mesa-lts-xenial-11.2.0.orig/debian/libopenvg1-mesa-dev.links.in
+++ mesa-lts-xenial-11.2.0/debian/libopenvg1-mesa-dev.links.in
@@ -0,0 +1 @@
+/usr/lib/${DEB_HOST_MULTIARCH}/mesa-egl/libOpenVG.so /usr/lib/${DEB_HOST_MULTIARCH}/libOpenVG.so
--- mesa-lts-xenial-11.2.0.orig/debian/libosmesa6-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libosmesa6-dev-lts-xenial.install.in
@@ -0,0 +1,3 @@
+usr/include/GL/osmesa.h
+usr/lib/${DEB_HOST_MULTIARCH}/libOSMesa.so
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/osmesa.pc
--- mesa-lts-xenial-11.2.0.orig/debian/libosmesa6-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libosmesa6-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libOSMesa.so.*
--- mesa-lts-xenial-11.2.0.orig/debian/libosmesa6-lts-xenial.links.in
+++ mesa-lts-xenial-11.2.0/debian/libosmesa6-lts-xenial.links.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libOSMesa.so.8	usr/lib/${DEB_HOST_MULTIARCH}/libOSMesa.so.6
--- mesa-lts-xenial-11.2.0.orig/debian/libosmesa6-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libosmesa6-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libOSMesa8
--- mesa-lts-xenial-11.2.0.orig/debian/libosmesa6-lts-xenial.shlibs
+++ mesa-lts-xenial-11.2.0/debian/libosmesa6-lts-xenial.shlibs
@@ -0,0 +1 @@
+libOSMesa 8 libosmesa6 (>= 10.2~)
--- mesa-lts-xenial-11.2.0.orig/debian/libwayland-egl1-mesa-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libwayland-egl1-mesa-lts-xenial.install.in
@@ -0,0 +1,3 @@
+# Wayland support, only on Linux:
+usr/lib/${DEB_HOST_MULTIARCH}/libwayland-egl.so.1
+usr/lib/${DEB_HOST_MULTIARCH}/libwayland-egl.so.1.0.0
--- mesa-lts-xenial-11.2.0.orig/debian/libwayland-egl1-mesa-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/libwayland-egl1-mesa-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libwayland-egl1
--- mesa-lts-xenial-11.2.0.orig/debian/libwayland-egl1-mesa-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libwayland-egl1-mesa-lts-xenial.symbols
@@ -0,0 +1,5 @@
+libwayland-egl.so.1 libwayland-egl1-mesa-lts-xenial #MINVER# | libwayland-egl1
+ wl_egl_window_create@Base 10.0.2
+ wl_egl_window_destroy@Base 10.0.2
+ wl_egl_window_get_attached_size@Base 10.0.2
+ wl_egl_window_resize@Base 10.0.2
--- mesa-lts-xenial-11.2.0.orig/debian/libxatracker-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libxatracker-dev-lts-xenial.install.in
@@ -0,0 +1,5 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libxatracker.so
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/xatracker.pc
+usr/include/xa_composite.h
+usr/include/xa_context.h
+usr/include/xa_tracker.h
--- mesa-lts-xenial-11.2.0.orig/debian/libxatracker2-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/libxatracker2-lts-xenial.install.in
@@ -0,0 +1 @@
+usr/lib/${DEB_HOST_MULTIARCH}/libxatracker.so.2*
--- mesa-lts-xenial-11.2.0.orig/debian/libxatracker2-lts-xenial.symbols
+++ mesa-lts-xenial-11.2.0/debian/libxatracker2-lts-xenial.symbols
@@ -0,0 +1,35 @@
+libxatracker.so.2 libxatracker2-lts-xenial #MINVER#
+ xa_composite_allocation@Base 0
+ xa_composite_check_accelerated@Base 0
+ xa_composite_done@Base 0
+ xa_composite_prepare@Base 0
+ xa_composite_rect@Base 0
+ xa_context_create@Base 0
+ xa_context_default@Base 0
+ xa_context_destroy@Base 0
+ xa_context_flush@Base 0
+ xa_copy@Base 0
+ xa_copy_done@Base 0
+ xa_copy_prepare@Base 0
+ xa_fence_destroy@Base 0
+ xa_fence_get@Base 0
+ xa_fence_wait@Base 0
+ xa_format_check_supported@Base 0
+ xa_solid@Base 0
+ xa_solid_done@Base 0
+ xa_solid_prepare@Base 0
+ xa_surface_create@Base 0
+ xa_surface_dma@Base 0
+ xa_surface_format@Base 0
+ xa_surface_from_handle2@Base 11.1.0~
+ xa_surface_from_handle@Base 0
+ xa_surface_handle@Base 0
+ xa_surface_map@Base 0
+ xa_surface_redefine@Base 0
+ xa_surface_ref@Base 0
+ xa_surface_unmap@Base 0
+ xa_surface_unref@Base 0
+ xa_tracker_create@Base 0
+ xa_tracker_destroy@Base 0
+ xa_tracker_version@Base 0
+ xa_yuv_planar_blit@Base 0
--- mesa-lts-xenial-11.2.0.orig/debian/local/control
+++ mesa-lts-xenial-11.2.0/debian/local/control
@@ -0,0 +1 @@
+report-with: xserver-xorg xserver-xorg-core
--- mesa-lts-xenial-11.2.0.orig/debian/local/script
+++ mesa-lts-xenial-11.2.0/debian/local/script
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+SERVER_BUG_SCRIPT=/usr/share/bug/xserver-xorg-core/script
+
+exec >&3
+
+echo "glxinfo:"
+echo "--------"
+
+if [ -z "$DISPLAY" ]; then
+    echo "DISPLAY is not set."
+else
+    if which glxinfo >/dev/null 2>&1; then
+        glxinfo
+    else
+        echo "glxinfo is not available (missing mesa-utils package)."
+    fi
+fi
+
+echo
+
+if [ -x "$SERVER_BUG_SCRIPT" ]; then
+    $SERVER_BUG_SCRIPT 3>&1
+else
+    echo "$SERVER_BUG_SCRIPT not available"
+fi
--- mesa-lts-xenial-11.2.0.orig/debian/mesa-common-dev-lts-xenial.docs
+++ mesa-lts-xenial-11.2.0/debian/mesa-common-dev-lts-xenial.docs
@@ -0,0 +1,4 @@
+docs/*.html
+docs/relnotes/*
+docs/specs/*.spec
+docs/specs/OLD/*.spec
--- mesa-lts-xenial-11.2.0.orig/debian/mesa-common-dev-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/mesa-common-dev-lts-xenial.install.in
@@ -0,0 +1,10 @@
+usr/include/GL/gl.h usr/include/GL
+usr/include/GL/glcorearb.h usr/include/GL
+usr/include/GL/glext.h usr/include/GL
+usr/include/GL/gl_mangle.h usr/include/GL
+usr/include/GL/glx.h usr/include/GL
+usr/include/GL/glxext.h usr/include/GL
+usr/include/GL/glx_mangle.h usr/include/GL
+usr/include/GL/glcorearb.h usr/include/GL
+usr/include/GL/internal/dri_interface.h usr/include/GL/internal
+usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/dri.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
--- mesa-lts-xenial-11.2.0.orig/debian/mesa-opencl-icd-lts-xenial.install.in
+++ mesa-lts-xenial-11.2.0/debian/mesa-opencl-icd-lts-xenial.install.in
@@ -0,0 +1,3 @@
+etc/OpenCL/vendors/mesa.icd
+usr/lib/${DEB_HOST_MULTIARCH}/gallium-pipe/*.so
+usr/lib/${DEB_HOST_MULTIARCH}/libMesaOpenCL*
--- mesa-lts-xenial-11.2.0.orig/debian/mesa-opencl-icd-lts-xenial.lintian-overrides
+++ mesa-lts-xenial-11.2.0/debian/mesa-opencl-icd-lts-xenial.lintian-overrides
@@ -0,0 +1 @@
+package-name-doesnt-match-sonames libMesaOpenCL1
--- mesa-lts-xenial-11.2.0.orig/debian/not-installed
+++ mesa-lts-xenial-11.2.0/debian/not-installed
@@ -0,0 +1,5 @@
+# Keep track of files we don't install:
+
+# Common list:
+NOT_INSTALLED := usr/include/GL/osmesa.h \
+	usr/include/GL/wglext.h
--- mesa-lts-xenial-11.2.0.orig/debian/patches/07_gallium-fix-build-failure-on-powerpcspe.diff
+++ mesa-lts-xenial-11.2.0/debian/patches/07_gallium-fix-build-failure-on-powerpcspe.diff
@@ -0,0 +1,40 @@
+From a4f14e7239780b02af8d74669c5458d4b0957d4d Mon Sep 17 00:00:00 2001
+From: Roland Stigge <stigge@antcom.de>
+Date: Sun, 2 Mar 2014 19:52:56 +0100
+Subject: [PATCH] gallium: fix build failure on powerpcspe
+
+In the case of powerpc, mesa activates some altivec instructions
+that are unknown on the powerpcspe architecture (see
+https://wiki.debian.org/PowerPCSPEPort), causing a build failure as the
+'vand' opcode is not recognized by the assembler.
+
+This patch fixes this by preventing the PPC-specialcasing in case of
+powerpcspe (__NO_FPRS__ is only defined there).
+
+https://bugs.debian.org/695746
+---
+ src/gallium/include/pipe/p_config.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
+index d603681..8189a73 100644
+--- a/src/gallium/include/pipe/p_config.h
++++ b/src/gallium/include/pipe/p_config.h
+@@ -107,12 +107,14 @@
+ #endif
+ #endif
+ 
++#ifndef __NO_FPRS__
+ #if defined(__ppc__) || defined(__ppc64__) || defined(__PPC__)
+ #define PIPE_ARCH_PPC
+ #if defined(__ppc64__) || defined(__PPC64__)
+ #define PIPE_ARCH_PPC_64
+ #endif
+ #endif
++#endif
+ 
+ #if defined(__s390x__)
+ #define PIPE_ARCH_S390
+-- 
+1.9.0
+
--- mesa-lts-xenial-11.2.0.orig/debian/patches/i915-dont-default-to-2.1.patch
+++ mesa-lts-xenial-11.2.0/debian/patches/i915-dont-default-to-2.1.patch
@@ -0,0 +1,78 @@
+This is a revert of http://cgit.freedesktop.org/mesa/mesa/commit/?id=97217a40f97cdeae0304798b607f704deb0c3558
+
+i915: Always enable GL 2.0 support.
+There's no point in shipping a non-GL2 driver today.
+
+From upstream mesa.
+
+--- a/src/mesa/drivers/dri/i915/intel_extensions.c
++++ b/src/mesa/drivers/dri/i915/intel_extensions.c
+@@ -92,8 +92,12 @@ intelInitExtensions(struct gl_context *c
+       ctx->Extensions.ATI_separate_stencil = true;
+       ctx->Extensions.ATI_texture_env_combine3 = true;
+       ctx->Extensions.NV_texture_env_combine4 = true;
+-      ctx->Extensions.ARB_fragment_shader = true;
+-      ctx->Extensions.ARB_occlusion_query = true;
++
++      if (driQueryOptionb(&intel->optionCache, "fragment_shader"))
++	 ctx->Extensions.ARB_fragment_shader = true;
++
++      if (driQueryOptionb(&intel->optionCache, "stub_occlusion_query"))
++	 ctx->Extensions.ARB_occlusion_query = true;
+    }
+ 
+    if (intel->ctx.Mesa_DXTn
+--- a/src/mesa/drivers/dri/i915/intel_screen.c
++++ b/src/mesa/drivers/dri/i915/intel_screen.c
+@@ -62,6 +62,10 @@ DRI_CONF_BEGIN
+ 	 DRI_CONF_DESC(en, "Enable early Z in classic mode (unstable, 945-only).")
+       DRI_CONF_OPT_END
+ 
++      DRI_CONF_OPT_BEGIN_B(fragment_shader, "true")
++	 DRI_CONF_DESC(en, "Enable limited ARB_fragment_shader support on 915/945.")
++      DRI_CONF_OPT_END
++
+    DRI_CONF_SECTION_END
+    DRI_CONF_SECTION_QUALITY
+       DRI_CONF_FORCE_S3TC_ENABLE("false")
+@@ -75,6 +79,10 @@ DRI_CONF_BEGIN
+       DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS("false")
+       DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED("false")
+ 
++      DRI_CONF_OPT_BEGIN_B(stub_occlusion_query, "false")
++	 DRI_CONF_DESC(en, "Enable stub ARB_occlusion_query support on 915/945.")
++      DRI_CONF_OPT_END
++
+       DRI_CONF_OPT_BEGIN_B(shader_precompile, "true")
+ 	 DRI_CONF_DESC(en, "Perform code generation at shader link time.")
+       DRI_CONF_OPT_END
+@@ -1122,12 +1130,26 @@ set_max_gl_versions(struct intel_screen
+    __DRIscreen *psp = screen->driScrnPriv;
+ 
+    switch (screen->gen) {
+-   case 3:
++   case 3: {
++      bool has_fragment_shader = driQueryOptionb(&screen->optionCache, "fragment_shader");
++      bool has_occlusion_query = driQueryOptionb(&screen->optionCache, "stub_occlusion_query");
++
+       psp->max_gl_core_version = 0;
+       psp->max_gl_es1_version = 11;
+-      psp->max_gl_compat_version = 21;
+-      psp->max_gl_es2_version = 20;
++
++      if (has_fragment_shader && has_occlusion_query) {
++         psp->max_gl_compat_version = 21;
++      } else {
++         psp->max_gl_compat_version = 14;
++      }
++
++      if (has_fragment_shader) {
++         psp->max_gl_es2_version = 20;
++      } else {
++         psp->max_gl_es2_version = 0;
++      }
+       break;
++   }
+    case 2:
+       psp->max_gl_core_version = 0;
+       psp->max_gl_compat_version = 13;
--- mesa-lts-xenial-11.2.0.orig/debian/patches/mesa-Revert-st-vdpau-add-HEVC-support-v2.patch
+++ mesa-lts-xenial-11.2.0/debian/patches/mesa-Revert-st-vdpau-add-HEVC-support-v2.patch
@@ -0,0 +1,205 @@
+From 92e438e135d16c2ab2841849b60606fc8b31074c Mon Sep 17 00:00:00 2001
+From: Timo Aaltonen <tjaalton@debian.org>
+Date: Wed, 25 Nov 2015 14:32:18 +0200
+Subject: [PATCH] Revert "st/vdpau: add HEVC support v2"
+
+This reverts commit 5609a6986f3eb3c452d66d373b6081df5c6fb34c.
+---
+ configure.ac                                     |   2 +-
+ src/gallium/state_trackers/vdpau/decode.c        | 122 +----------------------
+ src/gallium/state_trackers/vdpau/vdpau_private.h |  20 ----
+ 3 files changed, 4 insertions(+), 140 deletions(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -82,7 +82,7 @@ LIBUDEV_REQUIRED=151
+ GLPROTO_REQUIRED=1.4.14
+ LIBOMXIL_BELLAGIO_REQUIRED=0.0
+ LIBVA_REQUIRED=0.38.0
+-VDPAU_REQUIRED=1.1
++VDPAU_REQUIRED=0.4.1
+ WAYLAND_REQUIRED=1.2.0
+ XCB_REQUIRED=1.9.3
+ XCBDRI2_REQUIRED=1.8
+--- a/src/gallium/state_trackers/vdpau/decode.c
++++ b/src/gallium/state_trackers/vdpau/decode.c
+@@ -413,116 +413,6 @@ vlVdpDecoderRenderH264(struct pipe_h264_
+    return VDP_STATUS_OK;
+ }
+ 
+-static VdpStatus
+-vlVdpDecoderRenderH265(struct pipe_h265_picture_desc *picture,
+-                       VdpPictureInfoHEVC *picture_info)
+-{
+-   unsigned i;
+-
+-   picture->pps->sps->chroma_format_idc = picture_info->chroma_format_idc;
+-   picture->pps->sps->separate_colour_plane_flag = picture_info->separate_colour_plane_flag;
+-   picture->pps->sps->pic_width_in_luma_samples = picture_info->pic_width_in_luma_samples;
+-   picture->pps->sps->pic_height_in_luma_samples = picture_info->pic_height_in_luma_samples;
+-   picture->pps->sps->bit_depth_luma_minus8 = picture_info->bit_depth_luma_minus8;
+-   picture->pps->sps->bit_depth_chroma_minus8 = picture_info->bit_depth_chroma_minus8;
+-   picture->pps->sps->log2_max_pic_order_cnt_lsb_minus4 = picture_info->log2_max_pic_order_cnt_lsb_minus4;
+-   picture->pps->sps->sps_max_dec_pic_buffering_minus1 = picture_info->sps_max_dec_pic_buffering_minus1;
+-   picture->pps->sps->log2_min_luma_coding_block_size_minus3 = picture_info->log2_min_luma_coding_block_size_minus3;
+-   picture->pps->sps->log2_diff_max_min_luma_coding_block_size = picture_info->log2_diff_max_min_luma_coding_block_size;
+-   picture->pps->sps->log2_min_transform_block_size_minus2 = picture_info->log2_min_transform_block_size_minus2;
+-   picture->pps->sps->log2_diff_max_min_transform_block_size = picture_info->log2_diff_max_min_transform_block_size;
+-   picture->pps->sps->max_transform_hierarchy_depth_inter = picture_info->max_transform_hierarchy_depth_inter;
+-   picture->pps->sps->max_transform_hierarchy_depth_intra = picture_info->max_transform_hierarchy_depth_intra;
+-   picture->pps->sps->scaling_list_enabled_flag = picture_info->scaling_list_enabled_flag;
+-   memcpy(picture->pps->sps->ScalingList4x4, picture_info->ScalingList4x4, 6*16);
+-   memcpy(picture->pps->sps->ScalingList8x8, picture_info->ScalingList8x8, 6*64);
+-   memcpy(picture->pps->sps->ScalingList16x16, picture_info->ScalingList16x16, 6*64);
+-   memcpy(picture->pps->sps->ScalingList32x32, picture_info->ScalingList32x32, 2*64);
+-   memcpy(picture->pps->sps->ScalingListDCCoeff16x16, picture_info->ScalingListDCCoeff16x16, 6);
+-   memcpy(picture->pps->sps->ScalingListDCCoeff32x32, picture_info->ScalingListDCCoeff32x32, 2);
+-   picture->pps->sps->amp_enabled_flag = picture_info->amp_enabled_flag;
+-   picture->pps->sps->sample_adaptive_offset_enabled_flag = picture_info->sample_adaptive_offset_enabled_flag;
+-   picture->pps->sps->pcm_enabled_flag = picture_info->pcm_enabled_flag;
+-   picture->pps->sps->pcm_sample_bit_depth_luma_minus1 = picture_info->pcm_sample_bit_depth_luma_minus1;
+-   picture->pps->sps->pcm_sample_bit_depth_chroma_minus1 = picture_info->pcm_sample_bit_depth_chroma_minus1;
+-   picture->pps->sps->log2_min_pcm_luma_coding_block_size_minus3 = picture_info->log2_min_pcm_luma_coding_block_size_minus3;
+-   picture->pps->sps->log2_diff_max_min_pcm_luma_coding_block_size = picture_info->log2_diff_max_min_pcm_luma_coding_block_size;
+-   picture->pps->sps->pcm_loop_filter_disabled_flag = picture_info->pcm_loop_filter_disabled_flag;
+-   picture->pps->sps->num_short_term_ref_pic_sets = picture_info->num_short_term_ref_pic_sets;
+-   picture->pps->sps->long_term_ref_pics_present_flag = picture_info->long_term_ref_pics_present_flag;
+-   picture->pps->sps->num_long_term_ref_pics_sps = picture_info->num_long_term_ref_pics_sps;
+-   picture->pps->sps->sps_temporal_mvp_enabled_flag = picture_info->sps_temporal_mvp_enabled_flag;
+-   picture->pps->sps->strong_intra_smoothing_enabled_flag = picture_info->strong_intra_smoothing_enabled_flag;
+-
+-   picture->pps->dependent_slice_segments_enabled_flag = picture_info->dependent_slice_segments_enabled_flag;
+-   picture->pps->output_flag_present_flag = picture_info->output_flag_present_flag;
+-   picture->pps->num_extra_slice_header_bits = picture_info->num_extra_slice_header_bits;
+-   picture->pps->sign_data_hiding_enabled_flag = picture_info->sign_data_hiding_enabled_flag;
+-   picture->pps->cabac_init_present_flag = picture_info->cabac_init_present_flag;
+-   picture->pps->num_ref_idx_l0_default_active_minus1 = picture_info->num_ref_idx_l0_default_active_minus1;
+-   picture->pps->num_ref_idx_l1_default_active_minus1 = picture_info->num_ref_idx_l1_default_active_minus1;
+-   picture->pps->init_qp_minus26 = picture_info->init_qp_minus26;
+-   picture->pps->constrained_intra_pred_flag = picture_info->constrained_intra_pred_flag;
+-   picture->pps->transform_skip_enabled_flag = picture_info->transform_skip_enabled_flag;
+-   picture->pps->cu_qp_delta_enabled_flag = picture_info->cu_qp_delta_enabled_flag;
+-   picture->pps->diff_cu_qp_delta_depth = picture_info->diff_cu_qp_delta_depth;
+-   picture->pps->pps_cb_qp_offset = picture_info->pps_cb_qp_offset;
+-   picture->pps->pps_cr_qp_offset = picture_info->pps_cr_qp_offset;
+-   picture->pps->pps_slice_chroma_qp_offsets_present_flag = picture_info->pps_slice_chroma_qp_offsets_present_flag;
+-   picture->pps->weighted_pred_flag = picture_info->weighted_pred_flag;
+-   picture->pps->weighted_bipred_flag = picture_info->weighted_bipred_flag;
+-   picture->pps->transquant_bypass_enabled_flag = picture_info->transquant_bypass_enabled_flag;
+-   picture->pps->tiles_enabled_flag = picture_info->tiles_enabled_flag;
+-   picture->pps->entropy_coding_sync_enabled_flag = picture_info->entropy_coding_sync_enabled_flag;
+-   picture->pps->num_tile_columns_minus1 = picture_info->num_tile_columns_minus1;
+-   picture->pps->num_tile_rows_minus1 = picture_info->num_tile_rows_minus1;
+-   picture->pps->uniform_spacing_flag = picture_info->uniform_spacing_flag;
+-   memcpy(picture->pps->column_width_minus1, picture_info->column_width_minus1, 20 * 2);
+-   memcpy(picture->pps->row_height_minus1, picture_info->row_height_minus1, 22 * 2);
+-   picture->pps->loop_filter_across_tiles_enabled_flag = picture_info->loop_filter_across_tiles_enabled_flag;
+-   picture->pps->pps_loop_filter_across_slices_enabled_flag = picture_info->pps_loop_filter_across_slices_enabled_flag;
+-   picture->pps->deblocking_filter_control_present_flag = picture_info->deblocking_filter_control_present_flag;
+-   picture->pps->deblocking_filter_override_enabled_flag = picture_info->deblocking_filter_override_enabled_flag;
+-   picture->pps->pps_deblocking_filter_disabled_flag = picture_info->pps_deblocking_filter_disabled_flag;
+-   picture->pps->pps_beta_offset_div2 = picture_info->pps_beta_offset_div2;
+-   picture->pps->pps_tc_offset_div2 = picture_info->pps_tc_offset_div2;
+-   picture->pps->lists_modification_present_flag = picture_info->lists_modification_present_flag;
+-   picture->pps->log2_parallel_merge_level_minus2 = picture_info->log2_parallel_merge_level_minus2;
+-   picture->pps->slice_segment_header_extension_present_flag = picture_info->slice_segment_header_extension_present_flag;
+-
+-   picture->IDRPicFlag = picture_info->IDRPicFlag;
+-   picture->RAPPicFlag = picture_info->RAPPicFlag;
+-   picture->CurrRpsIdx = picture_info->CurrRpsIdx;
+-   picture->NumPocTotalCurr = picture_info->NumPocTotalCurr;
+-   picture->NumDeltaPocsOfRefRpsIdx = picture_info->NumDeltaPocsOfRefRpsIdx;
+-   picture->NumShortTermPictureSliceHeaderBits = picture_info->NumShortTermPictureSliceHeaderBits;
+-   picture->NumLongTermPictureSliceHeaderBits = picture_info->NumLongTermPictureSliceHeaderBits;
+-   picture->CurrPicOrderCntVal = picture_info->CurrPicOrderCntVal;
+-
+-   for (i = 0; i < 16; ++i) {
+-      VdpStatus ret = vlVdpGetReferenceFrame
+-      (
+-         picture_info->RefPics[i],
+-         &picture->ref[i]
+-      );
+-      if (ret != VDP_STATUS_OK)
+-         return ret;
+-
+-      picture->PicOrderCntVal[i] = picture_info->PicOrderCntVal[i];
+-      picture->IsLongTerm[i] = picture_info->IsLongTerm[i];
+-   }
+-
+-   picture->NumPocStCurrBefore = picture_info->NumPocStCurrBefore;
+-   picture->NumPocStCurrAfter = picture_info->NumPocStCurrAfter;
+-   picture->NumPocLtCurr = picture_info->NumPocLtCurr;
+-   memcpy(picture->RefPicSetStCurrBefore, picture_info->RefPicSetStCurrBefore, 8);
+-   memcpy(picture->RefPicSetStCurrAfter, picture_info->RefPicSetStCurrAfter, 8);
+-   memcpy(picture->RefPicSetLtCurr, picture_info->RefPicSetLtCurr, 8);
+-   picture->UseRefPicList = false;
+-
+-   return VDP_STATUS_OK;
+-}
+-
+ static void
+ vlVdpDecoderFixVC1Startcode(uint32_t *num_buffers, const void *buffers[], unsigned sizes[])
+ {
+@@ -573,15 +463,12 @@ vlVdpDecoderRender(VdpDecoder decoder,
+    unsigned i;
+    struct pipe_h264_sps sps_h264 = {};
+    struct pipe_h264_pps pps_h264 = { &sps_h264 };
+-   struct pipe_h265_sps sps_h265 = {};
+-   struct pipe_h265_pps pps_h265 = { &sps_h265 };
+    union {
+       struct pipe_picture_desc base;
+       struct pipe_mpeg12_picture_desc mpeg12;
+       struct pipe_mpeg4_picture_desc mpeg4;
+       struct pipe_vc1_picture_desc vc1;
+       struct pipe_h264_picture_desc h264;
+-      struct pipe_h265_picture_desc h265;
+    } desc;
+ 
+    if (!(picture_info && bitstream_buffers))
+@@ -663,10 +550,6 @@ vlVdpDecoderRender(VdpDecoder decoder,
+       desc.h264.pps = &pps_h264;
+       ret = vlVdpDecoderRenderH264(&desc.h264, (VdpPictureInfoH264 *)picture_info);
+       break;
+-   case PIPE_VIDEO_FORMAT_HEVC:
+-      desc.h265.pps = &pps_h265;
+-      ret = vlVdpDecoderRenderH265(&desc.h265, (VdpPictureInfoHEVC *)picture_info);
+-      break;
+    default:
+       return VDP_STATUS_INVALID_DECODER_PROFILE;
+    }
+--- a/src/gallium/state_trackers/vdpau/vdpau_private.h
++++ b/src/gallium/state_trackers/vdpau/vdpau_private.h
+@@ -261,16 +261,6 @@ ProfileToPipe(VdpDecoderProfile vdpau_pr
+          return PIPE_VIDEO_PROFILE_VC1_MAIN;
+       case VDP_DECODER_PROFILE_VC1_ADVANCED:
+          return PIPE_VIDEO_PROFILE_VC1_ADVANCED;
+-      case VDP_DECODER_PROFILE_HEVC_MAIN:
+-         return PIPE_VIDEO_PROFILE_HEVC_MAIN;
+-      case VDP_DECODER_PROFILE_HEVC_MAIN_10:
+-         return PIPE_VIDEO_PROFILE_HEVC_MAIN_10;
+-      case VDP_DECODER_PROFILE_HEVC_MAIN_STILL:
+-         return PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL;
+-      case VDP_DECODER_PROFILE_HEVC_MAIN_12:
+-         return PIPE_VIDEO_PROFILE_HEVC_MAIN_12;
+-      case VDP_DECODER_PROFILE_HEVC_MAIN_444:
+-         return PIPE_VIDEO_PROFILE_HEVC_MAIN_444;
+       default:
+          return PIPE_VIDEO_PROFILE_UNKNOWN;
+    }
+@@ -302,16 +292,6 @@ PipeToProfile(enum pipe_video_profile p_
+          return VDP_DECODER_PROFILE_VC1_MAIN;
+       case PIPE_VIDEO_PROFILE_VC1_ADVANCED:
+          return VDP_DECODER_PROFILE_VC1_ADVANCED;
+-      case PIPE_VIDEO_PROFILE_HEVC_MAIN:
+-         return VDP_DECODER_PROFILE_HEVC_MAIN;
+-      case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
+-         return VDP_DECODER_PROFILE_HEVC_MAIN_10;
+-      case PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL:
+-         return VDP_DECODER_PROFILE_HEVC_MAIN_STILL;
+-      case PIPE_VIDEO_PROFILE_HEVC_MAIN_12:
+-         return VDP_DECODER_PROFILE_HEVC_MAIN_12;
+-      case PIPE_VIDEO_PROFILE_HEVC_MAIN_444:
+-         return VDP_DECODER_PROFILE_HEVC_MAIN_444;
+       default:
+          assert(0);
+          return -1;
--- mesa-lts-xenial-11.2.0.orig/debian/patches/series
+++ mesa-lts-xenial-11.2.0/debian/patches/series
@@ -0,0 +1,8 @@
+07_gallium-fix-build-failure-on-powerpcspe.diff
+
+
+
+
+# Ubuntu patches.
+i915-dont-default-to-2.1.patch
+mesa-Revert-st-vdpau-add-HEVC-support-v2.patch
--- mesa-lts-xenial-11.2.0.orig/debian/rules
+++ mesa-lts-xenial-11.2.0/debian/rules
@@ -0,0 +1,234 @@
+#!/usr/bin/make -f
+# debian/rules for the Debian mesa package
+# Copyright © 2006 Thierry Reding <thierry@gilfi.de>
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_ARCH_OS   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	confflags += --build=$(DEB_HOST_GNU_TYPE)
+else
+	confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
+
+ifeq (,$(filter $(DEB_HOST_ARCH), armhf))
+buildflags = \
+	$(shell DEB_CFLAGS_MAINT_APPEND=-Wall DEB_CXXFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=configure)
+else
+# Workaround for a variant of LP: #725126
+buildflags = \
+	$(shell DEB_CFLAGS_MAINT_APPEND="-Wall -fno-optimize-sibling-calls" DEB_CXXFLAGS_MAINT_APPEND="-Wall -fno-optimize-sibling-calls" dpkg-buildflags --export=configure)
+endif
+
+# keep a list of files we don't install (yet), but since it's a bit
+# large, use an external file:
+include debian/not-installed
+
+DRI_DRIVERS =
+GALLIUM_DRIVERS =
+EGL_DISPLAYS = x11
+
+confflags_DRI3 = --disable-dri3
+
+# hurd doesn't do direct rendering
+ifeq ($(DEB_HOST_ARCH_OS), hurd)
+	confflags_DIRECT_RENDERING = --disable-driglx-direct
+	DRI_DRIVERS = swrast
+else
+  ifeq ($(DEB_HOST_ARCH_OS), linux)
+	confflags_DRI3 = --enable-dri3
+	# Gallium drivers which require kernel support, not yet ported to non-Linux
+	GALLIUM_DRIVERS += nouveau svga virgl
+
+	# Freedreno requires arm in addition
+	ifneq (,$(filter arm arm64,$(DEB_HOST_ARCH_CPU)))
+		GALLIUM_DRIVERS += freedreno
+	endif
+
+	# vc4 kernel support is only available on armhf
+	ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
+		GALLIUM_DRIVERS += vc4
+	endif
+
+	# svga needs xa state tracker
+	confflags_GALLIUM += --enable-xa
+
+# Non-Linux ports also lack *_CLOEXEC and epoll, so wayland isn't ready yet:
+	EGL_DISPLAYS += wayland
+# Likewise, Mir makes no attempt to be portable to random kernels.
+
+    ifeq (,$(filter $(DEB_HOST_ARCH), s390 s390x))
+	DRI_DRIVERS += nouveau
+    endif
+  endif
+
+	EGL_DISPLAYS += drm
+
+  # Build intel drivers on archs where libdrm-intel is installed
+  ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 kfreebsd-amd64 kfreebsd-i386 x32))
+	DRI_DRIVERS += i915 i965
+  endif
+
+  ifeq (,$(filter $(DEB_HOST_ARCH), s390 s390x))
+    DRI_DRIVERS += r200 radeon
+    GALLIUM_DRIVERS += r600 r300
+  endif
+  ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 armhf))
+	# opencl needs gallium-pipe-loader which needs udev,
+	# so no opencl on kfreebsd.
+	# opencl needs LLVM and Clang, so only build it on the subset
+	# of arches where we have LLVM enabled.
+#	confflags_GALLIUM += --enable-opencl --enable-opencl-icd
+  endif
+
+  # LLVM is required for r300g, radeonsi and llvmpipe:
+  ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf))
+	GALLIUM_DRIVERS += radeonsi
+	confflags_GALLIUM += --enable-gallium-llvm
+	confflags_GALLIUM += ac_cv_path_LLVM_CONFIG=llvm-config-3.8
+	GALLIUM_DRIVERS += swrast
+  else
+	DRI_DRIVERS += swrast
+  endif
+	confflags_DIRECT_RENDERING = --enable-driglx-direct
+	confflags_GALLIUM += --enable-vdpau
+#	confflags_GALLIUM += --enable-va
+endif
+
+confflags_EGL = --with-egl-platforms="$(EGL_DISPLAYS)"
+confflags_GLES = --enable-gles1 --enable-gles2
+confflags_GALLIUM += --with-gallium-drivers="$(GALLIUM_DRIVERS)"
+
+confflags += \
+	--enable-dri \
+	--with-dri-drivers="$(DRI_DRIVERS)" \
+	--with-dri-driverdir=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
+	--with-dri-searchpath='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
+	--disable-osmesa \
+	--enable-glx-tls \
+	--enable-shared-glapi \
+	--enable-texture-float \
+	--disable-xvmc \
+	--disable-omx \
+	$(confflags_DIRECT_RENDERING) \
+	$(confflags_DRI3) \
+	$(confflags_EGL) \
+	$(confflags_GALLIUM) \
+	$(confflags_GLES) \
+	$(buildflags)
+
+override_dh_clean:
+	rm -rf .pc
+	rm -f config.cache config.log config.status
+	rm -f */config.cache */config.log */config.status
+	rm -f conftest* */conftest*
+	rm -rf autom4te.cache */autom4te.cache
+	rm -rf build
+	rm -rf configure bin/config.guess bin/config.sub config.h.in
+	rm -rf $$(find -name Makefile.in)
+	rm -rf aclocal.m4 bin/missing bin/depcomp install-sh bin/ltmain.sh
+	rm -f bin/ar-lib bin/compile bin/ylwrap bin/install-sh
+	for file in debian/*.in; do rm -f $${file%%.in}; done
+	rm -f src/glsl/builtins/tools/texture_builtins.pyc
+	rm -f src/mapi/glapi/gen/*.pyc
+	rm -f src/mesa/main/*.pyc
+	rm -f src/gallium/auxiliary/util/*.pyc
+	rm -f m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4
+
+	dh_clean
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		--disable-silent-rules \
+		$(confflags)
+
+override_dh_auto_install:
+	dh_auto_install
+	for file in debian/*.in; \
+	do \
+		sed -e"s,\$${DEB_HOST_MULTIARCH},$(DEB_HOST_MULTIARCH),g" \
+			$${file} > $${file%%.in}; \
+	done
+
+override_dh_auto_test:
+
+allpkg = $(shell dh_listpackages -s)
+dbgpkg = $(filter %-dbg, $(allpkg))
+otherpkg = $(filter-out %-dbg, $(allpkg))
+havedbgpkg = $(patsubst %-dbg,%,$(dbgpkg))
+nodbgpkg = $(filter-out $(havedbgpkg),$(otherpkg))
+
+override_dh_installchangelogs:
+	dh_installchangelogs -s
+	dh_installchangelogs -pmesa-common-dev-lts-xenial
+
+override_dh_install:
+	# Also get rid of other files which aren't installed. Do not
+	# use -f to ensure we notice disappearing files:
+	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
+	# Files only in git, not in tarballs, OK to use rm -f here:
+	set -e; for file in $(NOT_INSTALLED_EITHER); do rm -f debian/tmp/$$file; done
+	# purge .la files
+	find debian/tmp/ -name '*.la' -exec rm '{}' ';'
+
+	# Copy the hardlinked *_dri.so correctly.
+	install -m755 -d debian/libgl1-mesa-dri-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/dri/
+	mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/dri/*_dri.so \
+	   debian/libgl1-mesa-dri-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/dri/
+
+  ifneq ($(DEB_HOST_ARCH_OS), hurd)
+	# Copy the hardlinked vdpau drivers correctly.
+	install -m755 -d debian/mesa-vdpau-drivers-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/
+	mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/libvdpau*.so* \
+	   debian/mesa-vdpau-drivers-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/
+
+	# Add symlinks to va driver
+#	install -m755 -d debian/mesa-va-drivers-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/dri/
+#	mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/dri/gallium_drv_video.so \
+#	   debian/mesa-va-drivers-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/dri/
+#	for i in nouveau_drv_video.so r600_drv_video.so radeonsi_drv_video.so; do \
+#	    ln -s gallium_drv_video.so \
+#	    debian/mesa-va-drivers-lts-xenial/usr/lib/${DEB_HOST_MULTIARCH}/dri/$${i}; \
+#	done
+  endif
+
+	dh_install -s --fail-missing
+
+	# Create an ld.so.conf which says where to find libGL from Mesa
+	echo "/usr/lib/$(DEB_HOST_MULTIARCH)/mesa" \
+	> $(CURDIR)/debian/libgl1-mesa-glx-lts-xenial/usr/lib/$(DEB_HOST_MULTIARCH)/mesa/ld.so.conf
+
+	# Empty directory for the alternative
+	mkdir -p $(CURDIR)/debian/libgl1-mesa-glx-lts-xenial/usr/lib/$(DEB_HOST_MULTIARCH)/xorg/x11-extra-modules
+
+	# Create an ld.so.conf which says where to find libEGL, libGLES{1,2}
+	# from Mesa.
+	echo "/usr/lib/$(DEB_HOST_MULTIARCH)/mesa-egl" \
+	> $(CURDIR)/debian/libegl1-mesa-lts-xenial/usr/lib/$(DEB_HOST_MULTIARCH)/mesa-egl/ld.so.conf
+
+	# Install bug control and script:
+	set -e; for p in $(allpkg); do \
+		install -d debian/$$p/usr/share/bug/$$p && \
+		install -m 644 debian/local/control debian/$$p/usr/share/bug/$$p && \
+		install -m 755 debian/local/script  debian/$$p/usr/share/bug/$$p; \
+	done
+
+override_dh_builddeb:
+	dh_builddeb -s -- -Zxz
+
+%:
+	dh $@ --with quilt,autoreconf \
+		--parallel \
+		--builddirectory=build/
+
+# For maintainer use only, generate a tarball:
+gentarball: SOURCE=mesa
+gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
+gentarball:
+	git archive --format=tar upstream-experimental --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz
--- mesa-lts-xenial-11.2.0.orig/debian/upstream/signing-key.asc
+++ mesa-lts-xenial-11.2.0/debian/upstream/signing-key.asc
@@ -0,0 +1,618 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+

+/r0Jac/UieMLDFX8ixH7ooSevqX8sSA4UbVuUaOXVr0awYUCvD0d
+=LxfO
+-----END PGP PUBLIC KEY BLOCK-----
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.11 (GNU/Linux)
+

+T0rEAQLWU7eq9U6nd4BXMkokiuzlOKWqsDyXibR3wkhI80kAJw==
+=XSpT
+-----END PGP PUBLIC KEY BLOCK-----
--- mesa-lts-xenial-11.2.0.orig/debian/watch
+++ mesa-lts-xenial-11.2.0/debian/watch
@@ -0,0 +1,4 @@
+#git=git://anongit.freedesktop.org/mesa/mesa
+version=3
+opts="uversionmangle=s/-rc/~rc/,dversionmangle=s/\+repack//,pgpsigurlmangle=s/$/.sig/,pasv" \
+https://mesa.freedesktop.org/archive/([\d\.]*)/ mesa-(.*)\.tar\.gz
--- mesa-lts-xenial-11.2.0.orig/m4/ax_check_compile_flag.m4
+++ mesa-lts-xenial-11.2.0/m4/ax_check_compile_flag.m4
@@ -0,0 +1,72 @@
+# ===========================================================================
+#   http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+#   AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS])
+#
+# DESCRIPTION
+#
+#   Check whether the given FLAG works with the current language's compiler
+#   or gives an error.  (Warnings, however, are ignored)
+#
+#   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
+#   success/failure.
+#
+#   If EXTRA-FLAGS is defined, it is added to the current language's default
+#   flags (e.g. CFLAGS) when the check is done.  The check is thus made with
+#   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to
+#   force the compiler to issue an error when a bad flag is given.
+#
+#   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
+#   macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
+#
+# LICENSE
+#
+#   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
+#   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
+#
+#   This program is free software: you can redistribute it and/or modify it
+#   under the terms of the GNU General Public License as published by the
+#   Free Software Foundation, either version 3 of the License, or (at your
+#   option) any later version.
+#
+#   This program is distributed in the hope that it will be useful, but
+#   WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+#   Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License along
+#   with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#   As a special exception, the respective Autoconf Macro's copyright owner
+#   gives unlimited permission to copy, distribute and modify the configure
+#   scripts that are the output of Autoconf when processing the Macro. You
+#   need not follow the terms of the GNU General Public License when using
+#   or distributing such scripts, even though portions of the text of the
+#   Macro appear in them. The GNU General Public License (GPL) does govern
+#   all other use of the material that constitutes the Autoconf Macro.
+#
+#   This special exception to the GPL applies to versions of the Autoconf
+#   Macro released by the Autoconf Archive. When you make and distribute a
+#   modified version of the Autoconf Macro, you may extend this special
+#   exception to the GPL to apply to your modified version as well.
+
+#serial 2
+
+AC_DEFUN([AX_CHECK_COMPILE_FLAG],
+[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
+AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
+AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
+  ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
+  _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"
+  AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+    [AS_VAR_SET(CACHEVAR,[yes])],
+    [AS_VAR_SET(CACHEVAR,[no])])
+  _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
+AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
+  [m4_default([$2], :)],
+  [m4_default([$3], :)])
+AS_VAR_POPDEF([CACHEVAR])dnl
+])dnl AX_CHECK_COMPILE_FLAGS
--- mesa-lts-xenial-11.2.0.orig/src/compiler/Android.gen.mk
+++ mesa-lts-xenial-11.2.0/src/compiler/Android.gen.mk
@@ -0,0 +1,95 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# included by glsl Android.mk for source generation
+
+ifeq ($(LOCAL_MODULE_CLASS),)
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+endif
+
+intermediates := $(call local-generated-sources-dir)
+
+LOCAL_SRC_FILES := $(LOCAL_SRC_FILES)
+
+LOCAL_C_INCLUDES += \
+	$(intermediates)/nir \
+	$(MESA_TOP)/src/compiler/nir
+
+LOCAL_EXPORT_C_INCLUDE_DIRS += \
+	$(intermediates)/nir \
+	$(MESA_TOP)/src/compiler/nir
+
+LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
+	$(NIR_GENERATED_FILES))
+
+# Modules using libmesa_nir must set LOCAL_GENERATED_SOURCES to this
+MESA_GEN_NIR_H := $(addprefix $(call local-generated-sources-dir)/, \
+	nir/nir_opcodes.h \
+	nir/nir_builder_opcodes.h)
+
+nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+nir_builder_opcodes_deps := \
+	$(LOCAL_PATH)/nir/nir_opcodes.py \
+	$(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+
+$(intermediates)/nir/nir_builder_opcodes.h: $(nir_builder_opcodes_deps)
+	@mkdir -p $(dir $@)
+	$(hide) $(MESA_PYTHON2) $(nir_builder_opcodes_gen) $< > $@
+
+nir_constant_expressions_gen := $(LOCAL_PATH)/nir/nir_constant_expressions.py
+nir_constant_expressions_deps := \
+	$(LOCAL_PATH)/nir/nir_opcodes.py \
+	$(LOCAL_PATH)/nir/nir_constant_expressions.py
+
+$(intermediates)/nir/nir_constant_expressions.c: $(nir_constant_expressions_deps)
+	@mkdir -p $(dir $@)
+	$(hide) $(MESA_PYTHON2) $(nir_constant_expressions_gen) $< > $@
+
+nir_opcodes_h_gen := $(LOCAL_PATH)/nir/nir_opcodes_h.py
+nir_opcodes_h_deps := \
+	$(LOCAL_PATH)/nir/nir_opcodes.py \
+	$(LOCAL_PATH)/nir/nir_opcodes_h.py
+
+$(intermediates)/nir/nir_opcodes.h: $(nir_opcodes_h_deps)
+	@mkdir -p $(dir $@)
+	$(hide) $(MESA_PYTHON2) $(nir_opcodes_h_gen) $< > $@
+
+$(LOCAL_PATH)/nir/nir.h: $(intermediates)/nir/nir_opcodes.h
+
+nir_opcodes_c_gen := $(LOCAL_PATH)/nir/nir_opcodes_c.py
+nir_opcodes_c_deps := \
+	$(LOCAL_PATH)/nir/nir_opcodes.py \
+	$(LOCAL_PATH)/nir/nir_opcodes_c.py
+
+$(intermediates)/nir/nir_opcodes.c: $(nir_opcodes_c_deps)
+	@mkdir -p $(dir $@)
+	$(hide) $(MESA_PYTHON2) $(nir_opcodes_c_gen) $< > $@
+
+nir_opt_algebraic_gen := $(LOCAL_PATH)/nir/nir_opt_algebraic.py
+nir_opt_algebraic_deps := \
+	$(LOCAL_PATH)/nir/nir_opt_algebraic.py \
+	$(LOCAL_PATH)/nir/nir_algebraic.py
+
+$(intermediates)/nir/nir_opt_algebraic.c: $(nir_opt_algebraic_deps)
+	@mkdir -p $(dir $@)
+	$(hide) $(MESA_PYTHON2) $(nir_opt_algebraic_gen) $< > $@
--- mesa-lts-xenial-11.2.0.orig/src/compiler/Android.mk
+++ mesa-lts-xenial-11.2.0/src/compiler/Android.mk
@@ -0,0 +1,67 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2015 Intel Corporation
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+# ---------------------------------------
+# Build libmesa_compiler
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(LIBCOMPILER_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_MODULE := libmesa_compiler
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build libmesa_nir
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(NIR_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_STATIC_LIBRARIES := libmesa_compiler
+
+LOCAL_MODULE := libmesa_nir
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/compiler/glsl/Android.gen.mk
+++ mesa-lts-xenial-11.2.0/src/compiler/glsl/Android.gen.mk
@@ -0,0 +1,78 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# included by glsl Android.mk for source generation
+
+ifeq ($(LOCAL_MODULE_CLASS),)
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+endif
+
+intermediates := $(call local-generated-sources-dir)
+
+LOCAL_SRC_FILES := $(LOCAL_SRC_FILES)
+
+LOCAL_C_INCLUDES += \
+	$(intermediates)/glcpp \
+	$(LOCAL_PATH)/glcpp \
+
+LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
+	$(LIBGLCPP_GENERATED_FILES) \
+	$(LIBGLSL_GENERATED_CXX_FILES))
+
+define local-l-or-ll-to-c-or-cpp
+	@mkdir -p $(dir $@)
+	@echo "Mesa Lex: $(PRIVATE_MODULE) <= $<"
+	$(hide) $(LEX) --nounistd -o$@ $<
+endef
+
+define glsl_local-y-to-c-and-h
+	@mkdir -p $(dir $@)
+	@echo "Mesa Yacc: $(PRIVATE_MODULE) <= $<"
+	$(hide) $(YACC) -o $@ -p "glcpp_parser_" $<
+endef
+
+YACC_HEADER_SUFFIX := .hpp
+
+define local-yy-to-cpp-and-h
+	@mkdir -p $(dir $@)
+	@echo "Mesa Yacc: $(PRIVATE_MODULE) <= $<"
+	$(hide) $(YACC) -p "_mesa_glsl_" -o $@ $<
+	touch $(@:$1=$(YACC_HEADER_SUFFIX))
+	echo '#ifndef '$(@F:$1=_h) > $(@:$1=.h)
+	echo '#define '$(@F:$1=_h) >> $(@:$1=.h)
+	cat $(@:$1=$(YACC_HEADER_SUFFIX)) >> $(@:$1=.h)
+	echo '#endif' >> $(@:$1=.h)
+	rm -f $(@:$1=$(YACC_HEADER_SUFFIX))
+endef
+
+$(intermediates)/glsl_lexer.cpp: $(LOCAL_PATH)/glsl_lexer.ll
+	$(call local-l-or-ll-to-c-or-cpp)
+
+$(intermediates)/glsl_parser.cpp: $(LOCAL_PATH)/glsl_parser.yy
+	$(call local-yy-to-cpp-and-h,.cpp)
+
+$(intermediates)/glcpp/glcpp-lex.c: $(LOCAL_PATH)/glcpp/glcpp-lex.l
+	$(call local-l-or-ll-to-c-or-cpp)
+
+$(intermediates)/glcpp/glcpp-parse.c: $(LOCAL_PATH)/glcpp/glcpp-parse.y
+	$(call glsl_local-y-to-c-and-h)
--- mesa-lts-xenial-11.2.0.orig/src/compiler/glsl/Android.mk
+++ mesa-lts-xenial-11.2.0/src/compiler/glsl/Android.mk
@@ -0,0 +1,75 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# Android.mk for glsl
+
+LOCAL_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+# ---------------------------------------
+# Build libmesa_glsl
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(LIBGLCPP_FILES) \
+	$(LIBGLSL_FILES) \
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_STATIC_LIBRARIES := libmesa_compiler
+
+LOCAL_MODULE := libmesa_glsl
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build glsl_compiler
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(GLSL_COMPILER_CXX_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_STATIC_LIBRARIES := libmesa_glsl libmesa_glsl_utils libmesa_util libmesa_compiler
+
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE := glsl_compiler
+
+include $(MESA_COMMON_MK)
+include $(BUILD_EXECUTABLE)
--- mesa-lts-xenial-11.2.0.orig/src/compiler/glsl/Makefile.am
+++ mesa-lts-xenial-11.2.0/src/compiler/glsl/Makefile.am
@@ -0,0 +1,228 @@
+# Copyright © 2012 Jon TURNEY
+#
+# 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 (including the next
+# paragraph) 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.
+
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/src \
+	-I$(top_srcdir)/src/mapi \
+	-I$(top_srcdir)/src/mesa/ \
+	-I$(top_srcdir)/src/gallium/include \
+	-I$(top_srcdir)/src/gallium/auxiliary \
+	-I$(top_srcdir)/src/glsl/glcpp \
+	-I$(top_srcdir)/src/gtest/include \
+	$(DEFINES)
+AM_CFLAGS = \
+	$(VISIBILITY_CFLAGS) \
+	$(MSVC2013_COMPAT_CFLAGS)
+AM_CXXFLAGS = \
+	$(VISIBILITY_CXXFLAGS) \
+	$(MSVC2013_COMPAT_CXXFLAGS)
+
+EXTRA_DIST = tests glcpp/tests README TODO glcpp/README	\
+	glsl_lexer.ll					\
+	glsl_parser.yy					\
+	glcpp/glcpp-lex.l				\
+	glcpp/glcpp-parse.y				\
+	SConscript
+
+include Makefile.sources
+
+TESTS = glcpp/tests/glcpp-test				\
+	glcpp/tests/glcpp-test-cr-lf			\
+	tests/blob-test					\
+	tests/general-ir-test				\
+	tests/optimization-test				\
+	tests/sampler-types-test                        \
+	tests/uniform-initializer-test
+
+TESTS_ENVIRONMENT= \
+	export PYTHON2=$(PYTHON2); \
+	export PYTHON_FLAGS=$(PYTHON_FLAGS);
+
+noinst_LTLIBRARIES = libglsl.la libglcpp.la
+check_PROGRAMS =					\
+	glcpp/glcpp					\
+	glsl_test					\
+	tests/blob-test					\
+	tests/general-ir-test				\
+	tests/sampler-types-test			\
+	tests/uniform-initializer-test
+
+noinst_PROGRAMS = glsl_compiler
+
+tests_blob_test_SOURCES =				\
+	tests/blob_test.c
+tests_blob_test_LDADD =					\
+	$(top_builddir)/src/glsl/libglsl.la
+
+tests_general_ir_test_SOURCES =		\
+	standalone_scaffolding.cpp			\
+	tests/builtin_variable_test.cpp			\
+	tests/invalidate_locations_test.cpp		\
+	tests/general_ir_test.cpp			\
+	tests/varyings_test.cpp
+tests_general_ir_test_CFLAGS =				\
+	$(PTHREAD_CFLAGS)
+tests_general_ir_test_LDADD =				\
+	$(top_builddir)/src/gtest/libgtest.la		\
+	$(top_builddir)/src/glsl/libglsl.la		\
+	$(top_builddir)/src/libglsl_util.la		\
+	$(PTHREAD_LIBS)
+
+tests_uniform_initializer_test_SOURCES =		\
+	tests/copy_constant_to_storage_tests.cpp	\
+	tests/set_uniform_initializer_tests.cpp		\
+	tests/uniform_initializer_utils.cpp		\
+	tests/uniform_initializer_utils.h
+tests_uniform_initializer_test_CFLAGS =			\
+	$(PTHREAD_CFLAGS)
+tests_uniform_initializer_test_LDADD =			\
+	$(top_builddir)/src/gtest/libgtest.la		\
+	$(top_builddir)/src/glsl/libglsl.la		\
+	$(top_builddir)/src/libglsl_util.la		\
+	$(PTHREAD_LIBS)
+
+tests_sampler_types_test_SOURCES =			\
+	tests/sampler_types_test.cpp
+tests_sampler_types_test_CFLAGS =			\
+	$(PTHREAD_CFLAGS)
+tests_sampler_types_test_LDADD =			\
+	$(top_builddir)/src/gtest/libgtest.la		\
+	$(top_builddir)/src/glsl/libglsl.la		\
+	$(top_builddir)/src/libglsl_util.la		\
+	$(PTHREAD_LIBS)
+
+libglcpp_la_LIBADD =					\
+	$(top_builddir)/src/util/libmesautil.la
+libglcpp_la_SOURCES =					\
+	glcpp/glcpp-lex.c				\
+	glcpp/glcpp-parse.c				\
+	glcpp/glcpp-parse.h				\
+	$(LIBGLCPP_FILES)
+
+glcpp_glcpp_SOURCES =					\
+	glcpp/glcpp.c
+glcpp_glcpp_LDADD =					\
+	libglcpp.la					\
+	$(top_builddir)/src/libglsl_util.la		\
+	-lm
+
+libglsl_la_LIBADD = \
+	$(top_builddir)/src/compiler/nir/libnir.la \
+	libglcpp.la
+
+libglsl_la_SOURCES =					\
+	glsl_lexer.cpp					\
+	glsl_parser.cpp					\
+	glsl_parser.h					\
+	$(LIBGLSL_FILES)
+
+
+glsl_compiler_SOURCES = \
+	$(GLSL_COMPILER_CXX_FILES)
+
+glsl_compiler_LDADD =					\
+	libglsl.la					\
+	$(top_builddir)/src/libglsl_util.la		\
+	$(top_builddir)/src/util/libmesautil.la		\
+	$(PTHREAD_LIBS)
+
+glsl_test_SOURCES = \
+	standalone_scaffolding.cpp \
+	test.cpp \
+	test_optpass.cpp \
+	test_optpass.h
+
+glsl_test_LDADD =					\
+	libglsl.la					\
+	$(top_builddir)/src/libglsl_util.la		\
+	$(PTHREAD_LIBS)
+
+# We write our own rules for yacc and lex below. We'd rather use automake,
+# but automake makes it especially difficult for a number of reasons:
+#
+#  * < automake-1.12 generates .h files from .yy and .ypp files, but
+#    >=automake-1.12 generates .hh and .hpp files respectively. There's no
+#    good way of making a project that uses C++ yacc files compatible with
+#    both versions of automake. Strong work automake developers.
+#
+#  * Since we're generating code from .l/.y files in a subdirectory (glcpp/)
+#    we'd like the resulting generated code to also go in glcpp/ for purposes
+#    of distribution. Automake gives no way to do this.
+#
+#  * Since we're building multiple yacc parsers into one library (and via one
+#    Makefile) we have to use per-target YFLAGS. Using per-target YFLAGS causes
+#    automake to name the resulting generated code as <library-name>_filename.c.
+#    Frankly, that's ugly and we don't want a libglcpp_glcpp_parser.h file.
+
+# In order to make build output print "LEX" and "YACC", we reproduce the
+# automake variables below.
+
+AM_V_LEX = $(am__v_LEX_$(V))
+am__v_LEX_ = $(am__v_LEX_$(AM_DEFAULT_VERBOSITY))
+am__v_LEX_0 = @echo "  LEX     " $@;
+am__v_LEX_1 =
+
+AM_V_YACC = $(am__v_YACC_$(V))
+am__v_YACC_ = $(am__v_YACC_$(AM_DEFAULT_VERBOSITY))
+am__v_YACC_0 = @echo "  YACC    " $@;
+am__v_YACC_1 =
+
+MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
+YACC_GEN = $(AM_V_YACC)$(YACC) $(YFLAGS)
+LEX_GEN = $(AM_V_LEX)$(LEX) $(LFLAGS)
+
+glsl_parser.cpp glsl_parser.h: glsl_parser.yy
+	$(YACC_GEN) -o $@ -p "_mesa_glsl_" --defines=$(builddir)/glsl_parser.h $(srcdir)/glsl_parser.yy
+
+glsl_lexer.cpp: glsl_lexer.ll
+	$(LEX_GEN) -o $@ $(srcdir)/glsl_lexer.ll
+
+glcpp/glcpp-parse.c glcpp/glcpp-parse.h: glcpp/glcpp-parse.y
+	$(MKDIR_GEN)
+	$(YACC_GEN) -o $@ -p "glcpp_parser_" --defines=$(builddir)/glcpp/glcpp-parse.h $(srcdir)/glcpp/glcpp-parse.y
+
+glcpp/glcpp-lex.c: glcpp/glcpp-lex.l
+	$(MKDIR_GEN)
+	$(LEX_GEN) -o $@ $(srcdir)/glcpp/glcpp-lex.l
+
+# Only the parsers (specifically the header files generated at the same time)
+# need to be in BUILT_SOURCES. Though if we list the parser headers YACC is
+# called for the .c/.cpp file and the .h files. By listing the .c/.cpp files
+# YACC is only executed once for each parser. The rest of the generated code
+# will be created at the appropriate times according to standard automake
+# dependency rules.
+BUILT_SOURCES =						\
+	glsl_parser.cpp					\
+	glsl_lexer.cpp					\
+	glcpp/glcpp-parse.c				\
+	glcpp/glcpp-lex.c
+CLEANFILES =						\
+	glcpp/glcpp-parse.h				\
+	glsl_parser.h					\
+	$(BUILT_SOURCES)
+
+clean-local:
+	$(RM) -r subtest-cr subtest-cr-lf subtest-lf subtest-lf-cr
+
+dist-hook:
+	$(RM) glcpp/tests/*.out
+	$(RM) glcpp/tests/subtest*/*.out
--- mesa-lts-xenial-11.2.0.orig/src/compiler/nir/README
+++ mesa-lts-xenial-11.2.0/src/compiler/nir/README
@@ -0,0 +1,118 @@
+New IR, or NIR, is an IR for Mesa intended to sit below GLSL IR and Mesa IR.
+Its design inherits from the various IR's that Mesa has used in the past, as
+well as Direct3D assembly, and it includes a few new ideas as well. It is a
+flat (in terms of using instructions instead of expressions), typeless IR,
+similar to TGSI and Mesa IR.  It also supports SSA (although it doesn't require
+it).
+
+Variables
+=========
+
+NIR includes support for source-level GLSL variables through a structure mostly
+copied from GLSL IR. These will be used for linking and conversion from GLSL IR
+(and later, from an AST), but for the most part, they will be lowered to
+registers (see below) and loads/stores.
+
+Registers
+=========
+
+Registers are light-weight; they consist of a structure that only contains its
+size, its index for liveness analysis, and an optional name for debugging. In
+addition, registers can be local to a function or global to the entire shader;
+the latter will be used in ARB_shader_subroutine for passing parameters and
+getting return values from subroutines. Registers can also be an array, in which
+case they can be accessed indirectly. Each ALU instruction (add, subtract, etc.)
+works directly with registers or SSA values (see below).
+
+SSA
+========
+
+Everywhere a register can be loaded/stored, an SSA value can be used instead.
+The only exception is that arrays/indirect addressing are not supported with
+SSA; although research has been done on extensions of SSA to arrays before, it's
+usually for the purpose of parallelization (which we're not interested in), and
+adds some overhead in the form of adding copies or extra arrays (which is much
+more expensive than introducing copies between non-array registers). SSA uses
+point directly to their corresponding definition, which in turn points to the
+instruction it is part of. This creates an implicit use-def chain and avoids the
+need for an external structure for each SSA register.
+
+Functions
+=========
+
+Support for function calls is mostly similar to GLSL IR. Each shader contains a
+list of functions, and each function has a list of overloads. Each overload
+contains a list of parameters, and may contain an implementation which specifies
+the variables that correspond to the parameters and return value. Inlining a
+function, assuming it has a single return point, is as simple as copying its
+instructions, registers, and local variables into the target function and then
+inserting copies to and from the new parameters as appropriate. After functions
+are inlined and any non-subroutine functions are deleted, parameters and return
+variables will be converted to global variables and then global registers. We
+don't do this lowering earlier (i.e. the fortranizer idea) for a few reasons:
+
+- If we want to do optimizations before link time, we need to have the function
+signature available during link-time.
+
+- If we do any inlining before link time, then we might wind up with the
+inlined function and the non-inlined function using the same global
+variables/registers which would preclude optimization.
+
+Intrinsics
+=========
+
+Any operation (other than function calls and textures) which touches a variable
+or is not referentially transparent is represented by an intrinsic. Intrinsics
+are similar to the idea of a "builtin function," i.e. a function declaration
+whose implementation is provided by the backend, except they are more powerful
+in the following ways:
+
+- They can also load and store registers when appropriate, which limits the
+number of variables needed in later stages of the IR while obviating the need
+for a separate load/store variable instruction.
+
+- Intrinsics can be marked as side-effect free, which permits them to be
+treated like any other instruction when it comes to optimizations. This allows
+load intrinsics to be represented as intrinsics while still being optimized
+away by dead code elimination, common subexpression elimination, etc.
+
+Intrinsics are used for:
+
+- Atomic operations
+- Memory barriers
+- Subroutine calls
+- Geometry shader emitVertex and endPrimitive
+- Loading and storing variables (before lowering)
+- Loading and storing uniforms, shader inputs and outputs, etc (after lowering)
+- Copying variables (cases where in GLSL the destination is a structure or
+array)
+- The kitchen sink
+- ...
+
+Textures
+=========
+
+Unfortunately, there are far too many texture operations to represent each one
+of them with an intrinsic, so there's a special texture instruction similar to
+the GLSL IR one. The biggest difference is that, while the texture instruction
+has a sampler dereference field used just like in GLSL IR, this gets lowered to
+a texture unit index (with a possible indirect offset) while the type
+information of the original sampler is kept around for backends. Also, all the
+non-constant sources are stored in a single array to make it easier for
+optimization passes to iterate over all the sources.
+
+Control Flow
+=========
+
+Like in GLSL IR, control flow consists of a tree of "control flow nodes", which
+include if statements and loops, and jump instructions (break, continue, and
+return). Unlike GLSL IR, though, the leaves of the tree aren't statements but
+basic blocks. Each basic block also keeps track of its successors and
+predecessors, and function implementations keep track of the beginning basic
+block (the first basic block of the function) and the ending basic block (a fake
+basic block that every return statement points to). Together, these elements
+make up the control flow graph, in this case a redundant piece of information on
+top of the control flow tree that will be used by almost all the optimizations.
+There are helper functions to add and remove control flow nodes that also update
+the control flow graph, and so usually it doesn't need to be touched by passes
+that modify control flow nodes.
--- mesa-lts-xenial-11.2.0.orig/src/egl/Android.mk
+++ mesa-lts-xenial-11.2.0/src/egl/Android.mk
@@ -0,0 +1,96 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# Android.mk for libGLES_mesa
+
+LOCAL_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+# ---------------------------------------
+# Build libGLES_mesa
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(LIBEGL_C_FILES) \
+	$(dri2_backend_core_FILES) \
+	drivers/dri2/platform_android.c
+
+LOCAL_CFLAGS := \
+	-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID \
+	-D_EGL_BUILT_IN_DRIVER_DRI2 \
+	-DHAVE_ANDROID_PLATFORM
+
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_CFLAGS_32 := -DDEFAULT_DRIVER_DIR=\"/system/lib/$(MESA_DRI_MODULE_REL_PATH)\"
+LOCAL_CFLAGS_64 := -DDEFAULT_DRIVER_DIR=\"/system/lib64/$(MESA_DRI_MODULE_REL_PATH)\"
+else
+LOCAL_CFLAGS += -DDEFAULT_DRIVER_DIR=\"/system/lib/$(MESA_DRI_MODULE_REL_PATH)\"
+endif
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/egl/main \
+	$(MESA_TOP)/src/egl/drivers/dri2 \
+
+LOCAL_STATIC_LIBRARIES := \
+	libmesa_loader
+
+LOCAL_SHARED_LIBRARIES := \
+	libdl \
+	libhardware \
+	liblog \
+	libcutils \
+	libgralloc_drm \
+
+ifeq ($(shell echo "$(MESA_ANDROID_VERSION) >= 4.2" | bc),1)
+LOCAL_SHARED_LIBRARIES += libsync
+endif
+
+# add libdrm if there are hardware drivers
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DHAVE_LIBDRM
+LOCAL_SHARED_LIBRARIES += libdrm
+endif
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+# require i915_dri and/or i965_dri
+LOCAL_REQUIRED_MODULES += \
+	$(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS)))
+endif # MESA_BUILD_CLASSIC
+
+ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
+LOCAL_REQUIRED_MODULES += gallium_dri
+endif # MESA_BUILD_GALLIUM
+
+
+LOCAL_MODULE := libGLES_mesa
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_MODULE_RELATIVE_PATH := egl
+else
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
+endif
+
+include $(MESA_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/egl/drivers/dri2/platform_android.c
+++ mesa-lts-xenial-11.2.0/src/egl/drivers/dri2/platform_android.c
@@ -0,0 +1,743 @@
+/*
+ * Mesa 3-D graphics library
+ *
+ * Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+ * Copyright (C) 2010-2011 LunarG Inc.
+ *
+ * Based on platform_x11, which has
+ *
+ * Copyright © 2011 Intel Corporation
+ *
+ * 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.
+ */
+
+#include <errno.h>
+#include <dlfcn.h>
+
+#if ANDROID_VERSION >= 0x402
+#include <sync/sync.h>
+#endif
+
+#include "loader.h"
+#include "egl_dri2.h"
+#include "egl_dri2_fallbacks.h"
+#include "gralloc_drm.h"
+
+static int
+get_format_bpp(int native)
+{
+   int bpp;
+
+   switch (native) {
+   case HAL_PIXEL_FORMAT_RGBA_8888:
+   case HAL_PIXEL_FORMAT_RGBX_8888:
+   case HAL_PIXEL_FORMAT_BGRA_8888:
+      bpp = 4;
+      break;
+   case HAL_PIXEL_FORMAT_RGB_888:
+      bpp = 3;
+      break;
+   case HAL_PIXEL_FORMAT_RGB_565:
+      bpp = 2;
+      break;
+   default:
+      bpp = 0;
+      break;
+   }
+
+   return bpp;
+}
+
+static int
+get_native_buffer_name(struct ANativeWindowBuffer *buf)
+{
+   return gralloc_drm_get_gem_handle(buf->handle);
+}
+
+static EGLBoolean
+droid_window_dequeue_buffer(struct dri2_egl_surface *dri2_surf)
+{
+#if ANDROID_VERSION >= 0x0402
+   int fence_fd;
+
+   if (dri2_surf->window->dequeueBuffer(dri2_surf->window, &dri2_surf->buffer,
+                                        &fence_fd))
+      return EGL_FALSE;
+
+   /* If access to the buffer is controlled by a sync fence, then block on the
+    * fence.
+    *
+    * It may be more performant to postpone blocking until there is an
+    * immediate need to write to the buffer. But doing so would require adding
+    * hooks to the DRI2 loader.
+    *
+    * From the ANativeWindow::dequeueBuffer documentation:
+    *
+    *    The libsync fence file descriptor returned in the int pointed to by
+    *    the fenceFd argument will refer to the fence that must signal
+    *    before the dequeued buffer may be written to.  A value of -1
+    *    indicates that the caller may access the buffer immediately without
+    *    waiting on a fence.  If a valid file descriptor is returned (i.e.
+    *    any value except -1) then the caller is responsible for closing the
+    *    file descriptor.
+    */
+    if (fence_fd >= 0) {
+       /* From the SYNC_IOC_WAIT documentation in <linux/sync.h>:
+        *
+        *    Waits indefinitely if timeout < 0.
+        */
+        int timeout = -1;
+        sync_wait(fence_fd, timeout);
+        close(fence_fd);
+   }
+
+   dri2_surf->buffer->common.incRef(&dri2_surf->buffer->common);
+#else
+   if (dri2_surf->window->dequeueBuffer(dri2_surf->window, &dri2_surf->buffer))
+      return EGL_FALSE;
+
+   dri2_surf->buffer->common.incRef(&dri2_surf->buffer->common);
+   dri2_surf->window->lockBuffer(dri2_surf->window, dri2_surf->buffer);
+#endif
+
+   return EGL_TRUE;
+}
+
+static EGLBoolean
+droid_window_enqueue_buffer(struct dri2_egl_surface *dri2_surf)
+{
+#if ANDROID_VERSION >= 0x0402
+   /* Queue the buffer without a sync fence. This informs the ANativeWindow
+    * that it may access the buffer immediately.
+    *
+    * From ANativeWindow::dequeueBuffer:
+    *
+    *    The fenceFd argument specifies a libsync fence file descriptor for
+    *    a fence that must signal before the buffer can be accessed.  If
+    *    the buffer can be accessed immediately then a value of -1 should
+    *    be used.  The caller must not use the file descriptor after it
+    *    is passed to queueBuffer, and the ANativeWindow implementation
+    *    is responsible for closing it.
+    */
+   int fence_fd = -1;
+   dri2_surf->window->queueBuffer(dri2_surf->window, dri2_surf->buffer,
+                                  fence_fd);
+#else
+   dri2_surf->window->queueBuffer(dri2_surf->window, dri2_surf->buffer);
+#endif
+
+   dri2_surf->buffer->common.decRef(&dri2_surf->buffer->common);
+   dri2_surf->buffer = NULL;
+
+   return EGL_TRUE;
+}
+
+static void
+droid_window_cancel_buffer(struct dri2_egl_surface *dri2_surf)
+{
+   /* no cancel buffer? */
+   droid_window_enqueue_buffer(dri2_surf);
+}
+
+static __DRIbuffer *
+droid_alloc_local_buffer(struct dri2_egl_surface *dri2_surf,
+                         unsigned int att, unsigned int format)
+{
+   struct dri2_egl_display *dri2_dpy =
+      dri2_egl_display(dri2_surf->base.Resource.Display);
+
+   if (att >= ARRAY_SIZE(dri2_surf->local_buffers))
+      return NULL;
+
+   if (!dri2_surf->local_buffers[att]) {
+      dri2_surf->local_buffers[att] =
+         dri2_dpy->dri2->allocateBuffer(dri2_dpy->dri_screen, att, format,
+               dri2_surf->base.Width, dri2_surf->base.Height);
+   }
+
+   return dri2_surf->local_buffers[att];
+}
+
+static void
+droid_free_local_buffers(struct dri2_egl_surface *dri2_surf)
+{
+   struct dri2_egl_display *dri2_dpy =
+      dri2_egl_display(dri2_surf->base.Resource.Display);
+   int i;
+
+   for (i = 0; i < ARRAY_SIZE(dri2_surf->local_buffers); i++) {
+      if (dri2_surf->local_buffers[i]) {
+         dri2_dpy->dri2->releaseBuffer(dri2_dpy->dri_screen,
+               dri2_surf->local_buffers[i]);
+         dri2_surf->local_buffers[i] = NULL;
+      }
+   }
+}
+
+static _EGLSurface *
+droid_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type,
+		    _EGLConfig *conf, void *native_window,
+		    const EGLint *attrib_list)
+{
+   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
+   struct dri2_egl_config *dri2_conf = dri2_egl_config(conf);
+   struct dri2_egl_surface *dri2_surf;
+   struct ANativeWindow *window = native_window;
+   const __DRIconfig *config;
+
+   dri2_surf = calloc(1, sizeof *dri2_surf);
+   if (!dri2_surf) {
+      _eglError(EGL_BAD_ALLOC, "droid_create_surface");
+      return NULL;
+   }
+
+   if (!_eglInitSurface(&dri2_surf->base, disp, type, conf, attrib_list))
+      goto cleanup_surface;
+
+   if (type == EGL_WINDOW_BIT) {
+      int format;
+
+      if (!window || window->common.magic != ANDROID_NATIVE_WINDOW_MAGIC) {
+         _eglError(EGL_BAD_NATIVE_WINDOW, "droid_create_surface");
+         goto cleanup_surface;
+      }
+      if (window->query(window, NATIVE_WINDOW_FORMAT, &format)) {
+         _eglError(EGL_BAD_NATIVE_WINDOW, "droid_create_surface");
+         goto cleanup_surface;
+      }
+
+      if (format != dri2_conf->base.NativeVisualID) {
+         _eglLog(_EGL_WARNING, "Native format mismatch: 0x%x != 0x%x",
+               format, dri2_conf->base.NativeVisualID);
+      }
+
+      window->query(window, NATIVE_WINDOW_WIDTH, &dri2_surf->base.Width);
+      window->query(window, NATIVE_WINDOW_HEIGHT, &dri2_surf->base.Height);
+   }
+
+   config = dri2_get_dri_config(dri2_conf, EGL_WINDOW_BIT,
+                                dri2_surf->base.GLColorspace);
+
+   dri2_surf->dri_drawable =
+      (*dri2_dpy->dri2->createNewDrawable)(dri2_dpy->dri_screen, config,
+                                           dri2_surf);
+   if (dri2_surf->dri_drawable == NULL) {
+      _eglError(EGL_BAD_ALLOC, "dri2->createNewDrawable");
+      goto cleanup_surface;
+   }
+
+   if (window) {
+      window->common.incRef(&window->common);
+      dri2_surf->window = window;
+   }
+
+   return &dri2_surf->base;
+
+cleanup_surface:
+   free(dri2_surf);
+
+   return NULL;
+}
+
+static _EGLSurface *
+droid_create_window_surface(_EGLDriver *drv, _EGLDisplay *disp,
+                            _EGLConfig *conf, void *native_window,
+                            const EGLint *attrib_list)
+{
+   return droid_create_surface(drv, disp, EGL_WINDOW_BIT, conf,
+                               native_window, attrib_list);
+}
+
+static _EGLSurface *
+droid_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp,
+			    _EGLConfig *conf, const EGLint *attrib_list)
+{
+   return droid_create_surface(drv, disp, EGL_PBUFFER_BIT, conf,
+			      NULL, attrib_list);
+}
+
+static EGLBoolean
+droid_destroy_surface(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf)
+{
+   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
+   struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf);
+
+   if (!_eglPutSurface(surf))
+      return EGL_TRUE;
+
+   droid_free_local_buffers(dri2_surf);
+
+   if (dri2_surf->base.Type == EGL_WINDOW_BIT) {
+      if (dri2_surf->buffer)
+         droid_window_cancel_buffer(dri2_surf);
+
+      dri2_surf->window->common.decRef(&dri2_surf->window->common);
+   }
+
+   (*dri2_dpy->core->destroyDrawable)(dri2_surf->dri_drawable);
+
+   free(dri2_surf);
+
+   return EGL_TRUE;
+}
+
+static EGLBoolean
+droid_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
+{
+   struct dri2_egl_driver *dri2_drv = dri2_egl_driver(drv);
+   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
+   struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw);
+   _EGLContext *ctx;
+
+   if (dri2_surf->base.Type != EGL_WINDOW_BIT)
+      return EGL_TRUE;
+
+   if (dri2_drv->glFlush) {
+      ctx = _eglGetCurrentContext();
+      if (ctx && ctx->DrawSurface == &dri2_surf->base)
+         dri2_drv->glFlush();
+   }
+
+   dri2_flush_drawable_for_swapbuffers(disp, draw);
+
+   if (dri2_surf->buffer)
+      droid_window_enqueue_buffer(dri2_surf);
+
+   (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
+
+   return EGL_TRUE;
+}
+
+static _EGLImage *
+dri2_create_image_android_native_buffer(_EGLDisplay *disp, _EGLContext *ctx,
+                                        struct ANativeWindowBuffer *buf)
+{
+   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
+   struct dri2_egl_image *dri2_img;
+   int name;
+   EGLint format;
+
+   if (ctx != NULL) {
+      /* From the EGL_ANDROID_image_native_buffer spec:
+       *
+       *     * If <target> is EGL_NATIVE_BUFFER_ANDROID and <ctx> is not
+       *       EGL_NO_CONTEXT, the error EGL_BAD_CONTEXT is generated.
+       */
+      _eglError(EGL_BAD_CONTEXT, "eglCreateEGLImageKHR: for "
+                "EGL_NATIVE_BUFFER_ANDROID, the context must be "
+                "EGL_NO_CONTEXT");
+      return NULL;
+   }
+
+   if (!buf || buf->common.magic != ANDROID_NATIVE_BUFFER_MAGIC ||
+       buf->common.version != sizeof(*buf)) {
+      _eglError(EGL_BAD_PARAMETER, "eglCreateEGLImageKHR");
+      return NULL;
+   }
+
+   name = get_native_buffer_name(buf);
+   if (!name) {
+      _eglError(EGL_BAD_PARAMETER, "eglCreateEGLImageKHR");
+      return NULL;
+   }
+
+   /* see the table in droid_add_configs_for_visuals */
+   switch (buf->format) {
+   case HAL_PIXEL_FORMAT_BGRA_8888:
+      format = __DRI_IMAGE_FORMAT_ARGB8888;
+      break;
+   case HAL_PIXEL_FORMAT_RGB_565:
+      format = __DRI_IMAGE_FORMAT_RGB565;
+      break;
+   case HAL_PIXEL_FORMAT_RGBA_8888:
+      format = __DRI_IMAGE_FORMAT_ABGR8888;
+      break;
+   case HAL_PIXEL_FORMAT_RGBX_8888:
+      format = __DRI_IMAGE_FORMAT_XBGR8888;
+      break;
+   case HAL_PIXEL_FORMAT_RGB_888:
+      /* unsupported */
+   default:
+      _eglLog(_EGL_WARNING, "unsupported native buffer format 0x%x", buf->format);
+      return NULL;
+      break;
+   }
+
+   dri2_img = calloc(1, sizeof(*dri2_img));
+   if (!dri2_img) {
+      _eglError(EGL_BAD_ALLOC, "droid_create_image_mesa_drm");
+      return NULL;
+   }
+
+   if (!_eglInitImage(&dri2_img->base, disp)) {
+      free(dri2_img);
+      return NULL;
+   }
+
+   dri2_img->dri_image =
+      dri2_dpy->image->createImageFromName(dri2_dpy->dri_screen,
+					   buf->width,
+					   buf->height,
+					   format,
+					   name,
+					   buf->stride,
+					   dri2_img);
+   if (!dri2_img->dri_image) {
+      free(dri2_img);
+      _eglError(EGL_BAD_ALLOC, "droid_create_image_mesa_drm");
+      return NULL;
+   }
+
+   return &dri2_img->base;
+}
+
+static _EGLImage *
+droid_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
+		       _EGLContext *ctx, EGLenum target,
+		       EGLClientBuffer buffer, const EGLint *attr_list)
+{
+   switch (target) {
+   case EGL_NATIVE_BUFFER_ANDROID:
+      return dri2_create_image_android_native_buffer(disp, ctx,
+            (struct ANativeWindowBuffer *) buffer);
+   default:
+      return dri2_create_image_khr(drv, disp, ctx, target, buffer, attr_list);
+   }
+}
+
+static void
+droid_flush_front_buffer(__DRIdrawable * driDrawable, void *loaderPrivate)
+{
+}
+
+static int
+droid_get_buffers_parse_attachments(struct dri2_egl_surface *dri2_surf,
+                                    unsigned int *attachments, int count)
+{
+   int num_buffers = 0, i;
+
+   /* fill dri2_surf->buffers */
+   for (i = 0; i < count * 2; i += 2) {
+      __DRIbuffer *buf, *local;
+
+      assert(num_buffers < ARRAY_SIZE(dri2_surf->buffers));
+      buf = &dri2_surf->buffers[num_buffers];
+
+      switch (attachments[i]) {
+      case __DRI_BUFFER_BACK_LEFT:
+         if (dri2_surf->base.Type == EGL_WINDOW_BIT) {
+            buf->attachment = attachments[i];
+            buf->name = get_native_buffer_name(dri2_surf->buffer);
+            buf->cpp = get_format_bpp(dri2_surf->buffer->format);
+            buf->pitch = dri2_surf->buffer->stride * buf->cpp;
+            buf->flags = 0;
+
+            if (buf->name)
+               num_buffers++;
+
+            break;
+         }
+         /* fall through for pbuffers */
+      case __DRI_BUFFER_DEPTH:
+      case __DRI_BUFFER_STENCIL:
+      case __DRI_BUFFER_ACCUM:
+      case __DRI_BUFFER_DEPTH_STENCIL:
+      case __DRI_BUFFER_HIZ:
+         local = droid_alloc_local_buffer(dri2_surf,
+               attachments[i], attachments[i + 1]);
+
+         if (local) {
+            *buf = *local;
+            num_buffers++;
+         }
+         break;
+      case __DRI_BUFFER_FRONT_LEFT:
+      case __DRI_BUFFER_FRONT_RIGHT:
+      case __DRI_BUFFER_FAKE_FRONT_LEFT:
+      case __DRI_BUFFER_FAKE_FRONT_RIGHT:
+      case __DRI_BUFFER_BACK_RIGHT:
+      default:
+         /* no front or right buffers */
+         break;
+      }
+   }
+
+   return num_buffers;
+}
+
+static __DRIbuffer *
+droid_get_buffers_with_format(__DRIdrawable * driDrawable,
+			     int *width, int *height,
+			     unsigned int *attachments, int count,
+			     int *out_count, void *loaderPrivate)
+{
+   struct dri2_egl_surface *dri2_surf = loaderPrivate;
+   struct dri2_egl_display *dri2_dpy =
+      dri2_egl_display(dri2_surf->base.Resource.Display);
+   int i;
+
+   if (dri2_surf->base.Type == EGL_WINDOW_BIT) {
+      /* try to dequeue the next back buffer */
+      if (!dri2_surf->buffer && !droid_window_dequeue_buffer(dri2_surf))
+         return NULL;
+
+      /* free outdated buffers and update the surface size */
+      if (dri2_surf->base.Width != dri2_surf->buffer->width ||
+          dri2_surf->base.Height != dri2_surf->buffer->height) {
+         droid_free_local_buffers(dri2_surf);
+         dri2_surf->base.Width = dri2_surf->buffer->width;
+         dri2_surf->base.Height = dri2_surf->buffer->height;
+      }
+   }
+
+   dri2_surf->buffer_count =
+      droid_get_buffers_parse_attachments(dri2_surf, attachments, count);
+
+   if (width)
+      *width = dri2_surf->base.Width;
+   if (height)
+      *height = dri2_surf->base.Height;
+
+   *out_count = dri2_surf->buffer_count;;
+
+   return dri2_surf->buffers;
+}
+
+static EGLBoolean
+droid_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
+{
+   struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy);
+   const struct {
+      int format;
+      unsigned int rgba_masks[4];
+   } visuals[] = {
+      { HAL_PIXEL_FORMAT_RGBA_8888, { 0xff, 0xff00, 0xff0000, 0xff000000 } },
+      { HAL_PIXEL_FORMAT_RGBX_8888, { 0xff, 0xff00, 0xff0000, 0x0 } },
+      { HAL_PIXEL_FORMAT_RGB_888,   { 0xff, 0xff00, 0xff0000, 0x0 } },
+      { HAL_PIXEL_FORMAT_RGB_565,   { 0xf800, 0x7e0, 0x1f, 0x0 } },
+      { HAL_PIXEL_FORMAT_BGRA_8888, { 0xff0000, 0xff00, 0xff, 0xff000000 } },
+      { 0, { 0, 0, 0, 0 } }
+   };
+   EGLint config_attrs[] = {
+     EGL_NATIVE_VISUAL_ID,   0,
+     EGL_NATIVE_VISUAL_TYPE, 0,
+     EGL_FRAMEBUFFER_TARGET_ANDROID, EGL_TRUE,
+     EGL_RECORDABLE_ANDROID, EGL_TRUE,
+     EGL_NONE
+   };
+   int count, i, j;
+
+   count = 0;
+   for (i = 0; visuals[i].format; i++) {
+      int format_count = 0;
+
+      config_attrs[1] = visuals[i].format;
+      config_attrs[3] = visuals[i].format;
+
+      for (j = 0; dri2_dpy->driver_configs[j]; j++) {
+         const EGLint surface_type = EGL_WINDOW_BIT | EGL_PBUFFER_BIT;
+         struct dri2_egl_config *dri2_conf;
+         unsigned int double_buffered = 0;
+
+         dri2_dpy->core->getConfigAttrib(dri2_dpy->driver_configs[j],
+            __DRI_ATTRIB_DOUBLE_BUFFER, &double_buffered);
+
+         /* support only double buffered configs */
+         if (!double_buffered)
+            continue;
+
+         dri2_conf = dri2_add_config(dpy, dri2_dpy->driver_configs[j],
+               count + 1, surface_type, config_attrs, visuals[i].rgba_masks);
+         if (dri2_conf) {
+            count++;
+            format_count++;
+         }
+      }
+
+      if (!format_count) {
+         _eglLog(_EGL_DEBUG, "No DRI config supports native format 0x%x",
+               visuals[i].format);
+      }
+   }
+
+   /* post-process configs */
+   for (i = 0; i < dpy->Configs->Size; i++) {
+      struct dri2_egl_config *dri2_conf = dri2_egl_config(dpy->Configs->Elements[i]);
+
+      /* there is no front buffer so no OpenGL */
+      dri2_conf->base.RenderableType &= ~EGL_OPENGL_BIT;
+      dri2_conf->base.Conformant &= ~EGL_OPENGL_BIT;
+   }
+
+   return (count != 0);
+}
+
+static int
+droid_open_device(void)
+{
+   const hw_module_t *mod;
+   int fd = -1, err;
+
+   err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &mod);
+   if (!err) {
+      const gralloc_module_t *gr = (gralloc_module_t *) mod;
+
+      err = -EINVAL;
+      if (gr->perform)
+         err = gr->perform(gr, GRALLOC_MODULE_PERFORM_GET_DRM_FD, &fd);
+   }
+   if (err || fd < 0) {
+      _eglLog(_EGL_WARNING, "fail to get drm fd");
+      fd = -1;
+   }
+
+   return (fd >= 0) ? dup(fd) : -1;
+}
+
+/* support versions < JellyBean */
+#ifndef ALOGW
+#define ALOGW LOGW
+#endif
+#ifndef ALOGD
+#define ALOGD LOGD
+#endif
+#ifndef ALOGI
+#define ALOGI LOGI
+#endif
+
+static void
+droid_log(EGLint level, const char *msg)
+{
+   switch (level) {
+   case _EGL_DEBUG:
+      ALOGD("%s", msg);
+      break;
+   case _EGL_INFO:
+      ALOGI("%s", msg);
+      break;
+   case _EGL_WARNING:
+      ALOGW("%s", msg);
+      break;
+   case _EGL_FATAL:
+      LOG_FATAL("%s", msg);
+      break;
+   default:
+      break;
+   }
+}
+
+static struct dri2_egl_display_vtbl droid_display_vtbl = {
+   .authenticate = NULL,
+   .create_window_surface = droid_create_window_surface,
+   .create_pixmap_surface = dri2_fallback_create_pixmap_surface,
+   .create_pbuffer_surface = droid_create_pbuffer_surface,
+   .destroy_surface = droid_destroy_surface,
+   .create_image = droid_create_image_khr,
+   .swap_interval = dri2_fallback_swap_interval,
+   .swap_buffers = droid_swap_buffers,
+   .swap_buffers_with_damage = dri2_fallback_swap_buffers_with_damage,
+   .swap_buffers_region = dri2_fallback_swap_buffers_region,
+   .post_sub_buffer = dri2_fallback_post_sub_buffer,
+   .copy_buffers = dri2_fallback_copy_buffers,
+   .query_buffer_age = dri2_fallback_query_buffer_age,
+   .create_wayland_buffer_from_image = dri2_fallback_create_wayland_buffer_from_image,
+   .get_sync_values = dri2_fallback_get_sync_values,
+   .get_dri_drawable = dri2_surface_get_dri_drawable,
+};
+
+EGLBoolean
+dri2_initialize_android(_EGLDriver *drv, _EGLDisplay *dpy)
+{
+   struct dri2_egl_display *dri2_dpy;
+   const char *err;
+
+   _eglSetLogProc(droid_log);
+
+   loader_set_logger(_eglLog);
+
+   dri2_dpy = calloc(1, sizeof(*dri2_dpy));
+   if (!dri2_dpy)
+      return _eglError(EGL_BAD_ALLOC, "eglInitialize");
+
+   dpy->DriverData = (void *) dri2_dpy;
+
+   dri2_dpy->fd = droid_open_device();
+   if (dri2_dpy->fd < 0) {
+      err = "DRI2: failed to open device";
+      goto cleanup_display;
+   }
+
+   dri2_dpy->driver_name = loader_get_driver_for_fd(dri2_dpy->fd, 0);
+   if (dri2_dpy->driver_name == NULL) {
+      err = "DRI2: failed to get driver name";
+      goto cleanup_device;
+   }
+
+   if (!dri2_load_driver(dpy)) {
+      err = "DRI2: failed to load driver";
+      goto cleanup_driver_name;
+   }
+
+   dri2_dpy->dri2_loader_extension.base.name = __DRI_DRI2_LOADER;
+   dri2_dpy->dri2_loader_extension.base.version = 3;
+   dri2_dpy->dri2_loader_extension.getBuffers = NULL;
+   dri2_dpy->dri2_loader_extension.flushFrontBuffer = droid_flush_front_buffer;
+   dri2_dpy->dri2_loader_extension.getBuffersWithFormat =
+      droid_get_buffers_with_format;
+
+   dri2_dpy->extensions[0] = &dri2_dpy->dri2_loader_extension.base;
+   dri2_dpy->extensions[1] = &image_lookup_extension.base;
+   dri2_dpy->extensions[2] = &use_invalidate.base;
+   dri2_dpy->extensions[3] = NULL;
+
+   if (!dri2_create_screen(dpy)) {
+      err = "DRI2: failed to create screen";
+      goto cleanup_driver;
+   }
+
+   if (!droid_add_configs_for_visuals(drv, dpy)) {
+      err = "DRI2: failed to add configs";
+      goto cleanup_screen;
+   }
+
+   dpy->Extensions.ANDROID_framebuffer_target = EGL_TRUE;
+   dpy->Extensions.ANDROID_image_native_buffer = EGL_TRUE;
+   dpy->Extensions.ANDROID_recordable = EGL_TRUE;
+   dpy->Extensions.KHR_image_base = EGL_TRUE;
+
+   /* Fill vtbl last to prevent accidentally calling virtual function during
+    * initialization.
+    */
+   dri2_dpy->vtbl = &droid_display_vtbl;
+
+   return EGL_TRUE;
+
+cleanup_screen:
+   dri2_dpy->core->destroyScreen(dri2_dpy->dri_screen);
+cleanup_driver:
+   dlclose(dri2_dpy->driver);
+cleanup_driver_name:
+   free(dri2_dpy->driver_name);
+cleanup_device:
+   close(dri2_dpy->fd);
+cleanup_display:
+   free(dri2_dpy);
+
+   return _eglError(EGL_NOT_INITIALIZED, err);
+}
--- mesa-lts-xenial-11.2.0.orig/src/gallium/Android.common.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/Android.common.mk
@@ -0,0 +1,40 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# src/gallium/Android.common.mk
+
+LOCAL_C_INCLUDES += \
+	$(GALLIUM_TOP)/include \
+	$(GALLIUM_TOP)/auxiliary \
+	$(GALLIUM_TOP)/winsys \
+	$(GALLIUM_TOP)/drivers
+
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_C_INCLUDES += \
+	external/llvm/include \
+	external/llvm/device/include \
+	external/libcxx/include \
+	external/elfutils/$(if $(filter true,$(MESA_LOLLIPOP_BUILD)),0.153/)libelf
+endif
+
+include $(MESA_COMMON_MK)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/Android.mk
@@ -0,0 +1,99 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# src/gallium/Android.mk
+
+GALLIUM_TOP := $(call my-dir)
+GALLIUM_COMMON_MK := $(GALLIUM_TOP)/Android.common.mk
+
+SUBDIRS := auxiliary
+SUBDIRS += auxiliary/pipe-loader
+
+#
+# Gallium drivers and their respective winsys
+#
+
+# swrast
+ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/sw/dri drivers/softpipe
+endif
+
+# freedreno
+ifneq ($(filter freedreno, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/freedreno/drm drivers/freedreno
+endif
+
+# i915g
+ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/i915/drm drivers/i915
+endif
+
+# ilo
+ifneq ($(filter ilo, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/intel/drm drivers/ilo
+endif
+
+# nouveau
+ifneq ($(filter nouveau, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += \
+	winsys/nouveau/drm \
+	drivers/nouveau
+endif
+
+# r300g/r600g/radeonsi
+ifneq ($(filter r300g r600g radeonsi, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/radeon/drm
+ifneq ($(filter r300g, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += drivers/r300
+endif
+ifneq ($(filter r600g radeonsi, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += drivers/radeon
+ifneq ($(filter r600g, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += drivers/r600
+endif
+ifneq ($(filter radeonsi, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += drivers/radeonsi
+SUBDIRS += winsys/amdgpu/drm
+endif
+endif
+endif
+
+# vc4
+ifneq ($(filter vc4, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/vc4/drm drivers/vc4
+endif
+
+# virgl
+ifneq ($(filter virgl, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/virgl/drm winsys/virgl/vtest drivers/virgl
+endif
+
+# vmwgfx
+ifneq ($(filter vmwgfx, $(MESA_GPU_DRIVERS)),)
+SUBDIRS += winsys/svga/drm drivers/svga
+endif
+
+# Gallium state trackers and target for dri
+SUBDIRS += state_trackers/dri targets/dri
+
+include $(call all-named-subdir-makefiles,$(SUBDIRS))
--- mesa-lts-xenial-11.2.0.orig/src/gallium/auxiliary/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/auxiliary/Android.mk
@@ -0,0 +1,70 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES and GENERATED_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES) \
+	$(NIR_SOURCES) \
+	$(VL_STUB_SOURCES)
+
+LOCAL_C_INCLUDES := \
+	$(GALLIUM_TOP)/auxiliary/util
+
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_SRC_FILES += \
+	$(GALLIVM_SOURCES) \
+	$(GALLIVM_CPP_SOURCES)
+
+LOCAL_CPPFLAGS := -std=c++11
+endif
+
+# We need libmesa_nir to get NIR's generated include directories.
+LOCAL_MODULE := libmesa_gallium
+LOCAL_STATIC_LIBRARIES += libmesa_nir
+
+# generate sources
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+intermediates := $(call local-generated-sources-dir)
+LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/, $(GENERATED_SOURCES))
+
+$(LOCAL_GENERATED_SOURCES): PRIVATE_PYTHON := $(MESA_PYTHON2)
+$(LOCAL_GENERATED_SOURCES): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PYTHON) $^ > $@
+
+$(intermediates)/indices/u_indices_gen.c \
+$(intermediates)/indices/u_unfilled_gen.c \
+$(intermediates)/util/u_format_srgb.c: $(intermediates)/%.c: $(LOCAL_PATH)/%.py
+	$(transform-generated-source)
+
+$(intermediates)/util/u_format_table.c: $(intermediates)/%.c: $(LOCAL_PATH)/%.py $(LOCAL_PATH)/util/u_format.csv
+	$(transform-generated-source)
+
+LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H)
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/auxiliary/gallivm/f.cpp
+++ mesa-lts-xenial-11.2.0/src/gallium/auxiliary/gallivm/f.cpp
@@ -0,0 +1,101 @@
+/**************************************************************************
+ *
+ * (C) Copyright VMware, Inc 2010.
+ * (C) Copyright John Maddock 2006.
+ * Use, modification and distribution are subject to the
+ * Boost Software License, Version 1.0. (See accompanying file
+ * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ *
+ **************************************************************************/
+
+
+/*
+ * This file allows to compute the minimax polynomial coefficients we use
+ * for fast exp2/log2.
+ *
+ * How to use this source:
+ *
+ * - Download and build the NTL library from
+ *   http://shoup.net/ntl/download.html , or install libntl-dev package if on
+ *   Debian.
+ *
+ * - Download boost source code matching to your distro. 
+ *
+ * - Goto libs/math/minimax and replace f.cpp with this file.
+ *
+ * - Build as
+ *
+ *   g++ -o minimax -I /path/to/ntl/include main.cpp f.cpp /path/to/ntl/src/ntl.a
+ *
+ * - Run as 
+ *
+ *    ./minimax
+ *
+ * - For example, to compute exp2 5th order polynomial between [0, 1] do:
+ *
+ *    variant 0
+ *    range 0 1
+ *    order 5 0
+ *    step 200
+ *    info
+ *
+ *  and take the coefficients from the P = { ... } array.
+ *
+ * - To compute log2 4th order polynomial between [0, 1/9] do:
+ *
+ *    variant 1
+ *    range 0 0.111111112
+ *    order 4 0
+ *    step 200
+ *    info
+ *
+ * - For more info see
+ * http://www.boost.org/doc/libs/1_47_0/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/minimax.html
+ */
+
+#define L22
+#include <boost/math/bindings/rr.hpp>
+#include <boost/math/tools/polynomial.hpp>
+
+#include <cmath>
+
+boost::math::ntl::RR exp2(const boost::math::ntl::RR& x)
+{
+      return exp(x*log(2.0));
+}
+
+boost::math::ntl::RR log2(const boost::math::ntl::RR& x)
+{
+      return log(x)/log(2.0);
+}
+
+boost::math::ntl::RR f(const boost::math::ntl::RR& x, int variant)
+{
+   switch(variant)
+   {
+   case 0:
+      return exp2(x);
+
+   case 1:
+      return log2((1.0 + sqrt(x))/(1.0 - sqrt(x)))/sqrt(x);
+   }
+
+   return 0;
+}
+
+
+void show_extra(
+   const boost::math::tools::polynomial<boost::math::ntl::RR>& n, 
+   const boost::math::tools::polynomial<boost::math::ntl::RR>& d, 
+   const boost::math::ntl::RR& x_offset, 
+   const boost::math::ntl::RR& y_offset, 
+   int variant)
+{
+   switch(variant)
+   {
+   default:
+      // do nothing here...
+      ;
+   }
+}
+
--- mesa-lts-xenial-11.2.0.orig/src/gallium/auxiliary/pipe-loader/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/auxiliary/pipe-loader/Android.mk
@@ -0,0 +1,49 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2015 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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.
+
+# NOTE: Currently we build only a 'static' pipe-loader
+LOCAL_PATH := $(call my-dir)
+
+# get COMMON_SOURCES and DRM_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_CFLAGS := \
+	-DHAVE_PIPE_LOADER_DRI \
+	-DDROP_PIPE_LOADER_MISC \
+	-DGALLIUM_STATIC_TARGETS
+
+LOCAL_SRC_FILES := $(COMMON_SOURCES)
+
+LOCAL_MODULE := libmesa_pipe_loader
+
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DHAVE_LIBDRM
+LOCAL_SRC_FILES += $(DRM_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_STATIC_LIBRARIES := libmesa_loader
+endif
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/freedreno/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/freedreno/.dir-locals.el
@@ -0,0 +1,8 @@
+((prog-mode
+  (indent-tabs-mode . true)
+  (tab-width . 4)
+  (c-basic-offset . 4)
+  (c-file-style . "k&r")
+  (fill-column . 78)
+  )
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/freedreno/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/freedreno/Android.mk
@@ -0,0 +1,48 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES) \
+	$(a2xx_SOURCES) \
+	$(a3xx_SOURCES)	\
+	$(a4xx_SOURCES) \
+	$(ir3_SOURCES)
+
+#LOCAL_CFLAGS := \
+#	-Wno-packed-bitfield-compat
+
+LOCAL_C_INCLUDES := \
+	$(LOCAL_PATH)/ir3
+
+LOCAL_GENERATED_SOURCES := $(MESA_GEN_NIR_H)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_freedreno
+LOCAL_STATIC_LIBRARIES := libmesa_glsl libmesa_nir
+LOCAL_MODULE := libmesa_pipe_freedreno
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/i915/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/i915/Android.mk
@@ -0,0 +1,36 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_MODULE := libmesa_pipe_i915
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/ilo/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/ilo/Android.mk
@@ -0,0 +1,35 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2013 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_MODULE := libmesa_pipe_ilo
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/nouveau/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/nouveau/Android.mk
@@ -0,0 +1,48 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES) \
+	$(NV30_C_SOURCES) \
+	$(NV50_CODEGEN_SOURCES) \
+	$(NV50_C_SOURCES) \
+	$(NVC0_CODEGEN_SOURCES) \
+	$(NVC0_C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_nouveau
+LOCAL_MODULE := libmesa_pipe_nouveau
+
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_C_INCLUDES := external/libcxx/include
+else
+include external/stlport/libstlport.mk
+endif
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/r300/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/r300/Android.mk
@@ -0,0 +1,43 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa
+
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_radeon
+LOCAL_MODULE := libmesa_pipe_r300
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/r600/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/r600/.dir-locals.el
@@ -0,0 +1,11 @@
+((prog-mode
+  (indent-tabs-mode . true)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/r600/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/r600/Android.mk
@@ -0,0 +1,42 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES) $(CXX_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_radeon
+LOCAL_MODULE := libmesa_pipe_r600
+
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_C_INCLUDES := external/libcxx/include
+else
+include external/stlport/libstlport.mk
+endif
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/radeon/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/radeon/.dir-locals.el
@@ -0,0 +1,11 @@
+((prog-mode
+  (indent-tabs-mode . true)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/radeon/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/radeon/Android.mk
@@ -0,0 +1,41 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_SRC_FILES += $(LLVM_C_FILES)
+endif
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_radeon
+LOCAL_MODULE := libmesa_pipe_radeon
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/radeonsi/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/radeonsi/.dir-locals.el
@@ -0,0 +1,11 @@
+((prog-mode
+  (indent-tabs-mode . true)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/radeonsi/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/radeonsi/Android.mk
@@ -0,0 +1,48 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES and GENERATED_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_radeon
+LOCAL_MODULE := libmesa_pipe_radeonsi
+
+# generate sources
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+intermediates := $(call local-generated-sources-dir)
+LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/, $(GENERATED_SOURCES))
+
+$(LOCAL_GENERATED_SOURCES): PRIVATE_PYTHON := $(MESA_PYTHON2)
+$(LOCAL_GENERATED_SOURCES): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PYTHON) $^ > $@
+
+$(intermediates)/sid_tables.h:  $(intermediates)/%.h: $(LOCAL_PATH)/%.py $(LOCAL_PATH)/sid.h
+	$(transform-generated-source)
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/softpipe/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/softpipe/Android.mk
@@ -0,0 +1,37 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES)
+
+LOCAL_MODULE := libmesa_pipe_softpipe
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/svga/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/svga/Android.mk
@@ -0,0 +1,38 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+
+LOCAL_MODULE := libmesa_pipe_svga
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/vc4/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/vc4/.dir-locals.el
@@ -0,0 +1,12 @@
+((prog-mode
+  (indent-tabs-mode . nil)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ (makefile-mode (indent-tabs-mode . t))
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/vc4/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/vc4/Android.mk
@@ -0,0 +1,39 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES)
+
+LOCAL_GENERATED_SOURCES := $(MESA_GEN_NIR_H)
+
+LOCAL_SHARED_LIBRARIES := libdrm
+# We need libmesa_nir to get NIR's generated include directories.
+LOCAL_STATIC_LIBRARIES := libmesa_nir
+LOCAL_MODULE := libmesa_pipe_vc4
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/vc4/kernel/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/vc4/kernel/.dir-locals.el
@@ -0,0 +1,12 @@
+((prog-mode
+  (indent-tabs-mode . t)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ (makefile-mode (indent-tabs-mode . t))
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/vc4/kernel/README
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/vc4/kernel/README
@@ -0,0 +1,6 @@
+This is a mirror of the kernel validation code into the userspace GL library.
+It is only built when USE_VC4_SIMULATOR is defined, for compiling the driver
+on an x86 system with the simpenrose simulator.  It allows testing of changes
+across the kernel and userspace with exposure to most of the software stack,
+on a higher-performance and more-debuggable environment than the native
+hardware.
--- mesa-lts-xenial-11.2.0.orig/src/gallium/drivers/virgl/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/drivers/virgl/Android.mk
@@ -0,0 +1,35 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_MODULE := libmesa_pipe_virgl
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/state_trackers/dri/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/state_trackers/dri/Android.mk
@@ -0,0 +1,57 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2015 Chih-Wei Huang <cwhuang@linux.org.tw>
+# Copyright (C) 2015 Android-x86 Open Source Project
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(common_SOURCES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+	$(LOCAL_PATH) \
+	$(LOCAL_C_INCLUDES) \
+
+LOCAL_STATIC_LIBRARIES := \
+	libmesa_dri_common \
+
+ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_SRC_FILES += $(drisw_SOURCES)
+endif
+
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_SRC_FILES += $(dri2_SOURCES)
+LOCAL_SHARED_LIBRARIES := libdrm
+endif
+
+LOCAL_MODULE := libmesa_st_dri
+
+LOCAL_GENERATED_SOURCES := $(MESA_DRI_OPTIONS_H)
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/targets/dri/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/targets/dri/Android.mk
@@ -0,0 +1,135 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2015 Chih-Wei Huang <cwhuang@linux.org.tw>
+# Copyright (C) 2015 Android-x86 Open Source Project
+#
+# 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_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := gallium_dri
+
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_MODULE_RELATIVE_PATH := $(MESA_DRI_MODULE_REL_PATH)
+else
+LOCAL_MODULE_PATH := $(MESA_DRI_MODULE_PATH)
+LOCAL_UNSTRIPPED_PATH := $(MESA_DRI_MODULE_UNSTRIPPED_PATH)
+endif
+
+LOCAL_SRC_FILES := target.c
+
+LOCAL_CFLAGS :=
+
+LOCAL_SHARED_LIBRARIES := \
+	libdl \
+	libglapi \
+	libexpat \
+
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DHAVE_LIBDRM
+LOCAL_SHARED_LIBRARIES += libdrm
+endif
+
+ifneq ($(filter freedreno,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_FREEDRENO
+gallium_DRIVERS += libmesa_winsys_freedreno libmesa_pipe_freedreno
+LOCAL_SHARED_LIBRARIES += libdrm_freedreno
+endif
+ifneq ($(filter i915g,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_i915 libmesa_pipe_i915
+LOCAL_SHARED_LIBRARIES += libdrm_intel
+LOCAL_CFLAGS += -DGALLIUM_I915
+endif
+ifneq ($(filter ilo,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_intel libmesa_pipe_ilo
+LOCAL_SHARED_LIBRARIES += libdrm_intel
+LOCAL_CFLAGS += -DGALLIUM_ILO
+endif
+ifneq ($(filter nouveau,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS +=  libmesa_winsys_nouveau libmesa_pipe_nouveau
+LOCAL_CFLAGS += -DGALLIUM_NOUVEAU
+LOCAL_SHARED_LIBRARIES += libdrm_nouveau
+endif
+ifneq ($(filter r%,$(MESA_GPU_DRIVERS)),)
+ifneq ($(filter r300g,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_r300
+LOCAL_CFLAGS += -DGALLIUM_R300
+endif
+ifneq ($(filter r600g,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_r600
+LOCAL_CFLAGS += -DGALLIUM_R600
+endif
+ifneq ($(filter radeonsi,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_radeonsi libmesa_winsys_amdgpu
+LOCAL_SHARED_LIBRARIES += libLLVM libdrm_amdgpu
+LOCAL_CFLAGS += -DGALLIUM_RADEONSI
+endif
+gallium_DRIVERS += libmesa_winsys_radeon libmesa_pipe_radeon
+LOCAL_SHARED_LIBRARIES += libdrm_radeon
+endif
+ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_dri
+LOCAL_CFLAGS += -DGALLIUM_SOFTPIPE
+endif
+ifneq ($(filter vc4,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_VC4
+gallium_DRIVERS += libmesa_winsys_vc4 libmesa_pipe_vc4
+endif
+ifneq ($(filter virgl,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_VIRGL
+gallium_DRIVERS += libmesa_winsys_virgl libmesa_winsys_virgl_vtest libmesa_pipe_virgl
+endif
+ifneq ($(filter vmwgfx,$(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_svga libmesa_pipe_svga
+LOCAL_CFLAGS += -DGALLIUM_VMWGFX
+endif
+ifneq ($(filter nouveau r600g,$(MESA_GPU_DRIVERS)),)
+LOCAL_SHARED_LIBRARIES += $(if $(filter true,$(MESA_LOLLIPOP_BUILD)),libc++,libstlport)
+endif
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+	$(gallium_DRIVERS) \
+	libmesa_st_dri \
+	libmesa_st_mesa \
+	libmesa_glsl \
+	libmesa_compiler \
+	libmesa_nir \
+	libmesa_dri_common \
+	libmesa_megadriver_stub \
+	libmesa_gallium \
+	libmesa_pipe_loader \
+	libmesa_util \
+	libmesa_loader \
+
+LOCAL_STATIC_LIBRARIES :=
+
+ifeq ($(MESA_ENABLE_LLVM),true)
+LOCAL_STATIC_LIBRARIES += \
+	libLLVMR600CodeGen \
+	libLLVMR600Desc \
+	libLLVMR600Info \
+	libLLVMR600AsmPrinter \
+	libelf
+LOCAL_LDLIBS += $(if $(filter true,$(MESA_LOLLIPOP_BUILD)),-lgcc)
+endif
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/amdgpu/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/amdgpu/drm/Android.mk
@@ -0,0 +1,47 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_CFLAGS := \
+	$(AMDGPU_CFLAGS) \
+	-DBRAHMA_BUILD=1
+
+LOCAL_C_INCLUDES := \
+	$(LOCAL_PATH)/addrlib \
+	$(LOCAL_PATH)/addrlib/core \
+	$(LOCAL_PATH)/addrlib/inc/chip/r800 \
+	$(LOCAL_PATH)/addrlib/r800/chip
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_amdgpu
+LOCAL_MODULE := libmesa_winsys_amdgpu
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/freedreno/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/freedreno/drm/Android.mk
@@ -0,0 +1,34 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_freedreno
+LOCAL_MODULE := libmesa_winsys_freedreno
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/i915/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/i915/drm/Android.mk
@@ -0,0 +1,37 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_intel
+LOCAL_MODULE := libmesa_winsys_i915
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/intel/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/intel/drm/Android.mk
@@ -0,0 +1,36 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2013 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_intel
+LOCAL_MODULE := libmesa_winsys_intel
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/nouveau/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/nouveau/drm/Android.mk
@@ -0,0 +1,37 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_nouveau
+LOCAL_MODULE := libmesa_winsys_nouveau
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/radeon/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/radeon/.dir-locals.el
@@ -0,0 +1,12 @@
+((prog-mode
+  (indent-tabs-mode . nil)
+  (tab-width . 8)
+  (c-basic-offset . 4)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  (eval . (progn
+	    (c-set-offset 'innamespace '0)
+	    (c-set-offset 'inline-open '0)))
+  )
+ (makefile-mode (indent-tabs-mode . t))
+ )
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/radeon/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/radeon/drm/Android.mk
@@ -0,0 +1,37 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm libdrm_radeon
+LOCAL_MODULE := libmesa_winsys_radeon
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/svga/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/svga/drm/Android.mk
@@ -0,0 +1,43 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64
+
+LOCAL_C_INCLUDES := \
+	$(GALLIUM_TOP)/drivers/svga \
+	$(GALLIUM_TOP)/drivers/svga/include
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_MODULE := libmesa_winsys_svga
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/sw/dri/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/sw/dri/Android.mk
@@ -0,0 +1,35 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2015 Chih-Wei Huang <cwhuang@linux.org.tw>
+# Copyright (C) 2015 Android-x86 Open Source Project
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_MODULE := libmesa_winsys_sw_dri
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/vc4/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/vc4/drm/Android.mk
@@ -0,0 +1,34 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_MODULE := libmesa_winsys_vc4
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/virgl/drm/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/virgl/drm/Android.mk
@@ -0,0 +1,34 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_MODULE := libmesa_winsys_virgl
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/gallium/winsys/virgl/vtest/Android.mk
+++ mesa-lts-xenial-11.2.0/src/gallium/winsys/virgl/vtest/Android.mk
@@ -0,0 +1,33 @@
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+# get C_SOURCES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(C_SOURCES)
+
+LOCAL_MODULE := libmesa_winsys_virgl_vtest
+
+include $(GALLIUM_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/loader/Android.mk
+++ mesa-lts-xenial-11.2.0/src/loader/Android.mk
@@ -0,0 +1,46 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2014 Emil Velikov <emil.l.velikov@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+# ---------------------------------------
+# Build libmesa_loader
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(LOADER_C_FILES)
+
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DHAVE_LIBDRM
+LOCAL_SHARED_LIBRARIES := libdrm
+endif
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+
+LOCAL_MODULE := libmesa_loader
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/mapi/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mapi/Android.mk
@@ -0,0 +1,78 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# Android.mk for glapi
+
+LOCAL_PATH := $(call my-dir)
+
+mapi_abi_headers :=
+
+# ---------------------------------------
+# Build libglapi
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+abi_header := shared-glapi/glapi_mapi_tmp.h
+
+LOCAL_SRC_FILES := \
+	entry.c \
+	mapi_glapi.c \
+	stub.c \
+	table.c \
+	u_current.c \
+	u_execmem.c
+
+LOCAL_CFLAGS := \
+	-DMAPI_MODE_GLAPI \
+	-DMAPI_ABI_HEADER=\"$(abi_header)\"
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi
+
+LOCAL_MODULE := libglapi
+
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+intermediates := $(call local-generated-sources-dir)
+abi_header := $(intermediates)/$(abi_header)
+LOCAL_GENERATED_SOURCES := $(abi_header)
+
+$(abi_header): PRIVATE_PRINTER := shared-glapi
+
+mapi_abi_headers += $(abi_header)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
+
+
+mapi_abi_deps := \
+	$(wildcard $(LOCAL_PATH)/glapi/gen/*.py) \
+	$(wildcard $(LOCAL_PATH)/glapi/gen/*.xml) \
+	$(LOCAL_PATH)/mapi_abi.py
+
+$(mapi_abi_headers): PRIVATE_SCRIPT := $(MESA_PYTHON2) $(LOCAL_PATH)/mapi_abi.py
+$(mapi_abi_headers): PRIVATE_APIXML := $(LOCAL_PATH)/glapi/gen/gl_and_es_API.xml
+$(mapi_abi_headers): $(mapi_abi_deps)
+	@mkdir -p $(dir $@)
+	@echo "target $(PRIVATE_PRINTER): $(PRIVATE_MODULE) <= $(PRIVATE_APIXML)"
+	$(hide) $(PRIVATE_SCRIPT) --printer $(PRIVATE_PRINTER) --mode lib $(PRIVATE_APIXML) > $@
--- mesa-lts-xenial-11.2.0.orig/src/mapi/glapi/gen/next_available_offset.sh
+++ mesa-lts-xenial-11.2.0/src/mapi/glapi/gen/next_available_offset.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+#
+# (C) Copyright IBM Corporation 2004
+# All Rights Reserved.
+#
+# 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
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, 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 (including the next
+# paragraph) 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 NON-INFRINGEMENT.  IN NO EVENT SHALL
+# IBM AND/OR ITS SUPPLIERS 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.
+#
+# Authors:
+#    Ian Romanick <idr@us.ibm.com>
+
+# Trivial shell script to search the API definition file and print out the
+# next numerically available API entry-point offset.  This could probably
+# be made smarter, but it would be better to use the existin Python
+# framework to do that.  This is just a quick-and-dirty hack.
+
+num=$(grep 'offset="' gl_API.xml |\
+    sed 's/.\+ offset="//g;s/".*$//g' |\
+    grep -v '?' |\
+    sort -rn |\
+    head -1)
+    
+echo $((num + 1))
--- mesa-lts-xenial-11.2.0.orig/src/mapi/mapi.c
+++ mesa-lts-xenial-11.2.0/src/mapi/mapi.c
@@ -0,0 +1,189 @@
+/*
+ * Mesa 3-D graphics library
+ *
+ * Copyright (C) 2010 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.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "u_current.h"
+#include "mapi.h"
+#include "stub.h"
+#include "table.h"
+
+/* dynamic stubs will run out before this array */
+static const struct mapi_stub *mapi_stub_map[MAPI_TABLE_NUM_SLOTS];
+static int mapi_num_stubs;
+
+static const struct mapi_stub *
+get_stub(const char *name, const struct mapi_stub *alias)
+{
+   const struct mapi_stub *stub;
+
+   stub = stub_find_public(name);
+   if (!stub) {
+      struct mapi_stub *dyn = stub_find_dynamic(name, 1);
+      if (dyn) {
+         stub_fix_dynamic(dyn, alias);
+         stub = dyn;
+      }
+   }
+
+   return stub;
+}
+
+/**
+ * Initialize mapi.  spec consists of NULL-separated strings.  The first string
+ * denotes the version.  It is followed by variable numbers of entries.  Each
+ * entry can have multiple names.  An empty name terminates an entry.  An empty
+ * entry terminates the spec.  A spec of two entries, Foo and Bar, is as
+ * follows
+ *
+ *   "1\0"
+ *   "Foo\0"
+ *   "FooEXT\0"
+ *   "\0"
+ *   "Bar\0"
+ *   "\0"
+ */
+void
+mapi_init(const char *spec)
+{
+   static mtx_t mutex = _MTX_INITIALIZER_NP;
+   const char *p;
+   int ver, count;
+
+   mtx_lock(&mutex);
+
+   /* already initialized */
+   if (mapi_num_stubs) {
+      mtx_unlock(&mutex);
+      return;
+   }
+
+   count = 0;
+   p = spec;
+
+   /* parse version string */
+   ver = atoi(p);
+   if (ver != 1) {
+      mtx_unlock(&mutex);
+      return;
+   }
+   p += strlen(p) + 1;
+
+   while (*p) {
+      const struct mapi_stub *stub;
+
+      stub = get_stub(p, NULL);
+      /* out of dynamic entries */
+      if (!stub)
+         break;
+      p += strlen(p) + 1;
+
+      while (*p) {
+         get_stub(p, stub);
+         p += strlen(p) + 1;
+      }
+
+      mapi_stub_map[count++] = stub;
+      p++;
+   }
+
+   mapi_num_stubs = count;
+
+   mtx_unlock(&mutex);
+}
+
+/**
+ * Return the address of an entry.  Optionally generate the entry if it does
+ * not exist.
+ */
+mapi_proc
+mapi_get_proc_address(const char *name)
+{
+   const struct mapi_stub *stub;
+
+   stub = stub_find_public(name);
+   if (!stub)
+      stub = stub_find_dynamic(name, 0);
+
+   return (stub) ? (mapi_proc) stub_get_addr(stub) : NULL;
+}
+
+/**
+ * Create a dispatch table.
+ */
+struct mapi_table *
+mapi_table_create(void)
+{
+   const struct mapi_table *noop = table_get_noop();
+   struct mapi_table *tbl;
+
+   tbl = malloc(MAPI_TABLE_SIZE);
+   if (tbl)
+      memcpy(tbl, noop, MAPI_TABLE_SIZE);
+
+   return tbl;
+}
+
+/**
+ * Destroy a dispatch table.
+ */
+void
+mapi_table_destroy(struct mapi_table *tbl)
+{
+   free(tbl);
+}
+
+/**
+ * Fill a dispatch table.  The order of the procs is determined when mapi_init
+ * is called.
+ */
+void
+mapi_table_fill(struct mapi_table *tbl, const mapi_proc *procs)
+{
+   const struct mapi_table *noop = table_get_noop();
+   int i;
+
+   for (i = 0; i < mapi_num_stubs; i++) {
+      const struct mapi_stub *stub = mapi_stub_map[i];
+      int slot = stub_get_slot(stub);
+      mapi_func func = (mapi_func) procs[i];
+
+      if (!func)
+         func = table_get_func(noop, slot);
+      table_set_func(tbl, slot, func);
+   }
+}
+
+/**
+ * Make a dispatch table current.
+ */
+void
+mapi_table_make_current(const struct mapi_table *tbl)
+{
+   u_current_set_table(tbl);
+}
--- mesa-lts-xenial-11.2.0.orig/src/mapi/mapi.h
+++ mesa-lts-xenial-11.2.0/src/mapi/mapi.h
@@ -0,0 +1,63 @@
+/*
+ * Mesa 3-D graphics library
+ *
+ * Copyright (C) 2010 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.
+ *
+ * Authors:
+ *    Chia-I Wu <olv@lunarg.com>
+ */
+
+#ifndef _MAPI_H_
+#define _MAPI_H_
+
+#ifdef _WIN32
+#ifdef MAPI_DLL_EXPORTS
+#define MAPI_EXPORT __declspec(dllexport)
+#else
+#define MAPI_EXPORT __declspec(dllimport)
+#endif
+#else /* _WIN32 */
+#define MAPI_EXPORT PUBLIC
+#endif
+
+typedef void (*mapi_proc)(void);
+
+struct mapi_table;
+
+MAPI_EXPORT void
+mapi_init(const char *spec);
+
+MAPI_EXPORT mapi_proc
+mapi_get_proc_address(const char *name);
+
+MAPI_EXPORT struct mapi_table *
+mapi_table_create(void);
+
+MAPI_EXPORT void
+mapi_table_destroy(struct mapi_table *tbl);
+
+MAPI_EXPORT void
+mapi_table_fill(struct mapi_table *tbl, const mapi_proc *procs);
+
+MAPI_EXPORT void
+mapi_table_make_current(const struct mapi_table *tbl);
+
+#endif /* _MAPI_H_ */
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.gen.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.gen.mk
@@ -0,0 +1,155 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# included by core mesa Android.mk for source generation
+
+ifeq ($(LOCAL_MODULE_CLASS),)
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+endif
+
+intermediates := $(call local-generated-sources-dir)
+
+# This is the list of auto-generated files: sources and headers
+sources := \
+	main/enums.c \
+	main/api_exec.c \
+	main/dispatch.h \
+	main/format_pack.c \
+	main/format_unpack.c \
+	main/format_info.h \
+	main/remap_helper.h \
+	main/get_hash.h
+
+LOCAL_SRC_FILES := $(filter-out $(sources), $(LOCAL_SRC_FILES))
+
+LOCAL_C_INCLUDES += $(intermediates)/main
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+sources += x86/matypes.h
+LOCAL_C_INCLUDES += $(intermediates)/x86
+endif
+endif
+
+sources += main/git_sha1.h
+
+sources := $(addprefix $(intermediates)/, $(sources))
+
+LOCAL_GENERATED_SOURCES += $(sources)
+
+glapi := $(MESA_TOP)/src/mapi/glapi/gen
+
+dispatch_deps := \
+	$(wildcard $(glapi)/*.py) \
+	$(wildcard $(glapi)/*.xml)
+
+define es-gen
+	@mkdir -p $(dir $@)
+	@echo "Gen ES: $(PRIVATE_MODULE) <= $(notdir $(@))"
+	$(hide) $(PRIVATE_SCRIPT) $(1) $(PRIVATE_XML) > $@
+endef
+
+$(intermediates)/main/git_sha1.h:
+	@mkdir -p $(dir $@)
+	@echo "GIT-SHA1: $(PRIVATE_MODULE) <= git"
+	$(hide) touch $@
+	$(hide) if which git > /dev/null; then \
+			git --git-dir $(PRIVATE_PATH)/../../.git log -n 1 --oneline | \
+			sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
+			> $@; \
+		fi
+
+matypes_deps := \
+	$(BUILD_OUT_EXECUTABLES)/mesa_gen_matypes$(BUILD_EXECUTABLE_SUFFIX) \
+	$(LOCAL_PATH)/main/mtypes.h \
+	$(LOCAL_PATH)/tnl/t_context.h
+
+$(intermediates)/x86/matypes.h: $(matypes_deps) 
+	@mkdir -p $(dir $@)
+	@echo "MATYPES: $(PRIVATE_MODULE) <= $(notdir $@)"
+	$(hide) $< > $@
+
+$(intermediates)/main/dispatch.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(glapi)/gl_table.py
+$(intermediates)/main/dispatch.h: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
+
+$(intermediates)/main/dispatch.h: $(dispatch_deps)
+	$(call es-gen, $* -m remap_table)
+
+$(intermediates)/main/remap_helper.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(glapi)/remap_helper.py
+$(intermediates)/main/remap_helper.h: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
+
+$(intermediates)/main/remap_helper.h: $(dispatch_deps)
+	$(call es-gen, $*)
+
+$(intermediates)/main/enums.c: PRIVATE_SCRIPT :=$(MESA_PYTHON2) $(glapi)/gl_enums.py
+$(intermediates)/main/enums.c: PRIVATE_XML := -f $(glapi)/../registry/gl.xml
+
+$(intermediates)/main/enums.c: $(dispatch_deps)
+	$(call es-gen)
+
+$(intermediates)/main/api_exec.c: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(glapi)/gl_genexec.py
+$(intermediates)/main/api_exec.c: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
+
+$(intermediates)/main/api_exec.c: $(dispatch_deps)
+	$(call es-gen)
+
+GET_HASH_GEN := $(LOCAL_PATH)/main/get_hash_generator.py
+
+$(intermediates)/main/get_hash.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(GET_HASH_GEN)
+$(intermediates)/main/get_hash.h: PRIVATE_XML := -f $(glapi)/gl_and_es_API.xml
+$(intermediates)/main/get_hash.h: $(glapi)/gl_and_es_API.xml \
+               $(LOCAL_PATH)/main/get_hash_params.py $(GET_HASH_GEN)
+	$(call es-gen)
+
+FORMAT_INFO := $(LOCAL_PATH)/main/format_info.py
+format_info_deps := \
+	$(LOCAL_PATH)/main/formats.csv \
+	$(LOCAL_PATH)/main/format_parser.py \
+	$(FORMAT_INFO)
+
+$(intermediates)/main/format_info.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(FORMAT_INFO)
+$(intermediates)/main/format_info.h: PRIVATE_XML :=
+$(intermediates)/main/format_info.h: $(format_info_deps)
+	$(call es-gen, $<)
+
+FORMAT_PACK := $(LOCAL_PATH)/main/format_pack.py
+format_pack_deps := \
+	$(LOCAL_PATH)/main/formats.csv \
+	$(LOCAL_PATH)/main/format_parser.py \
+	$(FORMAT_PACK)
+
+$(intermediates)/main/format_pack.c: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(FORMAT_PACK)
+$(intermediates)/main/format_pack.c: PRIVATE_XML :=
+$(intermediates)/main/format_pack.c: $(format_pack_deps)
+	$(call es-gen, $<)
+
+FORMAT_UNPACK := $(LOCAL_PATH)/main/format_unpack.py
+format_unpack_deps := \
+	$(LOCAL_PATH)/main/formats.csv \
+	$(LOCAL_PATH)/main/format_parser.py \
+	$(FORMAT_UNPACK)
+
+$(intermediates)/main/format_unpack.c: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(FORMAT_UNPACK)
+$(intermediates)/main/format_unpack.c: PRIVATE_XML :=
+$(intermediates)/main/format_unpack.c: $(format_unpack_deps)
+	$(call es-gen, $<)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.libmesa_dricore.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.libmesa_dricore.mk
@@ -0,0 +1,72 @@
+# Copyright 2012 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# ----------------------------------------------------------------------
+# libmesa_dricore.a
+# ----------------------------------------------------------------------
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+
+LOCAL_PATH := $(call my-dir)
+
+# Import the following variables:
+#     MESA_FILES
+#     X86_FILES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_dricore
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+LOCAL_SRC_FILES := \
+	$(MESA_FILES)
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+	LOCAL_SRC_FILES += $(X86_FILES)
+endif # x86
+endif # MESA_ENABLE_ASM
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+	libmesa_sse41
+LOCAL_CFLAGS := \
+	-msse4.1 \
+       -DUSE_SSE41
+endif
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa/main \
+	$(MESA_TOP)/src/compiler/nir \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_WHOLE_STATIC_LIBRARIES += \
+	libmesa_program
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+endif # MESA_BUILD_CLASSIC
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.libmesa_glsl_utils.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.libmesa_glsl_utils.mk
@@ -0,0 +1,76 @@
+# Copyright 2012 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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_PATH := $(call my-dir)
+
+#
+# The libmesa_glsl_utils libraries allow us to avoid a circular dependency
+# between core mesa and glsl.
+#
+
+# ---------------------------------------
+# libmesa_glsl_utils.a for target
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_glsl_utils
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/compiler/nir \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_SRC_FILES := \
+	main/imports.c \
+	program/prog_hash_table.c \
+	program/symbol_table.c \
+	program/dummy_errors.c
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# libmesa_glsl_utils.a for host
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_glsl_utils
+LOCAL_IS_HOST_MODULE := true
+LOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/compiler/nir \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_SRC_FILES := \
+	main/imports.c \
+	program/prog_hash_table.c \
+	program/symbol_table.c \
+	program/dummy_errors.c
+
+include $(MESA_COMMON_MK)
+include $(BUILD_HOST_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.libmesa_sse41.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.libmesa_sse41.mk
@@ -0,0 +1,44 @@
+# Copyright 2012 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+
+LOCAL_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_sse41
+
+LOCAL_SRC_FILES += \
+	$(X86_SSE41_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+endif
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.libmesa_st_mesa.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.libmesa_st_mesa.mk
@@ -0,0 +1,70 @@
+# Copyright 2012 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# ----------------------------------------------------------------------
+# libmesa_st_mesa.a
+# ----------------------------------------------------------------------
+
+ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
+
+LOCAL_PATH := $(call my-dir)
+
+# Import variables:
+# 	MESA_GALLIUM_FILES.
+# 	X86_FILES
+include $(LOCAL_PATH)/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_st_mesa
+
+LOCAL_SRC_FILES := \
+	$(MESA_GALLIUM_FILES)
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+	LOCAL_SRC_FILES += $(X86_FILES)
+endif # x86
+endif # MESA_ENABLE_ASM
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+	libmesa_sse41
+LOCAL_CFLAGS := \
+       -DUSE_SSE41
+endif
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa/main \
+	$(MESA_TOP)/src/compiler/nir \
+	$(MESA_TOP)/src/gallium/auxiliary \
+	$(MESA_TOP)/src/gallium/include
+
+LOCAL_WHOLE_STATIC_LIBRARIES += \
+	libmesa_program
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+endif # MESA_BUILD_GALLIUM
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.mesa_gen_matypes.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.mesa_gen_matypes.mk
@@ -0,0 +1,47 @@
+# Copyright 2012 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# 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.
+
+# ---------------------------------------------------------------------
+# host executable: mesa_gen_matypes
+# ---------------------------------------------------------------------
+
+ifeq ($(strip $(MESA_ENABLE_ASM)),true)
+ifeq ($(TARGET_ARCH),x86)
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := mesa_gen_matypes
+LOCAL_IS_HOST_MODULE := true
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi
+
+LOCAL_SRC_FILES := \
+	x86/gen_matypes.c
+
+include $(MESA_COMMON_MK)
+include $(BUILD_HOST_EXECUTABLE)
+
+endif # x86
+endif # MESA_ENABLE_ASM
--- mesa-lts-xenial-11.2.0.orig/src/mesa/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/Android.mk
@@ -0,0 +1,29 @@
+# Copyright 2012 Intel Corporation
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Android.mesa_gen_matypes.mk
+include $(LOCAL_PATH)/Android.libmesa_glsl_utils.mk
+include $(LOCAL_PATH)/Android.libmesa_dricore.mk
+include $(LOCAL_PATH)/Android.libmesa_st_mesa.mk
+include $(LOCAL_PATH)/Android.libmesa_sse41.mk
+
+include $(LOCAL_PATH)/program/Android.mk
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/Android.mk
@@ -0,0 +1,70 @@
+#
+# Copyright (C) 2011 Intel Corporation
+#
+# 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_PATH := $(call my-dir)
+
+# Import mesa_dri_common_INCLUDES.
+include $(LOCAL_PATH)/common/Makefile.sources
+
+#-----------------------------------------------
+# Variables common to all DRI drivers
+
+MESA_DRI_CFLAGS := \
+	-DHAVE_ANDROID_PLATFORM
+
+MESA_DRI_C_INCLUDES := \
+	$(addprefix $(MESA_TOP)/, $(mesa_dri_common_INCLUDES)) \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary \
+	external/expat/lib
+
+MESA_DRI_WHOLE_STATIC_LIBRARIES := \
+	libmesa_glsl \
+	libmesa_compiler \
+	libmesa_nir \
+	libmesa_megadriver_stub \
+	libmesa_dri_common \
+	libmesa_dricore \
+	libmesa_util
+
+MESA_DRI_SHARED_LIBRARIES := \
+	libcutils \
+	libdl \
+	libdrm \
+	libexpat \
+	libglapi \
+	liblog
+
+#-----------------------------------------------
+# Build drivers and libmesa_dri_common
+
+SUBDIRS := common
+
+ifneq ($(filter i915, $(MESA_GPU_DRIVERS)),)
+	SUBDIRS += i915
+endif
+
+ifneq ($(filter i965, $(MESA_GPU_DRIVERS)),)
+	SUBDIRS += i965
+endif
+
+include $(foreach d, $(SUBDIRS), $(LOCAL_PATH)/$(d)/Android.mk)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/common/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/common/Android.mk
@@ -0,0 +1,113 @@
+#
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2011 Intel Corporation
+#
+# 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.
+#
+
+#
+# Build libmesa_dri_common
+#
+
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_MODULE := libmesa_dri_common
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+intermediates := $(call local-generated-sources-dir)
+
+LOCAL_C_INCLUDES := \
+    $(MESA_DRI_C_INCLUDES)
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+    $(LOCAL_PATH) \
+    $(intermediates)
+
+LOCAL_SRC_FILES := \
+	$(DRI_COMMON_FILES) \
+	$(XMLCONFIG_FILES)
+
+MESA_DRI_OPTIONS_H := $(intermediates)/xmlpool/options.h
+LOCAL_GENERATED_SOURCES := $(MESA_DRI_OPTIONS_H)
+
+#
+# Generate options.h from gettext translations.
+#
+
+MESA_DRI_OPTIONS_LANGS := de es nl fr sv
+POT := $(intermediates)/xmlpool.pot
+
+$(POT): $(LOCAL_PATH)/xmlpool/t_options.h
+	@mkdir -p $(dir $@)
+	xgettext -L C --from-code utf-8 -o $@ $<
+
+$(intermediates)/xmlpool/%.po: $(LOCAL_PATH)/xmlpool/%.po $(POT)
+	lang=$(basename $(notdir $@)); \
+	mkdir -p $(dir $@); \
+	if [ -f $< ]; then \
+		msgmerge -o $@ $^; \
+	else \
+		msginit -i $(POT) \
+			-o $@ \
+			--locale=$$lang \
+			--no-translator; \
+		sed -i -e 's/charset=.*\\n/charset=UTF-8\\n/' $@; \
+	fi
+
+PRIVATE_SCRIPT := $(LOCAL_PATH)/xmlpool/gen_xmlpool.py
+PRIVATE_LOCALEDIR := $(intermediates)/xmlpool
+PRIVATE_TEMPLATE_HEADER := $(LOCAL_PATH)/xmlpool/t_options.h
+PRIVATE_MO_FILES := $(MESA_DRI_OPTIONS_LANGS:%=$(intermediates)/xmlpool/%/LC_MESSAGES/options.mo)
+
+LOCAL_GENERATED_SOURCES += $(PRIVATE_MO_FILES)
+
+$(PRIVATE_MO_FILES): $(intermediates)/xmlpool/%/LC_MESSAGES/options.mo: $(intermediates)/xmlpool/%.po
+	mkdir -p $(dir $@)
+	msgfmt -o $@ $<
+
+$(LOCAL_GENERATED_SOURCES): PRIVATE_PYTHON := $(MESA_PYTHON2)
+$(LOCAL_GENERATED_SOURCES): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PYTHON) $^ $(PRIVATE_TEMPLATE_HEADER) \
+		$(PRIVATE_LOCALEDIR) $(MESA_DRI_OPTIONS_LANGS) > $@
+
+$(MESA_DRI_OPTIONS_H): $(PRIVATE_SCRIPT) $(PRIVATE_TEMPLATE_HEADER) $(PRIVATE_MO_FILES)
+	$(transform-generated-source)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+#
+# Build libmesa_megadriver_stub
+#
+
+include $(CLEAR_VARS)
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_MODULE := libmesa_megadriver_stub
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+LOCAL_C_INCLUDES := \
+    $(MESA_DRI_C_INCLUDES)
+
+LOCAL_SRC_FILES := $(megadriver_stub_FILES)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/gen-symbol-redefs.py
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/gen-symbol-redefs.py
@@ -0,0 +1,68 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# Copyright © 2013 Intel Corporation
+#
+# 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 (including the next
+# paragraph) 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.
+
+import sys
+import argparse
+import re
+import subprocess
+
+# Example usages:
+# ./gen-symbol-redefs.py i915/.libs/libi915_dri.a old_ i915 i830
+# ./gen-symbol-redefs.py r200/.libs/libr200_dri.a r200_ r200
+
+argparser = argparse.ArgumentParser(description="Generates #defines to hide driver global symbols outside of a driver's namespace.")
+argparser.add_argument("file",
+                    metavar = 'file',
+                    help='libdrivername.a file to read')
+argparser.add_argument("newprefix",
+                    metavar = 'newprefix',
+                    help='New prefix to give non-driver global symbols')
+argparser.add_argument('prefixes',
+                       metavar='prefix',
+                       nargs='*',
+                       help='driver-specific prefixes')
+args = argparser.parse_args()
+
+stdout = subprocess.check_output(['nm', args.file])
+
+for line in stdout.splitlines():
+    m = re.match("[0-9a-z]+ [BT] (.*)", line)
+    if not m:
+        continue
+
+    symbol = m.group(1)
+
+    has_good_prefix = re.match(args.newprefix, symbol) != None
+    for prefix in args.prefixes:
+        if re.match(prefix, symbol):
+            has_good_prefix = True
+            break
+    if has_good_prefix:
+        continue
+
+    # This is the single public entrypoint.
+    if re.match("__driDriverGetExtensions", symbol):
+        continue
+
+    print '#define {0:35} {1}{0}'.format(symbol, args.newprefix)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/i915/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/i915/Android.mk
@@ -0,0 +1,61 @@
+#
+# Copyright (C) 2011 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 2010-2011 LunarG
+#
+# 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_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := i915_dri
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_MODULE_RELATIVE_PATH := $(MESA_DRI_MODULE_REL_PATH)
+else
+LOCAL_MODULE_PATH := $(MESA_DRI_MODULE_PATH)
+LOCAL_UNSTRIPPED_PATH := $(MESA_DRI_MODULE_UNSTRIPPED_PATH)
+endif
+
+# Import variables i915_FILES.
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_CFLAGS := \
+	$(MESA_DRI_CFLAGS) \
+	-DI915
+
+LOCAL_C_INCLUDES := \
+	$(MESA_DRI_C_INCLUDES)
+
+LOCAL_SRC_FILES := \
+	$(i915_FILES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+	$(MESA_DRI_WHOLE_STATIC_LIBRARIES)
+
+LOCAL_SHARED_LIBRARIES := \
+	$(MESA_DRI_SHARED_LIBRARIES) \
+	libdrm_intel
+
+LOCAL_GENERATED_SOURCES := \
+	$(MESA_DRI_OPTIONS_H) \
+	$(MESA_GEN_NIR_H)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/i965/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/i965/Android.mk
@@ -0,0 +1,66 @@
+#
+# Copyright (C) 2011 Intel Corporation
+# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
+# Copyright (C) 2010-2011 LunarG
+#
+# 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_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := i965_dri
+ifeq ($(MESA_LOLLIPOP_BUILD),true)
+LOCAL_MODULE_RELATIVE_PATH := $(MESA_DRI_MODULE_REL_PATH)
+else
+LOCAL_MODULE_PATH := $(MESA_DRI_MODULE_PATH)
+LOCAL_UNSTRIPPED_PATH := $(MESA_DRI_MODULE_UNSTRIPPED_PATH)
+endif
+
+# Import variables i965_FILES.
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_CFLAGS := \
+	$(MESA_DRI_CFLAGS)
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+LOCAL_CFLAGS += \
+	-DUSE_SSE41
+endif
+
+LOCAL_C_INCLUDES := \
+	$(MESA_DRI_C_INCLUDES)
+
+LOCAL_SRC_FILES := \
+	$(i965_compiler_FILES) \
+	$(i965_FILES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := \
+	$(MESA_DRI_WHOLE_STATIC_LIBRARIES)
+
+LOCAL_SHARED_LIBRARIES := \
+	$(MESA_DRI_SHARED_LIBRARIES) \
+	libdrm_intel
+
+LOCAL_GENERATED_SOURCES := \
+	$(MESA_DRI_OPTIONS_H) \
+	$(MESA_GEN_NIR_H)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_SHARED_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/nouveau/.dir-locals.el
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/nouveau/.dir-locals.el
@@ -0,0 +1,8 @@
+((prog-mode
+  (indent-tabs-mode . true)
+  (tab-width . 8)
+  (c-basic-offset . 8)
+  (c-file-style . "stroustrup")
+  (fill-column . 78)
+  )
+ )
--- mesa-lts-xenial-11.2.0.orig/src/mesa/drivers/dri/r200/Doxyfile
+++ mesa-lts-xenial-11.2.0/src/mesa/drivers/dri/r200/Doxyfile
@@ -0,0 +1,232 @@
+# Doxyfile 1.3.2-Gideon
+
+#---------------------------------------------------------------------------
+# General configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME           = r200
+PROJECT_NUMBER         = $VERSION$
+OUTPUT_DIRECTORY       = 
+OUTPUT_LANGUAGE        = English
+USE_WINDOWS_ENCODING   = NO
+EXTRACT_ALL            = NO
+EXTRACT_PRIVATE        = NO
+EXTRACT_STATIC         = NO
+EXTRACT_LOCAL_CLASSES  = YES
+HIDE_UNDOC_MEMBERS     = NO
+HIDE_UNDOC_CLASSES     = NO
+HIDE_FRIEND_COMPOUNDS  = NO
+HIDE_IN_BODY_DOCS      = NO
+BRIEF_MEMBER_DESC      = YES
+REPEAT_BRIEF           = YES
+ALWAYS_DETAILED_SEC    = NO
+INLINE_INHERITED_MEMB  = NO
+FULL_PATH_NAMES        = NO
+STRIP_FROM_PATH        = 
+INTERNAL_DOCS          = NO
+CASE_SENSE_NAMES       = YES
+SHORT_NAMES            = NO
+HIDE_SCOPE_NAMES       = NO
+SHOW_INCLUDE_FILES     = YES
+JAVADOC_AUTOBRIEF      = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP         = NO
+INHERIT_DOCS           = YES
+INLINE_INFO            = YES
+SORT_MEMBER_DOCS       = YES
+DISTRIBUTE_GROUP_DOC   = NO
+TAB_SIZE               = 8
+GENERATE_TODOLIST      = YES
+GENERATE_TESTLIST      = YES
+GENERATE_BUGLIST       = YES
+GENERATE_DEPRECATEDLIST= YES
+ALIASES                = 
+ENABLED_SECTIONS       = 
+MAX_INITIALIZER_LINES  = 30
+OPTIMIZE_OUTPUT_FOR_C  = NO
+OPTIMIZE_OUTPUT_JAVA   = NO
+SHOW_USED_FILES        = YES
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET                  = NO
+WARNINGS               = YES
+WARN_IF_UNDOCUMENTED   = YES
+WARN_IF_DOC_ERROR      = YES
+WARN_FORMAT            = "$file:$line: $text"
+WARN_LOGFILE           = 
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT                  = /home/temp/Mesa/src/drv/r200
+FILE_PATTERNS          = *.c \
+                         *.cc \
+                         *.cxx \
+                         *.cpp \
+                         *.c++ \
+                         *.java \
+                         *.ii \
+                         *.ixx \
+                         *.ipp \
+                         *.i++ \
+                         *.inl \
+                         *.h \
+                         *.hh \
+                         *.hxx \
+                         *.hpp \
+                         *.h++ \
+                         *.idl \
+                         *.odl \
+                         *.cs \
+                         *.C \
+                         *.H \
+                         *.tlh \
+                         *.diff \
+                         *.patch \
+                         *.moc \
+                         *.xpm
+RECURSIVE              = yes
+EXCLUDE                = 
+EXCLUDE_SYMLINKS       = NO
+EXCLUDE_PATTERNS       = 
+EXAMPLE_PATH           = 
+EXAMPLE_PATTERNS       = *
+EXAMPLE_RECURSIVE      = NO
+IMAGE_PATH             = 
+INPUT_FILTER           = 
+FILTER_SOURCE_FILES    = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER         = NO
+INLINE_SOURCES         = NO
+STRIP_CODE_COMMENTS    = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION    = YES
+VERBATIM_HEADERS       = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX     = NO
+COLS_IN_ALPHA_INDEX    = 5
+IGNORE_PREFIX          = 
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML          = YES
+HTML_OUTPUT            = html
+HTML_FILE_EXTENSION    = .html
+HTML_HEADER            = 
+HTML_FOOTER            = 
+HTML_STYLESHEET        = 
+HTML_ALIGN_MEMBERS     = YES
+GENERATE_HTMLHELP      = NO
+CHM_FILE               = 
+HHC_LOCATION           = 
+GENERATE_CHI           = NO
+BINARY_TOC             = NO
+TOC_EXPAND             = NO
+DISABLE_INDEX          = NO
+ENUM_VALUES_PER_LINE   = 4
+GENERATE_TREEVIEW      = NO
+TREEVIEW_WIDTH         = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX         = YES
+LATEX_OUTPUT           = latex
+LATEX_CMD_NAME         = latex
+MAKEINDEX_CMD_NAME     = makeindex
+COMPACT_LATEX          = NO
+PAPER_TYPE             = a4wide
+EXTRA_PACKAGES         = 
+LATEX_HEADER           = 
+PDF_HYPERLINKS         = NO
+USE_PDFLATEX           = NO
+LATEX_BATCHMODE        = NO
+LATEX_HIDE_INDICES     = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF           = NO
+RTF_OUTPUT             = rtf
+COMPACT_RTF            = NO
+RTF_HYPERLINKS         = NO
+RTF_STYLESHEET_FILE    = 
+RTF_EXTENSIONS_FILE    = 
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN           = NO
+MAN_OUTPUT             = man
+MAN_EXTENSION          = .3
+MAN_LINKS              = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML           = yes
+XML_OUTPUT             = xml
+XML_SCHEMA             = 
+XML_DTD                = 
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF   = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD       = NO
+PERLMOD_LATEX          = NO
+PERLMOD_PRETTY         = YES
+PERLMOD_MAKEVAR_PREFIX = 
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor   
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING   = YES
+MACRO_EXPANSION        = NO
+EXPAND_ONLY_PREDEF     = NO
+SEARCH_INCLUDES        = YES
+INCLUDE_PATH           = 
+INCLUDE_FILE_PATTERNS  = 
+PREDEFINED             = 
+EXPAND_AS_DEFINED      = 
+SKIP_FUNCTION_MACROS   = YES
+#---------------------------------------------------------------------------
+# Configuration::addtions related to external references   
+#---------------------------------------------------------------------------
+TAGFILES               = 
+GENERATE_TAGFILE       = 
+ALLEXTERNALS           = NO
+EXTERNAL_GROUPS        = YES
+PERL_PATH              = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool   
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS         = YES
+HIDE_UNDOC_RELATIONS   = YES
+HAVE_DOT               = NO
+CLASS_GRAPH            = YES
+COLLABORATION_GRAPH    = YES
+UML_LOOK               = NO
+TEMPLATE_RELATIONS     = NO
+INCLUDE_GRAPH          = YES
+INCLUDED_BY_GRAPH      = YES
+CALL_GRAPH             = NO
+GRAPHICAL_HIERARCHY    = YES
+DOT_IMAGE_FORMAT       = png
+DOT_PATH               = 
+DOTFILE_DIRS           = 
+MAX_DOT_GRAPH_WIDTH    = 1024
+MAX_DOT_GRAPH_HEIGHT   = 1024
+MAX_DOT_GRAPH_DEPTH    = 1000
+GENERATE_LEGEND        = YES
+DOT_CLEANUP            = YES
+#---------------------------------------------------------------------------
+# Configuration::addtions related to the search engine   
+#---------------------------------------------------------------------------
+SEARCHENGINE           = NO
+CGI_NAME               = search.cgi
+CGI_URL                = 
+DOC_URL                = 
+DOC_ABSPATH            = 
+BIN_ABSPATH            = /usr/local/bin/
+EXT_DOC_PATHS          = 
--- mesa-lts-xenial-11.2.0.orig/src/mesa/program/Android.mk
+++ mesa-lts-xenial-11.2.0/src/mesa/program/Android.mk
@@ -0,0 +1,86 @@
+# Copyright 2012 Intel Corporation
+#
+# 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_PATH := $(call my-dir)
+
+define local-l-to-c
+	@mkdir -p $(dir $@)
+	@echo "Mesa Lex: $(PRIVATE_MODULE) <= $<"
+	$(hide) $(LEX) -o$@ $<
+endef
+
+define mesa_local-y-to-c-and-h
+	@mkdir -p $(dir $@)
+	@echo "Mesa Yacc: $(PRIVATE_MODULE) <= $<"
+	$(hide) $(YACC) -o $@ -p "_mesa_program_" $<
+endef
+
+# ----------------------------------------------------------------------
+# libmesa_program.a
+# ----------------------------------------------------------------------
+
+# Import the following variables:
+#     PROGRAM_FILES
+include $(MESA_TOP)/src/mesa/Makefile.sources
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_program
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+LOCAL_STATIC_LIBRARIES := libmesa_nir
+
+intermediates := $(call local-generated-sources-dir)
+
+# TODO(chadv): In Makefile.sources, move these vars to a different list so we can
+# remove this kludge.
+generated_sources_basenames := \
+	lex.yy.c \
+	program_parse.tab.c \
+	program_parse.tab.h
+
+LOCAL_SRC_FILES := \
+	$(filter-out $(generated_sources_basenames),$(subst program/,,$(PROGRAM_FILES))) \
+	$(subst program/,,$(PROGRAM_NIR_FILES))
+
+LOCAL_GENERATED_SOURCES := \
+	$(addprefix $(intermediates)/program/,$(generated_sources_basenames))
+
+$(intermediates)/program/program_parse.tab.c: $(LOCAL_PATH)/program_parse.y
+	$(mesa_local-y-to-c-and-h)
+
+$(intermediates)/program/program_parse.tab.h: $(intermediates)/program/program_parse.tab.c
+	@
+
+$(intermediates)/program/lex.yy.c: $(LOCAL_PATH)/program_lexer.l
+	$(local-l-to-c)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/compiler/nir \
+	$(MESA_TOP)/src/gallium/auxiliary \
+	$(MESA_TOP)/src/gallium/include
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
+
+LOCAL_GENERATED_SOURCES += $(MESA_GEN_NIR_H)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
--- mesa-lts-xenial-11.2.0.orig/src/util/Android.mk
+++ mesa-lts-xenial-11.2.0/src/util/Android.mk
@@ -0,0 +1,92 @@
+# Mesa 3-D graphics library
+#
+# Copyright (C) 2014 Tomasz Figa <tomasz.figa@gmail.com>
+#
+# 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_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+# ---------------------------------------
+# Build libmesa_util
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+	$(MESA_UTIL_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_MODULE := libmesa_util
+
+# Generated sources
+
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+intermediates := $(call local-generated-sources-dir)
+LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/,$(MESA_UTIL_GENERATED_FILES))
+
+$(LOCAL_GENERATED_SOURCES): PRIVATE_PYTHON := $(MESA_PYTHON2)
+$(LOCAL_GENERATED_SOURCES): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PYTHON) $^ > $@
+$(LOCAL_GENERATED_SOURCES): $(intermediates)/%.c: $(LOCAL_PATH)/%.py
+	$(transform-generated-source)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build host libmesa_util
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_IS_HOST_MODULE := true
+LOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
+
+LOCAL_SRC_FILES := \
+	$(MESA_UTIL_FILES)
+
+LOCAL_C_INCLUDES := \
+	$(MESA_TOP)/src/mesa \
+	$(MESA_TOP)/src/mapi \
+	$(MESA_TOP)/src/gallium/include \
+	$(MESA_TOP)/src/gallium/auxiliary
+
+LOCAL_MODULE := libmesa_util
+
+# Generated sources
+
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+intermediates := $(call local-generated-sources-dir)
+LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/,$(MESA_UTIL_GENERATED_FILES))
+
+$(LOCAL_GENERATED_SOURCES): PRIVATE_PYTHON := $(MESA_PYTHON2)
+$(LOCAL_GENERATED_SOURCES): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PYTHON) $^ > $@
+$(LOCAL_GENERATED_SOURCES): $(intermediates)/%.c: $(LOCAL_PATH)/%.py
+	$(transform-generated-source)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_HOST_STATIC_LIBRARY)
