From 223fa3afe7198fb5da637e0baba3b20d4717bb5f Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Tue, 15 Apr 2014 17:32:28 -0400
Subject: [PATCH] Disable DRI3 in F20, it requires libxcb bits we haven't
 backported.

---
 mesa.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/mesa.spec b/mesa.spec
index 0acf522..22dcbee 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -55,7 +55,7 @@
 Summary: Mesa graphics libraries
 Name: mesa
 Version: 10.1
-Release: 5.%{gitdate}%{?dist}
+Release: 6.%{gitdate}%{?dist}
 License: MIT
 Group: System Environment/Libraries
 URL: http://www.mesa3d.org
@@ -390,6 +390,9 @@ export CXXFLAGS="$RPM_OPT_FLAGS %{?with_opencl:-frtti -fexceptions} %{!?with_ope
     --with-gallium-drivers=%{?with_vmware:svga,}%{?with_radeonsi:radeonsi,}%{?with_llvm:swrast,r600,}%{?with_freedreno:freedreno,}r300,nouveau \
 %else
     --with-gallium-drivers=%{?with_llvm:swrast} \
+%endif
+%if 0%{?fedora} < 21
+    --disable-dri3
 %endif
     %{?dri_drivers}
 
@@ -642,6 +645,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Apr 15 2014 Adam Jackson <ajax@redhat.com> 10.1-6.20140305
+- Disable DRI3 in F20, it requires libxcb bits we haven't backported.
+
 * Wed Mar 26 2014 Adam Jackson <ajax@redhat.com> 10.1-5.20140305
 - Initial ppc64le enablement (no hardware drivers or vdpau yet)