]> git.pld-linux.org Git - packages/Mesa.git/commitdiff
- initial update to 9.1; TODO: files/packaging fixes
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 26 Feb 2013 19:18:41 +0000 (20:18 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 26 Feb 2013 19:18:41 +0000 (20:18 +0100)
Mesa-link.patch
Mesa-llvm3.2-support.patch [deleted file]
Mesa.spec

index fc7fc0140a249c7214eb49a734974640bbc47833..c9bfc0f3e5ca16fab49ecc3c8987819dee921edf 100644 (file)
---- Mesa-8.0.1/src/gallium/targets/vdpau-nouveau/Makefile.orig 2012-02-15 00:44:00.000000000 +0100
-+++ Mesa-8.0.1/src/gallium/targets/vdpau-nouveau/Makefile      2012-03-11 12:26:44.906377873 +0100
-@@ -19,7 +19,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau --libs) -lXfixes
-+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau libdrm --libs) -lXfixes -lxcb
- LINK_WITH_CXX=1
---- Mesa-9.0.2/src/gallium/targets/vdpau-r300/Makefile.orig    2013-01-26 10:33:04.632271133 +0100
-+++ Mesa-9.0.2/src/gallium/targets/vdpau-r300/Makefile 2013-01-26 10:37:16.755599223 +0100
-@@ -21,7 +21,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes
-+DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes -lxcb
- include ../Makefile.vdpau
---- Mesa-9.0.2/src/gallium/targets/vdpau-r600/Makefile.orig    2013-01-26 10:33:04.635604465 +0100
-+++ Mesa-9.0.2/src/gallium/targets/vdpau-r600/Makefile 2013-01-26 10:38:39.152264160 +0100
-@@ -17,7 +17,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes
-+DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes -lxcb
- include ../Makefile.vdpau
---- Mesa-9.0.2/src/gallium/targets/vdpau-radeonsi/Makefile.orig        2013-01-26 10:33:04.638937797 +0100
-+++ Mesa-9.0.2/src/gallium/targets/vdpau-radeonsi/Makefile     2013-01-26 10:39:56.732262545 +0100
-@@ -23,7 +23,7 @@
- DRIVER_DEFINES = \
-       -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_NOOP
--DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes
-+DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes -lxcb
- include ../Makefile.vdpau
---- p/src/gallium/targets/vdpau-softpipe/Makefile~     2012-05-10 22:56:51.000000000 +0200
-+++ p/src/gallium/targets/vdpau-softpipe/Makefile      2012-05-11 09:27:05.364159093 +0200
-@@ -14,7 +14,7 @@
- C_SOURCES = \
-       $(TOP)/src/gallium/auxiliary/vl/vl_winsys_xsp.c
--DRIVER_LIBS =
-+DRIVER_LIBS = -lX11 -lXext
- include ../Makefile.vdpau
-
---- Mesa-9.0.1/src/gallium/targets/xvmc-nouveau/Makefile.orig  2012-09-01 01:33:41.000000000 +0200
-+++ Mesa-9.0.1/src/gallium/targets/xvmc-nouveau/Makefile       2012-11-21 19:29:27.218929817 +0100
-@@ -5,6 +5,7 @@
- PIPE_DRIVERS = \
-       $(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
-+      $(TOP)/src/gallium/drivers/nv30/libnv30.a \
-       $(TOP)/src/gallium/drivers/nv50/libnv50.a \
-       $(TOP)/src/gallium/drivers/nvc0/libnvc0.a \
-       $(TOP)/src/gallium/drivers/nouveau/libnouveau.a \
-@@ -18,7 +19,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau --libs) -lXfixes
-+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau libdrm --libs) -lXfixes -lXvMC -lxcb -lX11
- DRIVER_INCLUDES = $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
---- Mesa-9.0.2/src/gallium/targets/xvmc-r300/Makefile.orig     2013-01-26 10:33:04.628937800 +0100
-+++ Mesa-9.0.2/src/gallium/targets/xvmc-r300/Makefile  2013-01-26 10:36:06.578934005 +0100
-@@ -17,7 +17,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes
-+DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes -lXvMC -lX11 -lxcb
- include ../Makefile.xvmc
---- Mesa-9.0.2/src/gallium/targets/xvmc-r600/Makefile.orig     2013-01-26 10:33:04.632271133 +0100
-+++ Mesa-9.0.2/src/gallium/targets/xvmc-r600/Makefile  2013-01-26 10:36:34.075600100 +0100
-@@ -17,7 +17,7 @@
-       $(COMMON_GALLIUM_SOURCES) \
-       $(DRIVER_SOURCES)
--DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes
-+DRIVER_LIBS = $(LIBDRM_LIBS) $(RADEON_LIBS) -lXfixes -lXvMC -lX11 -lxcb
- include ../Makefile.xvmc
---- Mesa-8.0.1/src/gallium/targets/xvmc-softpipe/Makefile.orig 2012-02-15 00:44:00.000000000 +0100
-+++ Mesa-8.0.1/src/gallium/targets/xvmc-softpipe/Makefile      2012-03-11 12:35:53.273062913 +0100
-@@ -14,7 +14,7 @@
- C_SOURCES = \
-       $(TOP)/src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
--DRIVER_LIBS =
-+DRIVER_LIBS = -lXvMC -lXext -lX11
- include ../Makefile.xvmc
---- Mesa-8.0.1/src/gallium/targets/xa-vmwgfx/Makefile.orig     2012-02-15 00:44:00.000000000 +0100
-+++ Mesa-8.0.1/src/gallium/targets/xa-vmwgfx/Makefile  2012-03-11 12:43:05.479747729 +0100
-@@ -30,6 +30,9 @@
- SOURCES = vmw_target.c
- OBJECTS = $(SOURCES:.c=.o)
-+XA_LIBS = $(shell $(PKG_CONFIG) libdrm --libs)
-+XA_PC_REQ_PRIV = libdrm
-+
- ifeq ($(MESA_LLVM),1)
- LDFLAGS += $(LLVM_LDFLAGS)
- GALLIUM_AUXILIARIES += $(LLVM_LIBS)
-@@ -64,7 +67,7 @@
-               $(MKLIB_OPTIONS) \
-               -exports xa_symbols \
-                -install $(TOP)/$(LIB_DIR)/gallium \
--              $(OBJECTS) $(XA_LIB_DEPS) $(GALLIUM_AUXILIARIES)
-+              $(OBJECTS) $(XA_LIB_DEPS) $(GALLIUM_AUXILIARIES) $(XA_LIBS)
- # xa pkgconfig file
- pcedit = sed \
-
---- p/src/mesa/libdricore/Makefile.am~ 2012-08-26 21:00:26.000000000 +0200
-+++ p/src/mesa/libdricore/Makefile.am  2012-09-07 22:45:58.210981683 +0200
-@@ -46,7 +46,7 @@
-       $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
-       $(top_builddir)/src/glsl/builtin_function.cpp
- libdricore@VERSION@_la_LDFLAGS = -version-number 1:0
--libdricore@VERSION@_la_LIBADD = libdricore-asm.la
-+libdricore@VERSION@_la_LIBADD = libdricore-asm.la $(DLOPEN_LIBS)
- # This is separated from libdricore to avoid conflics in object
- # outputs between main/clip.c and sparc/clip.c.  The documented way to
---- Mesa-9.0.1/src/gbm/Makefile.am.orig        2012-09-01 01:36:09.000000000 +0200
-+++ Mesa-9.0.1/src/gbm/Makefile.am     2012-11-21 20:22:20.668863673 +0100
+--- Mesa-9.1/src/gallium/targets/xa-vmwgfx/Makefile.am~        2013-02-22 23:28:22.000000000 +0100
++++ Mesa-9.1/src/gallium/targets/xa-vmwgfx/Makefile.am 2013-02-26 19:51:30.938891682 +0100
+@@ -45,7 +45,8 @@
+       $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
+       $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
+       $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
+-      $(top_builddir)/src/gallium/drivers/rbug/librbug.la
++      $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
++      $(LIBDRM_LIBS)
+ nodist_EXTRA_libxatracker_la_SOURCES = dummy.cpp
+--- Mesa-9.1/src/gbm/Makefile.am~      2013-02-16 02:32:00.000000000 +0100
++++ Mesa-9.1/src/gbm/Makefile.am       2013-02-26 19:53:54.295673416 +0100
 @@ -19,7 +19,7 @@
        main/backend.c \
        main/common.c
  libgbm_la_LDFLAGS = -version-info 1:0
 -libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS)
-+libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(LIBDRM_LIBS) $(DLOPEN_LIBS)
++libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIBS)
  
  if HAVE_EGL_PLATFORM_WAYLAND
  AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM
diff --git a/Mesa-llvm3.2-support.patch b/Mesa-llvm3.2-support.patch
deleted file mode 100644 (file)
index 84e8e1f..0000000
+++ /dev/null
@@ -1,282 +0,0 @@
-From: Tom Stellard <thomas.stell...@amd.com>
-
-LLVM 3.2 and newer requires that the R600/SI backend be part of the
-LLVM tree.
----
- configure.ac                                    | 26 +++++++++++++++++++------
- src/gallium/drivers/radeon/Makefile             |  6 ++++++
- src/gallium/drivers/radeon/Makefile.sources     |  7 ++++---
- src/gallium/drivers/radeon/radeon_llvm_emit.cpp |  1 +
- 4 files changed, 31 insertions(+), 9 deletions(-)</pre><pre>
-
-diff --git a/configure.ac b/configure.ac
-index b83078f..a942621 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1667,6 +1667,7 @@
-             if $LLVM_CONFIG --components | grep -q '\<mcjit\>'; then
-                 LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
-             fi
-+            LLVM_COMPONENTS="${LLVM_COMPONENTS} all-targets"
-             if test "x$enable_opencl" = xyes; then
-                 LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation"
-             fi
-@@ -1788,6 +1789,23 @@
-     fi
- }
-+radeon_llvm_check() {
-+    LLVM_VERSION_MAJOR=`echo $LLVM_VERSION | cut -d. -f1`
-+    if test "$LLVM_VERSION_MAJOR" -lt "3" -o "x$LLVM_VERSION" = "x3.0"; then
-+        AC_MSG_ERROR([LLVM 3.1 or newer is required for the r600/radeonsi llvm compiler.])
-+    fi
-+    if test "$LLVM_VERSION_MAJOR" -ge "3" -a "x$LLVM_VERSION" != "x3.1" && $LLVM_CONFIG --targets-built | grep -qv '\<AMDGPU\>' ; then
-+        AC_MSG_ERROR([To use the r600/radeonsi LLVM backend with LLVM 3.2 and newer, you need to fetch the LLVM source from:
-+                      git://people.freedesktop.org/~tstellar/llvm master
-+                      and build with --enable-experimental-targets==AMDGPU])
-+    fi
-+    if test "$LLVM_VERSION" = "3.2"; then
-+        dnl LLVM 3.2 does not add experimental libraries to llvm-config's
-+        dnl library list.
-+        LLVM_LIBS="$LLVM_LIBS -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUAsmPrinter -lLLVMAMDGPUInfo `$LLVM_CONFIG --libs mc`"
-+    fi
-+}
-+
- dnl Gallium drivers
- dnl Duplicates in GALLIUM_DRIVERS_DIRS are removed by sorting it after this block
- if test "x$with_gallium_drivers" != x; then
-@@ -1818,9 +1836,7 @@
-             gallium_require_drm_loader
-             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r600"
-             if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then
--                if test "x$LLVM_VERSION" != "x3.1"; then
--                    AC_MSG_ERROR([LLVM 3.1 is required for the r600 llvm compiler.])
--                fi
-+                radeon_llvm_check
-                 NEED_RADEON_GALLIUM=yes;
-             fi
-             if test "x$enable_r600_llvm" = xyes; then
-@@ -1835,9 +1851,7 @@
-             PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
-             gallium_require_drm_loader
-             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS radeonsi"
--            if test "x$LLVM_VERSION" != "x3.1"; then
--                AC_MSG_ERROR([LLVM 3.1 is required to build the radeonsi driver.])
--            fi
-+          radeon_llvm_check
-           NEED_RADEON_GALLIUM=yes;
-             gallium_check_st "radeon/drm" "dri-radeonsi" "xorg-radeonsi" "" "" "vdpau-radeonsi" ""
-             ;;
-diff --git a/src/gallium/drivers/radeon/Makefile b/src/gallium/drivers/radeon/Makefile
-index 7f1c613..bcc2646 100644
---- a/src/gallium/drivers/radeon/Makefile
-+++ b/src/gallium/drivers/radeon/Makefile
-@@ -12,6 +12,12 @@ TBLGEN = $(LLVM_BINDIR)/llvm-tblgen
- CXXFLAGS+= $(LLVM_CXXFLAGS)
-+ifeq ($(LLVM_VERSION),3.1)
-+       CPP_SOURCES += $(LLVM_CPP_SOURCES)
-+else
-+       CXXFLAGS+= -DEXTERNAL_LLVM
-+endif
-+
- include ../../Makefile.template
- CXXFLAGS := $(filter-out -DDEBUG, $(CXXFLAGS))
-diff --git a/src/gallium/drivers/radeon/Makefile.sources b/src/gallium/drivers/radeon/Makefile.sources
-index c5d1207..5e79342 100644
---- a/src/gallium/drivers/radeon/Makefile.sources
-+++ b/src/gallium/drivers/radeon/Makefile.sources
-@@ -24,7 +24,7 @@
-       SISchedule.td
--GENERATED_SOURCES := \
-+LLVM_GENERATED_SOURCES := \
-       R600Intrinsics.td               \
-       R600RegisterInfo.td             \
-       SIRegisterInfo.td               \
-@@ -41,7 +41,7 @@
-       AMDGPUGenMCCodeEmitter.inc      \
-       AMDGPUGenDFAPacketizer.inc
--CPP_SOURCES := \
-+LLVM_CPP_SOURCES := \
-       AMDIL7XXDevice.cpp              \
-       AMDILCFGStructurizer.cpp        \
-       AMDILDevice.cpp                 \
-@@ -80,6 +80,8 @@
-       MCTargetDesc/SIMCCodeEmitter.cpp \
-       MCTargetDesc/R600MCCodeEmitter.cpp \
-       TargetInfo/AMDGPUTargetInfo.cpp \
-+
-+CPP_SOURCES := \
-       radeon_llvm_emit.cpp
- C_SOURCES := \
-diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-index 1b67bfe..625b0b4 100644
---- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-@@ -90,6 +90,7 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes,
-    /* XXX: Can we just initialize the AMDGPU target here? */
-    InitializeAllTargets();
-    InitializeAllTargetMCs();
-+   InitializeAllAsmPrinters();
- #else
-    LLVMInitializeAMDGPUTargetInfo();
-    LLVMInitializeAMDGPUTarget();
--- 
-1.7.11.4
-Adjusted hacks for R600 rename
-
----
- configure.ac                                    | 12 ++++++------
- src/gallium/drivers/radeon/radeon_llvm_emit.cpp |  7 +++++++
- 2 files changed, 13 insertions(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 228f464..b848503 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -1794,15 +1794,15 @@
-     if test "$LLVM_VERSION_MAJOR" -lt "3" -o "x$LLVM_VERSION" = "x3.0"; then
-         AC_MSG_ERROR([LLVM 3.1 or newer is required for the r600/radeonsi llvm compiler.])
-     fi
--    if test "$LLVM_VERSION_MAJOR" -ge "3" -a "x$LLVM_VERSION" != "x3.1" && $LLVM_CONFIG --targets-built | grep -qv '\<AMDGPU\>' ; then
-+    if test "$LLVM_VERSION_MAJOR" -ge "3" -a "x$LLVM_VERSION" != "x3.1" && $LLVM_CONFIG --targets-built | grep -qv '\<R600\>' ; then
-         AC_MSG_ERROR([To use the r600/radeonsi LLVM backend with LLVM 3.2 and newer, you need to fetch the LLVM source from:
-                       git://people.freedesktop.org/~tstellar/llvm master
--                      and build with --enable-experimental-targets==AMDGPU])
-+                      and build with --enable-experimental-targets=R600])
-     fi
-     if test "$LLVM_VERSION" = "3.2"; then
-         dnl LLVM 3.2 does not add experimental libraries to llvm-config's
-         dnl library list.
--        LLVM_LIBS="$LLVM_LIBS -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUAsmPrinter -lLLVMAMDGPUInfo `$LLVM_CONFIG --libs mc`"
-+        LLVM_LIBS="$LLVM_LIBS `$LLVM_CONFIG --libs R600`"
-     fi
- }
-diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-index 21661a0..9914228 100644
---- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
-@@ -86,17 +86,11 @@
-    Triple AMDGPUTriple(sys::getDefaultTargetTriple());
--#ifdef EXTERNAL_LLVM
--   /* XXX: Can we just initialize the AMDGPU target here? */
--   InitializeAllTargets();
--   InitializeAllTargetMCs();
--   InitializeAllAsmPrinters();
--#else
--   LLVMInitializeAMDGPUTargetInfo();
--   LLVMInitializeAMDGPUTarget();
--   LLVMInitializeAMDGPUTargetMC();
--   LLVMInitializeAMDGPUAsmPrinter();
--#endif
-+   LLVMInitializeR600TargetInfo();
-+   LLVMInitializeR600Target();
-+   LLVMInitializeR600TargetMC();
-+   LLVMInitializeR600AsmPrinter();
-+
-    std::string err;
-    const Target * AMDGPUTarget = TargetRegistry::lookupTarget("r600", err);
-    if(!AMDGPUTarget) {
--- 
-1.7.11.4
---- Mesa-9.0.2/src/gallium/drivers/radeon/radeon_llvm_emit.cpp.orig    2013-01-25 22:40:57.939828359 +0100
-+++ Mesa-9.0.2/src/gallium/drivers/radeon/radeon_llvm_emit.cpp 2013-01-26 07:58:59.045797173 +0100
-@@ -36,12 +36,14 @@
- #include <llvm/Support/TargetRegistry.h>
- #include <llvm/Support/TargetSelect.h>
- #include <llvm/Support/Threading.h>
--#include <llvm/Target/TargetData.h>
- #include <llvm/Target/TargetMachine.h>
--
- #include <llvm/Transforms/Scalar.h>
--
- #include <llvm-c/Target.h>
-+#if HAVE_LLVM < 0x0302
-+#include <llvm/Target/TargetData.h>
-+#else
-+#include <llvm/DataLayout.h>
-+#endif
- #include <iostream>
- #include <stdlib.h>
-@@ -120,7 +122,11 @@
-                      ));
-    TargetMachine &AMDGPUTargetMachine = *tm.get();
-    PassManager PM;
-+#if HAVE_LLVM < 0x0302
-    PM.add(new TargetData(*AMDGPUTargetMachine.getTargetData()));
-+#else
-+   PM.add(new DataLayout(*AMDGPUTargetMachine.getDataLayout()));
-+#endif
-    PM.add(createPromoteMemoryToRegisterPass());
-    AMDGPUTargetMachine.setAsmVerbosityDefault(true);
---- Mesa-9.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp.orig      2013-01-22 19:09:32.000000000 +0100
-+++ Mesa-9.0.2/src/gallium/state_trackers/clover/llvm/invocation.cpp   2013-01-26 08:53:17.405729259 +0100
-@@ -35,9 +35,13 @@
- #include <llvm/Support/TargetSelect.h>
- #include <llvm/Support/MemoryBuffer.h>
- #include <llvm/Support/PathV1.h>
--#include <llvm/Target/TargetData.h>
- #include <llvm/Transforms/IPO.h>
- #include <llvm/Transforms/IPO/PassManagerBuilder.h>
-+#if HAVE_LLVM < 0x0302
-+#include <llvm/Target/TargetData.h>
-+#else
-+#include <llvm/DataLayout.h>
-+#endif
- #include "pipe/p_state.h"
- #include "util/u_memory.h"
-@@ -120,9 +124,19 @@
-       c.getLangOpts().NoBuiltin = true;
-       c.getTargetOpts().Triple = triple;
-+#if HAVE_LLVM < 0x0302
-       c.getInvocation().setLangDefaults(clang::IK_OpenCL);
-+#else
-+      c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL, clang::LangStandard::lang_opencl11);
-+#endif
-       c.createDiagnostics(0, NULL, new clang::TextDiagnosticPrinter(
--                          s_log, c.getDiagnosticOpts()));
-+                          s_log,
-+#if HAVE_LLVM < 0x0302
-+                        c.getDiagnosticOpts()
-+#else
-+                        &c.getDiagnosticOpts()
-+#endif
-+                        ));
-       c.getPreprocessorOpts().addRemappedFile(name,
-                                       llvm::MemoryBuffer::getMemBuffer(source));
-@@ -213,7 +227,11 @@
-                                    E = kernel_func->arg_end(); I != E; ++I) {
-          llvm::Argument &arg = *I;
-          llvm::Type *arg_type = arg.getType();
-+#if HAVE_LLVM < 0x0302
-          llvm::TargetData TD(kernel_func->getParent());
-+#else
-+         llvm::DataLayout TD(kernel_func->getParent()->getDataLayout());
-+#endif
-          unsigned arg_size = TD.getTypeStoreSize(arg_type);
-          if (llvm::isa<llvm::PointerType>(arg_type) && arg.hasByValAttr()) {
---- Mesa-9.0.2/src/gallium/targets/opencl/Makefile.am.orig     2013-01-22 19:09:32.000000000 +0100
-+++ Mesa-9.0.2/src/gallium/targets/opencl/Makefile.am  2013-01-26 09:32:36.189013426 +0100
-@@ -20,7 +20,6 @@
-       -lclangParse \
-       -lclangSema \
-       -lclangAnalysis \
--      -lclangRewrite \
-       -lclangAST \
-       -lclangLex \
-       -lclangBasic \
index 31036ee68418626083124ec0490e688f2bc2fa88..3163e41b88bc570f0c10f3e11a462e5ccda43eb7 100644 (file)
--- a/Mesa.spec
+++ b/Mesa.spec
 Summary:       Free OpenGL implementation
 Summary(pl.UTF-8):     Wolnodostępna implementacja standardu OpenGL
 Name:          Mesa
-Version:       9.0.3
-Release:       1
+Version:       9.1
+Release:       0.1
 License:       MIT (core) and others - see license.html file
 Group:         X11/Libraries
 Source0:       ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
-# Source0-md5: d7515cc5116c72ac63d735655bd63689
+# Source0-md5: d3891e02215422e120271d976ff1947e
 Patch0:                %{name}-link.patch
-Patch1:                %{name}-llvm3.2-support.patch
 URL:           http://www.mesa3d.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -99,7 +98,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 #  _glapi_tls_Dispatch is defined in libglapi, but it's some kind of symbol ldd -r doesn't notice(?)
 # libdricore: internal library, not linked with libglapi
 # libgbm: circular dependency with libEGL (wayland_buffer_is_drm symbol)
-%define                skip_post_check_so      libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libOSMesa.so.* libdricore.*.so.* libgbm.*.so.*
+%define                skip_post_check_so      libGLESv1_CM.so.1.* libGLESv2.so.2.* libGL.so.1.* libOSMesa.so.* libdricore.*.so.* libgbm.*.so.* libXvMCnouveau.so.* libvdpau_softpipe.so.*
 
 # llvm build broken
 %define                filterout_ld    -Wl,--as-needed
@@ -1065,7 +1064,6 @@ Sterownik Mesa softpipe dla API vdpau.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -1104,7 +1102,6 @@ gallium_drivers=$(echo $gallium_drivers | xargs | tr ' ' ',')
        --disable-silent-rules \
        --enable-shared \
        --enable-glx-tls \
-       --enable-pic \
        --enable-selinux \
        %{?with_static_libs:--enable-static} \
        %{__enable gbm} \
@@ -1144,15 +1141,17 @@ rm -rf $RPM_BUILD_ROOT
 # omitted by make install (as of 9.0)
 cp -pr include/CL $RPM_BUILD_ROOT%{_includedir}
 # strip out undesirable headers
-%{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{vms_x_fix,wglext,wmesa}.h
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/{wglext,wmesa}.h
 # dlopened by soname
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXvMC*.so
 # not used externally
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{dricore%{version},glapi}.so
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{dricore%{version}.0,glapi}.so
 # dlopened
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/dri/*.la
 # not defined by standards; and not needed, there is pkg-config support
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/vdpau/lib*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gbm/gdb*.la
 
 # remove "OS ABI: Linux 2.4.20" tag, so private copies (nvidia or fglrx),
 # set up via /etc/ld.so.conf.d/*.conf will be preferred over this
@@ -1273,6 +1272,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libGLESv2.so
 %{_includedir}/GLES
 %{_includedir}/GLES2
+%{_includedir}/GLES3
 %{_pkgconfigdir}/glesv1_cm.pc
 %{_pkgconfigdir}/glesv2.pc
 
@@ -1298,7 +1298,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libOpenCL.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libOpenCL.so.1
-%dir %{_libdir}/opencl
 
 %files libOpenCL-devel
 %defattr(644,root,root,755)
@@ -1314,28 +1313,28 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with gallium_nouveau}
 %files opencl-driver-nouveau
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_nouveau.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_nouveau.so
 %endif
 
 %files opencl-driver-r300
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_r300.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_r300.so
 
 %files opencl-driver-r600
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_r600.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_r600.so
 
 %files opencl-driver-radeonsi
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_radeonsi.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_radeonsi.so
 
 %files opencl-driver-swrast
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_swrast.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_swrast.so
 
 %files opencl-driver-vmwgfx
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opencl/pipe_vmwgfx.so
+#%attr(755,root,root) %{_libdir}/opencl/pipe_vmwgfx.so
 %endif
 
 %if %{with egl} && %{with gallium}
@@ -1355,23 +1354,23 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with gallium_nouveau}
 %files libXvMC-nouveau
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0
+%attr(755,root,root) %{_libdir}/libXvMCnouveau.so.1.0.0
 %attr(755,root,root) %ghost %{_libdir}/libXvMCnouveau.so.1
 %endif
 
 %files libXvMC-r300
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0
+%attr(755,root,root) %{_libdir}/libXvMCr300.so.1.0.0
 %attr(755,root,root) %ghost %{_libdir}/libXvMCr300.so.1
 
 %files libXvMC-r600
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0
+%attr(755,root,root) %{_libdir}/libXvMCr600.so.1.0.0
 %attr(755,root,root) %ghost %{_libdir}/libXvMCr600.so.1
 
 %files libXvMC-softpipe
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0
+%attr(755,root,root) %{_libdir}/libXvMCsoftpipe.so.1.0.0
 %attr(755,root,root) %ghost %{_libdir}/libXvMCsoftpipe.so.1
 %endif
 
@@ -1402,28 +1401,28 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with gallium_nouveau}
 %files gbm-driver-nouveau
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_nouveau.so
 %endif
 
 %files gbm-driver-r300
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_r300.so
 
 %files gbm-driver-r600
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_r600.so
 
 %files gbm-driver-radeonsi
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_radeonsi.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_radeonsi.so
 
 %files gbm-driver-swrast
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_swrast.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_swrast.so
 
 %files gbm-driver-vmwgfx
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
+#%attr(755,root,root) %{_libdir}/gbm/pipe_vmwgfx.so
 %endif
 
 %files libglapi
@@ -1469,8 +1468,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files dri-core
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libdricore%{version}.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libdricore%{version}.so.1
+%attr(755,root,root) %{_libdir}/libdricore%{version}.0.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdricore%{version}.0.so.1
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drirc
 
 %files dri-driver-ati-radeon-R100
@@ -1525,32 +1524,32 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with gallium_nouveau}
 %files -n libvdpau-driver-mesa-nouveau
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0
+%attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1.0.0
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so.1
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_nouveau.so
 %endif
 
 %files -n libvdpau-driver-mesa-r300
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0
+%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1.0.0
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so.1
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r300.so
 
 %files -n libvdpau-driver-mesa-r600
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0
+%attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1.0.0
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so.1
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_r600.so
 
 %files -n libvdpau-driver-mesa-radeonsi
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so.1.0
+%attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so.1.0.0
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so.1
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_radeonsi.so
 
 %files -n libvdpau-driver-mesa-softpipe
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0
+%attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1.0.0
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so.1
 %attr(755,root,root) %{_libdir}/vdpau/libvdpau_softpipe.so
 %endif
This page took 0.077654 seconds and 4 git commands to generate.