From 007eb4e80d57f55e7e37920fc3fa1137bc84d6ff Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 11 Jul 2014 19:27:50 +0400 Subject: [PATCH 01/12] Rebase to 'master' branch (f381c27c548aa28b003c8e188f5d627ab4105f76 commit) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + ...k-without-sse2-if-llvm-is-new-enough.patch | 33 - ...ual-about-texture-formats-in-st_fina.patch | 39 - ...opencl-use-versioned-.so-in-mesa.icd.patch | 22 +- make-git-snapshot.sh | 12 +- mesa-7.10-swrastg.patch | 23 - mesa-8.0-nouveau-tfp-blacklist.patch | 201 ---- mesa-9.0.1-less-cxx-please.patch | 13 - mesa-no-libkms.patch | 978 ------------------ mesa-undefined-symbols.patch | 57 - mesa.spec | 25 +- sources | 2 +- 12 files changed, 37 insertions(+), 1369 deletions(-) delete mode 100644 0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch delete mode 100644 0001-mesa-Be-less-casual-about-texture-formats-in-st_fina.patch delete mode 100644 mesa-7.10-swrastg.patch delete mode 100644 mesa-8.0-nouveau-tfp-blacklist.patch delete mode 100644 mesa-9.0.1-less-cxx-please.patch delete mode 100644 mesa-no-libkms.patch delete mode 100644 mesa-undefined-symbols.patch diff --git a/.gitignore b/.gitignore index 8cc23a5..031afd0 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,4 @@ mesa-20100720.tar.bz2 /mesa-20140608.tar.xz /mesa-20140625.tar.xz /mesa-20140711.tar.xz +/mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz diff --git a/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch b/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch deleted file mode 100644 index dd7e11b..0000000 --- a/0001-llvmpipe-Work-without-sse2-if-llvm-is-new-enough.patch +++ /dev/null @@ -1,33 +0,0 @@ -From a499fd73461257f284bd3194f9198dc484acd373 Mon Sep 17 00:00:00 2001 -From: Adam Jackson -Date: Thu, 4 Apr 2013 17:16:22 -0400 -Subject: [PATCH] llvmpipe: Work without sse2 if llvm is new enough - -At least on llvm 3.2 this appears to work fine. Tested on an Athlon XP -2600+, which has sse and 3dnow but not sse2. - -Signed-off-by: Adam Jackson ---- - src/gallium/drivers/llvmpipe/lp_screen.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c -index 6700887..ebcf680 100644 ---- a/src/gallium/drivers/llvmpipe/lp_screen.c -+++ b/src/gallium/drivers/llvmpipe/lp_screen.c -@@ -485,9 +485,10 @@ llvmpipe_create_screen(struct sw_winsys *winsys) - { - struct llvmpipe_screen *screen; - --#ifdef PIPE_ARCH_X86 -- /* require SSE2 due to LLVM PR6960. */ - util_cpu_detect(); -+ -+#if defined(PIPE_ARCH_X86) && HAVE_LLVM < 0x0302 -+ /* require SSE2 due to LLVM PR6960. */ - if (!util_cpu_caps.has_sse2) - return NULL; - #endif --- -1.8.2 - diff --git a/0001-mesa-Be-less-casual-about-texture-formats-in-st_fina.patch b/0001-mesa-Be-less-casual-about-texture-formats-in-st_fina.patch deleted file mode 100644 index 45c5ea8..0000000 --- a/0001-mesa-Be-less-casual-about-texture-formats-in-st_fina.patch +++ /dev/null @@ -1,39 +0,0 @@ -From dfe652d12c62c270e00f093518a05c6966661b8a Mon Sep 17 00:00:00 2001 -From: Adam Jackson -Date: Mon, 6 May 2013 16:04:03 -0400 -Subject: [PATCH] mesa: Be less casual about texture formats in - st_finalize_texture - -Commit 62452883 removed a hunk like - - if (firstImageFormat != stObj->pt->format) - st_view_format = firstImageFormat; - -from update_single_texture(). This broke piglit/glx-tfp on AMD Barts -(and probably others), as that hunk was compensating for the mesa and -gallium layers disagreeing about the format. - -Fix this by not ignoring the alpha channel in st_finalize_texture when -considering whether two 32-bit formats are sufficiently compatible. - -Signed-off-by: Adam Jackson ---- - src/mesa/state_tracker/st_cb_texture.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c -index 123ed2b..0f2656c 100644 ---- a/src/mesa/state_tracker/st_cb_texture.c -+++ b/src/mesa/state_tracker/st_cb_texture.c -@@ -1567,7 +1567,7 @@ st_finalize_texture(struct gl_context *ctx, - */ - if (stObj->pt) { - if (stObj->pt->target != gl_target_to_pipe(stObj->base.Target) || -- !st_sampler_compat_formats(stObj->pt->format, firstImageFormat) || -+ stObj->pt->format != firstImageFormat || - stObj->pt->last_level < stObj->lastLevel || - stObj->pt->width0 != ptWidth || - stObj->pt->height0 != ptHeight || --- -1.8.2.1 - diff --git a/0001-opencl-use-versioned-.so-in-mesa.icd.patch b/0001-opencl-use-versioned-.so-in-mesa.icd.patch index 35c9c47..564ee2a 100644 --- a/0001-opencl-use-versioned-.so-in-mesa.icd.patch +++ b/0001-opencl-use-versioned-.so-in-mesa.icd.patch @@ -1,4 +1,4 @@ -From 062e79e1cc1e2d22d5d9d7fe5d394b923372fe45 Mon Sep 17 00:00:00 2001 +From 69b30e8f48b24a28c7d27ba59b02776da10cc5a6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 12 Jan 2014 02:09:16 +0400 Subject: [PATCH] opencl: use versioned .so in mesa.icd @@ -19,7 +19,7 @@ Signed-off-by: Igor Gnatenko create mode 100644 src/gallium/targets/opencl/mesa.icd.in diff --git a/configure.ac b/configure.ac -index 164b662..fe64a9a 100644 +index 4646212..89a4f48 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,8 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) @@ -31,27 +31,27 @@ index 164b662..fe64a9a 100644 dnl Versions for external dependencies LIBDRM_REQUIRED=2.4.38 -@@ -2111,6 +2113,7 @@ AC_CONFIG_FILES([Makefile - src/gallium/targets/egl-static/Makefile - src/gallium/targets/gbm/Makefile +@@ -2215,6 +2217,7 @@ AC_CONFIG_FILES([Makefile + src/gallium/targets/libgl-xlib/Makefile + src/gallium/targets/omx/Makefile src/gallium/targets/opencl/Makefile + src/gallium/targets/opencl/mesa.icd - src/gallium/targets/xa/Makefile - src/gallium/targets/xa/xatracker.pc - src/gallium/targets/omx-nouveau/Makefile + src/gallium/targets/osmesa/Makefile + src/gallium/targets/osmesa/osmesa.pc + src/gallium/targets/pipe-loader/Makefile diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am -index ba45aee..0a3d134 100644 +index ca047f0..82e29a6 100644 --- a/src/gallium/targets/opencl/Makefile.am +++ b/src/gallium/targets/opencl/Makefile.am -@@ -5,7 +5,7 @@ lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la +@@ -7,7 +7,7 @@ lib_LTLIBRARIES = lib@OPENCL_LIBNAME@.la lib@OPENCL_LIBNAME@_la_LDFLAGS = \ $(LLVM_LDFLAGS) \ -no-undefined \ - -version-number 1:0 \ + -version-number @OPENCL_VERSION@:0 \ - -Wl,--version-script=$(top_srcdir)/src/gallium/targets/opencl/opencl.sym \ $(GC_SECTIONS) \ $(LD_NO_UNDEFINED) + diff --git a/src/gallium/targets/opencl/mesa.icd b/src/gallium/targets/opencl/mesa.icd deleted file mode 100644 index 6a6a870..0000000 diff --git a/make-git-snapshot.sh b/make-git-snapshot.sh index b5045fe..eacbac9 100755 --- a/make-git-snapshot.sh +++ b/make-git-snapshot.sh @@ -11,15 +11,21 @@ else XZ=/usr/bin/xz fi -DIRNAME=mesa-$( date +%Y%m%d ) +if [ -z "$1" ]; then + DIRNAME=mesa-$( date +%Y%m%d ) + BRANCH=10.2 +else + DIRNAME=mesa-$1 + BRANCH=master +fi echo REF ${REF:+--reference $REF} echo DIRNAME $DIRNAME -echo HEAD ${1:-10.2} +echo HEAD ${1:-$BRANCH} rm -rf $DIRNAME -git clone --depth 1 ${REF:+--reference $REF} --branch 10.2 \ +git clone --depth 1 ${REF:+--reference $REF} --branch $BRANCH \ git://git.freedesktop.org/git/mesa/mesa $DIRNAME GIT_DIR=$DIRNAME/.git git archive --format=tar --prefix=$DIRNAME/ ${1:-HEAD} \ diff --git a/mesa-7.10-swrastg.patch b/mesa-7.10-swrastg.patch deleted file mode 100644 index 4fc5957..0000000 --- a/mesa-7.10-swrastg.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -up mesa-20101020/src/gallium/drivers/llvmpipe/Makefile.jx mesa-20101020/src/gallium/drivers/llvmpipe/Makefile -diff -up mesa-20101020/src/gallium/targets/dri-swrast/Makefile.jx mesa-20101020/src/gallium/targets/dri-swrast/Makefile ---- mesa-20101020/src/gallium/targets/dri-swrast/Makefile.jx 2010-10-20 15:54:57.000000000 -0400 -+++ mesa-20101020/src/gallium/targets/dri-swrast/Makefile 2010-11-08 14:39:47.000000000 -0500 -@@ -26,6 +26,8 @@ C_SOURCES = \ - - ASM_SOURCES = - -+LDFLAGS += -Wl,--version-script,../version-script -+ - include ../Makefile.dri - - INCLUDES += \ -diff -up mesa-20101020/src/gallium/targets/version-script.jx mesa-20101020/src/gallium/targets/version-script ---- mesa-20101020/src/gallium/targets/version-script.jx 2010-11-08 14:39:56.000000000 -0500 -+++ mesa-20101020/src/gallium/targets/version-script 2010-11-08 14:40:36.000000000 -0500 -@@ -0,0 +1,6 @@ -+GALLIUM { -+ global: -+ __dri*; -+ local: -+ *; -+}; diff --git a/mesa-8.0-nouveau-tfp-blacklist.patch b/mesa-8.0-nouveau-tfp-blacklist.patch deleted file mode 100644 index bf7005a..0000000 --- a/mesa-8.0-nouveau-tfp-blacklist.patch +++ /dev/null @@ -1,201 +0,0 @@ -diff -up Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h.jx Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h ---- Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h.jx 2012-02-14 18:44:00.000000000 -0500 -+++ Mesa-8.0.1/src/gallium/include/state_tracker/drm_driver.h 2012-03-23 13:11:40.785842579 -0400 -@@ -43,6 +43,7 @@ struct winsys_handle - enum drm_conf { - /* How many frames to allow before throttling. Or -1 to indicate any number */ - DRM_CONF_THROTTLE, /* DRM_CONF_INT. */ -+ DRM_CONF_NOTFP, - DRM_CONF_MAX - }; - -diff -up Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c.jx Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c ---- Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c.jx 2012-02-14 18:44:00.000000000 -0500 -+++ Mesa-8.0.1/src/gallium/state_trackers/dri/drm/dri2.c 2012-03-23 13:11:40.785842579 -0400 -@@ -642,6 +642,13 @@ static struct __DRIimageExtensionRec dri - * Backend function init_screen. - */ - -+static const __DRIextension *dri_screen_extensions_no_tfp[] = { -+ &dri2FlushExtension.base, -+ &dri2ImageExtension.base, -+ &dri2ConfigQueryExtension.base, -+ NULL -+}; -+ - static const __DRIextension *dri_screen_extensions[] = { - &driTexBufferExtension.base, - &dri2FlushExtension.base, -@@ -671,6 +678,7 @@ dri2_init_screen(__DRIscreen * sPriv) - struct dri_screen *screen; - struct pipe_screen *pscreen; - const struct drm_conf_ret *throttle_ret = NULL; -+ const struct drm_conf_ret *notfp_ret = NULL; - - screen = CALLOC_STRUCT(dri_screen); - if (!screen) -@@ -682,12 +690,16 @@ dri2_init_screen(__DRIscreen * sPriv) - sPriv->driverPrivate = (void *)screen; - - pscreen = driver_descriptor.create_screen(screen->fd); -- if (driver_descriptor.configuration) -+ if (driver_descriptor.configuration) { - throttle_ret = driver_descriptor.configuration(DRM_CONF_THROTTLE); -+ throttle_ret = driver_descriptor.configuration(DRM_CONF_NOTFP); -+ } - - if (throttle_ret && throttle_ret->val.val_int != -1) { - sPriv->extensions = dri_screen_extensions_throttle; - screen->default_throttle_frames = throttle_ret->val.val_int; -+ } else if (notfp_ret && notfp_ret->val.val_bool == 1) { -+ sPriv->extensions = dri_screen_extensions_no_tfp; - } else - sPriv->extensions = dri_screen_extensions; - -diff -up Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c.jx Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c ---- Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c.jx 2012-02-14 18:44:00.000000000 -0500 -+++ Mesa-8.0.1/src/gallium/targets/dri-nouveau/target.c 2012-03-23 13:14:37.824416888 -0400 -@@ -3,6 +3,12 @@ - #include "state_tracker/drm_driver.h" - #include "nouveau/drm/nouveau_drm_public.h" - -+#include -+#include -+ -+/* yes this is an ugly hack */ -+static int nvfd = -1; -+ - static struct pipe_screen * - create_screen(int fd) - { -@@ -12,9 +18,52 @@ create_screen(int fd) - if (!screen) - return NULL; - -+ nvfd = fd; -+ - screen = debug_screen_wrap(screen); - - return screen; - } - --DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", create_screen, NULL) -+static const struct drm_conf_ret notfp_ret = { -+ .type = DRM_CONF_BOOL, -+ .val.val_bool = 1, -+}; -+ -+static const struct drm_conf_ret *drm_configuration(enum drm_conf conf) -+{ -+ switch (conf) { -+ case DRM_CONF_NOTFP: -+ { -+ /* have to open-code to reuse the fd */ -+ struct drm_nouveau_getparam g; -+ int vram; -+ -+ g.param = NOUVEAU_GETPARAM_CHIPSET_ID; -+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g))) -+ return ¬fp_ret; /* error? paranoia */ -+ -+ if (g.value < 0x50) -+ return NULL; /* nv50+ okay */ -+ -+ if (g.value & 0xf0 == 0x30) -+ return ¬fp_ret; /* nv30 definitely horked */ -+ -+ g.param = NOUVEAU_GETPARAM_FB_SIZE; -+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g))) -+ return ¬fp_ret; /* error? paranoia */ -+ -+ vram = g.value; -+ if ((vram >> 20) <= 64) -+ return ¬fp_ret; /* let's say <64M is too little */ -+ -+ return NULL; -+ } -+ -+ default: -+ break; -+ } -+ return NULL; -+} -+ -+DRM_DRIVER_DESCRIPTOR("nouveau", "nouveau", create_screen, drm_configuration) -diff -up Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c.jx Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c ---- Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c.jx 2012-02-14 18:44:00.000000000 -0500 -+++ Mesa-8.0.1/src/mesa/drivers/dri/nouveau/nouveau_screen.c 2012-03-23 13:38:34.477024222 -0400 -@@ -37,7 +37,11 @@ - #include "main/renderbuffer.h" - #include "swrast/s_renderbuffer.h" - -+#include -+#include -+ - static const __DRIextension *nouveau_screen_extensions[]; -+static const __DRIextension *nouveau_screen_extensions_notfp[]; - - static void - nouveau_destroy_screen(__DRIscreen *dri_screen); -@@ -86,6 +90,28 @@ nouveau_get_configs(void) - return (const __DRIconfig **)configs; - } - -+static int -+shouldnt_tfp(int nvfd) -+{ -+ /* have to open-code to reuse the fd */ -+ struct drm_nouveau_getparam g; -+ int vram; -+ -+ g.param = NOUVEAU_GETPARAM_CHIPSET_ID; -+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g))) -+ return 1; /* error? paranoia */ -+ -+ g.param = NOUVEAU_GETPARAM_FB_SIZE; -+ if (drmCommandWriteRead(nvfd, DRM_NOUVEAU_GETPARAM, &g, sizeof(g))) -+ return 1; /* error? paranoia */ -+ -+ vram = g.value; -+ if ((vram >> 20) <= 64) -+ return 1; /* let's say 64M is too little */ -+ -+ return 0; -+} -+ - static const __DRIconfig ** - nouveau_init_screen2(__DRIscreen *dri_screen) - { -@@ -99,7 +125,6 @@ nouveau_init_screen2(__DRIscreen *dri_sc - return NULL; - - dri_screen->driverPrivate = screen; -- dri_screen->extensions = nouveau_screen_extensions; - screen->dri_screen = dri_screen; - - /* Open the DRM device. */ -@@ -110,6 +135,11 @@ nouveau_init_screen2(__DRIscreen *dri_sc - goto fail; - } - -+ if (shouldnt_tfp(dri_screen->fd)) -+ dri_screen->extensions = nouveau_screen_extensions_notfp; -+ else -+ dri_screen->extensions = nouveau_screen_extensions; -+ - /* Choose the card specific function pointers. */ - switch (screen->device->chipset & 0xf0) { - case 0x00: -@@ -240,6 +270,12 @@ static const __DRIextension *nouveau_scr - &dri2ConfigQueryExtension.base, - NULL - }; -+ -+static const __DRIextension *nouveau_screen_extensions_notfp[] = { -+ &nouveau_flush_extension.base, -+ &dri2ConfigQueryExtension.base, -+ NULL -+}; - - const struct __DriverAPIRec driDriverAPI = { - .InitScreen = nouveau_init_screen2, diff --git a/mesa-9.0.1-less-cxx-please.patch b/mesa-9.0.1-less-cxx-please.patch deleted file mode 100644 index 4882782..0000000 --- a/mesa-9.0.1-less-cxx-please.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp ---- Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx 2012-08-31 19:33:41.000000000 -0400 -+++ Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp 2012-12-20 12:58:02.115699825 -0500 -@@ -715,7 +715,9 @@ Instruction::clone(ClonePolicy - { - if (!i) - i = new_Instruction(pol.context(), op, dType); -+#ifdef __GXX_RTTI - assert(typeid(*i) == typeid(*this)); -+#endif - - pol.set(this, i); - diff --git a/mesa-no-libkms.patch b/mesa-no-libkms.patch deleted file mode 100644 index bbcd629..0000000 --- a/mesa-no-libkms.patch +++ /dev/null @@ -1,978 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index 8badb72..2a3e766 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1217,8 +1217,6 @@ if test "x$enable_gbm" = xyes; then - if test "x$enable_shared_glapi" = xno; then - AC_MSG_ERROR([gbm_dri requires --enable-shared-glapi]) - fi -- PKG_CHECK_MODULES([LIBKMS], [libkms], [], -- AC_MSG_ERROR([gbm needs libkms])) - fi - fi - GBM_PC_REQ_PRIV="libudev" -diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h -index 1e0f1d0..f35f857 100644 ---- a/include/GL/internal/dri_interface.h -+++ b/include/GL/internal/dri_interface.h -@@ -923,10 +923,6 @@ struct __DRIdri2ExtensionRec { - * __DRI_IMAGE_FORMAT_NONE is for images that aren't directly usable - * by the driver (YUV planar formats) but serve as a base image for - * creating sub-images for the different planes within the image. -- * -- * R8, GR88 and NONE should not be used with createImageFormName or -- * createImage, and are returned by query from sub images created with -- * createImageFromNames (NONE, see above) and fromPlane (R8 & GR88). - */ - #define __DRI_IMAGE_FORMAT_RGB565 0x1001 - #define __DRI_IMAGE_FORMAT_XRGB8888 0x1002 -@@ -939,50 +935,8 @@ struct __DRIdri2ExtensionRec { - - #define __DRI_IMAGE_USE_SHARE 0x0001 - #define __DRI_IMAGE_USE_SCANOUT 0x0002 --#define __DRI_IMAGE_USE_CURSOR 0x0004 /* Depricated */ -- -- --/** -- * Four CC formats that matches with WL_DRM_FORMAT_* from wayland_drm.h -- * and GBM_FORMAT_* from gbm.h, used with createImageFromNames. -- * -- * \since 5 -- */ -- --#define __DRI_IMAGE_FOURCC_RGB565 0x36314752 --#define __DRI_IMAGE_FOURCC_ARGB8888 0x34325241 --#define __DRI_IMAGE_FOURCC_XRGB8888 0x34325258 --#define __DRI_IMAGE_FOURCC_ABGR8888 0x34324241 --#define __DRI_IMAGE_FOURCC_XBGR8888 0x34324258 --#define __DRI_IMAGE_FOURCC_YUV410 0x39565559 --#define __DRI_IMAGE_FOURCC_YUV411 0x31315559 --#define __DRI_IMAGE_FOURCC_YUV420 0x32315559 --#define __DRI_IMAGE_FOURCC_YUV422 0x36315559 --#define __DRI_IMAGE_FOURCC_YUV444 0x34325559 --#define __DRI_IMAGE_FOURCC_NV12 0x3231564e --#define __DRI_IMAGE_FOURCC_NV16 0x3631564e --#define __DRI_IMAGE_FOURCC_YUYV 0x56595559 -- -- --/** -- * Queryable on images created by createImageFromNames. -- * -- * RGB and RGBA are may be usable directly as images but its still -- * recommended to call fromPlanar with plane == 0. -- * -- * Y_U_V, Y_UV and Y_XUXV all requires call to fromPlanar to create -- * usable sub-images, sampling from images return raw YUV data and -- * color conversion needs to be done in the shader. -- * -- * \since 5 -- */ -- --#define __DRI_IMAGE_COMPONENTS_RGB 0x3001 --#define __DRI_IMAGE_COMPONENTS_RGBA 0x3002 --#define __DRI_IMAGE_COMPONENTS_Y_U_V 0x3003 --#define __DRI_IMAGE_COMPONENTS_Y_UV 0x3004 --#define __DRI_IMAGE_COMPONENTS_Y_XUXV 0x3005 -- -+#define __DRI_IMAGE_USE_CURSOR 0x0004 -+#define __DRI_IMAGE_USE_WRITE 0x0008 - - /** - * queryImage attributes -@@ -994,7 +948,6 @@ struct __DRIdri2ExtensionRec { - #define __DRI_IMAGE_ATTRIB_FORMAT 0x2003 /* available in versions 3+ */ - #define __DRI_IMAGE_ATTRIB_WIDTH 0x2004 /* available in versions 4+ */ - #define __DRI_IMAGE_ATTRIB_HEIGHT 0x2005 --#define __DRI_IMAGE_ATTRIB_COMPONENTS 0x2006 /* available in versions 5+ */ - - typedef struct __DRIimageRec __DRIimage; - typedef struct __DRIimageExtensionRec __DRIimageExtension; -@@ -1032,17 +985,11 @@ struct __DRIimageExtensionRec { - GLboolean (*validateUsage)(__DRIimage *image, unsigned int use); - - /** -- * Unlike createImageFromName __DRI_IMAGE_FORMAT is not but instead -- * __DRI_IMAGE_FOURCC and strides are in bytes not pixels. Stride is -- * also per block and not per pixel (for non-RGB, see gallium blocks). -+ * Write data into image. - * -- * \since 5 -+ * \since 4 - */ -- __DRIimage *(*createImageFromNames)(__DRIscreen *screen, -- int width, int height, int fourcc, -- int *names, int num_names, -- int *strides, int *offsets, -- void *loaderPrivate); -+ int (*write)(__DRIimage *image, const void *buf, size_t count); - - /** - * Create an image out of a sub-region of a parent image. This -@@ -1059,8 +1006,10 @@ struct __DRIimageExtensionRec { - * - * \since 5 - */ -- __DRIimage *(*fromPlanar)(__DRIimage *image, int plane, -- void *loaderPrivate); -+ __DRIimage *(*createSubImage)(__DRIimage *image, -+ int width, int height, int format, -+ int offset, int pitch, -+ void *loaderPrivate); - }; - - -diff --git a/src/egl/drivers/dri2/Makefile.am b/src/egl/drivers/dri2/Makefile.am -index 45f7dfa..49ec06b 100644 ---- a/src/egl/drivers/dri2/Makefile.am -+++ b/src/egl/drivers/dri2/Makefile.am -@@ -30,7 +30,6 @@ AM_CFLAGS = \ - $(DEFINES) \ - $(LIBDRM_CFLAGS) \ - $(LIBUDEV_CFLAGS) \ -- $(LIBKMS_CFLAGS) \ - -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" - - noinst_LTLIBRARIES = libegl_dri2.la -diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c -index f2cce74..7326b85 100644 ---- a/src/egl/drivers/dri2/egl_dri2.c -+++ b/src/egl/drivers/dri2/egl_dri2.c -@@ -1093,16 +1093,68 @@ dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx, - * wl_drm format code to a description of the planes in the buffer - * that lets us create a __DRIimage for each of the planes. */ - --static const struct wl_drm_components_descriptor { -- uint32_t dri_components; -+static const struct wl_drm_format_descriptor { -+ uint32_t wl_format; - EGLint components; - int nplanes; --} wl_drm_components[] = { -- { __DRI_IMAGE_COMPONENTS_RGB, EGL_TEXTURE_RGB, 1 }, -- { __DRI_IMAGE_COMPONENTS_RGBA, EGL_TEXTURE_RGBA, 1 }, -- { __DRI_IMAGE_COMPONENTS_Y_U_V, EGL_TEXTURE_Y_U_V_WL, 3 }, -- { __DRI_IMAGE_COMPONENTS_Y_UV, EGL_TEXTURE_Y_UV_WL, 2 }, -- { __DRI_IMAGE_COMPONENTS_Y_XUXV, EGL_TEXTURE_Y_XUXV_WL, 2 }, -+ struct { -+ int buffer_index; -+ int width_shift; -+ int height_shift; -+ uint32_t dri_format; -+ int cpp; -+ } planes[3]; -+} wl_drm_formats[] = { -+ { WL_DRM_FORMAT_ARGB8888, EGL_TEXTURE_RGBA, 1, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 }, } }, -+ -+ { WL_DRM_FORMAT_XRGB8888, EGL_TEXTURE_RGB, 1, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } }, -+ -+ { WL_DRM_FORMAT_YUV410, EGL_TEXTURE_Y_U_V_WL, 3, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 2, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 } } }, -+ -+ { WL_DRM_FORMAT_YUV411, EGL_TEXTURE_Y_U_V_WL, 3, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 2, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -+ -+ { WL_DRM_FORMAT_YUV420, EGL_TEXTURE_Y_U_V_WL, 3, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 2, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 } } }, -+ -+ { WL_DRM_FORMAT_YUV422, EGL_TEXTURE_Y_U_V_WL, 3, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 2, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -+ -+ { WL_DRM_FORMAT_YUV444, EGL_TEXTURE_Y_U_V_WL, 3, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 2, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -+ -+ { WL_DRM_FORMAT_NV12, EGL_TEXTURE_Y_UV_WL, 2, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 1, 1, __DRI_IMAGE_FORMAT_GR88, 2 } } }, -+ -+ { WL_DRM_FORMAT_NV16, EGL_TEXTURE_Y_UV_WL, 2, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -+ { 1, 1, 0, __DRI_IMAGE_FORMAT_GR88, 2 } } }, -+ -+ /* For YUYV buffers, we set up two overlapping DRI images and treat -+ * them as planar buffers in the compositors. Plane 0 is GR88 and -+ * samples YU or YV pairs and places Y into the R component, while -+ * plane 1 is ARGB and samples YUYV clusters and places pairs and -+ * places U into the G component and V into A. This lets the -+ * texture sampler interpolate the Y components correctly when -+ * sampling from plane 0, and interpolate U and V correctly when -+ * sampling from plane 1. */ -+ { WL_DRM_FORMAT_YUYV, EGL_TEXTURE_Y_XUXV_WL, 2, -+ { { 0, 0, 0, __DRI_IMAGE_FORMAT_GR88, 2 }, -+ { 0, 1, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } } - }; - - static _EGLImage * -@@ -1112,11 +1164,13 @@ dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx, - { - struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer; - struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); -- const struct wl_drm_components_descriptor *f; - __DRIimage *dri_image; - _EGLImageAttribs attrs; - EGLint err; -- int32_t plane; -+ uint32_t format; -+ int32_t offset, stride, plane, width, height; -+ int cpp, index; -+ const struct wl_drm_format_descriptor *f; - - if (!wayland_buffer_is_drm(&buffer->buffer)) - return NULL; -@@ -1135,12 +1189,17 @@ dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx, - return NULL; - } - -- dri_image = dri2_dpy->image->fromPlanar(buffer->driver_buffer, plane, NULL); -+ width = buffer->buffer.width >> f->planes[plane].width_shift; -+ height = buffer->buffer.height >> f->planes[plane].height_shift; -+ format = f->planes[plane].dri_format; -+ cpp = f->planes[plane].cpp; -+ index = f->planes[plane].buffer_index; -+ offset = buffer->offset[index]; -+ stride = buffer->stride[index]; - -- if (dri_image == NULL) { -- _eglError(EGL_BAD_PARAMETER, "dri2_create_image_wayland_wl_buffer"); -- return NULL; -- } -+ dri_image = dri2_dpy->image->createSubImage(buffer->driver_buffer, -+ width, height, format, -+ offset, stride / cpp, NULL); - - return dri2_create_image(disp, dri_image); - } -@@ -1301,31 +1360,24 @@ dri2_wl_reference_buffer(void *user_data, uint32_t name, - { - _EGLDisplay *disp = user_data; - struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); -- __DRIimage *img; -- int i, dri_components = 0; -- -- img = dri2_dpy->image->createImageFromNames(dri2_dpy->dri_screen, -- buffer->buffer.width, -- buffer->buffer.height, -- buffer->format, (int*)&name, 1, -- buffer->stride, -- buffer->offset, -- NULL); -- -- if (img == NULL) -- return; -- -- dri2_dpy->image->queryImage(img, __DRI_IMAGE_ATTRIB_COMPONENTS, &dri_components); -+ int i; - -- buffer->driver_format = NULL; -- for (i = 0; i < ARRAY_SIZE(wl_drm_components); i++) -- if (wl_drm_components[i].dri_components == dri_components) -- buffer->driver_format = &wl_drm_components[i]; -+ for (i = 0; i < ARRAY_SIZE(wl_drm_formats); i++) -+ if (wl_drm_formats[i].wl_format == buffer->format) { -+ buffer->driver_format = &wl_drm_formats[i]; -+ break; -+ } - - if (buffer->driver_format == NULL) -- dri2_dpy->image->destroyImage(img); -- else -- buffer->driver_buffer = img; -+ return; -+ -+ buffer->driver_buffer = -+ dri2_dpy->image->createImageFromName(dri2_dpy->dri_screen, -+ buffer->buffer.width, -+ buffer->buffer.height, -+ __DRI_IMAGE_FORMAT_NONE, name, -+ buffer->stride[0] / 4, -+ NULL); - } - - static void -@@ -1390,7 +1442,7 @@ dri2_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *disp, - EGLint attribute, EGLint *value) - { - struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer; -- const struct wl_drm_components_descriptor *format; -+ const struct wl_drm_format_descriptor *format; - - if (!wayland_buffer_is_drm(&buffer->buffer)) - return EGL_FALSE; -diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h -index ff48b02..2818e9c 100644 ---- a/src/gallium/state_trackers/dri/common/dri_screen.h -+++ b/src/gallium/state_trackers/dri/common/dri_screen.h -@@ -86,7 +86,6 @@ struct __DRIimageRec { - unsigned level; - unsigned layer; - uint32_t dri_format; -- uint32_t dri_components; - - void *loader_private; - }; -diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c -index 2f83dab..d7f4dd6 100644 ---- a/src/gallium/state_trackers/dri/drm/dri2.c -+++ b/src/gallium/state_trackers/dri/drm/dri2.c -@@ -574,7 +574,6 @@ dri2_create_image(__DRIscreen *_screen, - img->level = 0; - img->layer = 0; - img->dri_format = format; -- img->dri_components = 0; - - img->loader_private = loaderPrivate; - return img; -@@ -613,11 +612,6 @@ dri2_query_image(__DRIimage *image, int attrib, int *value) - case __DRI_IMAGE_ATTRIB_HEIGHT: - *value = image->texture->height0; - return GL_TRUE; -- case __DRI_IMAGE_ATTRIB_COMPONENTS: -- if (image->dri_components == 0) -- return GL_FALSE; -- *value = image->dri_components; -- return GL_TRUE; - default: - return GL_FALSE; - } -@@ -636,8 +630,6 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate) - pipe_resource_reference(&img->texture, image->texture); - img->level = image->level; - img->layer = image->layer; -- /* This should be 0 for sub images, but dup is also used for base images. */ -- img->dri_components = image->dri_components; - img->loader_private = loaderPrivate; - - return img; -@@ -657,76 +649,6 @@ dri2_validate_usage(__DRIimage *image, unsigned int use) - return GL_FALSE; - } - --static __DRIimage * --dri2_from_names(__DRIscreen *screen, int width, int height, int format, -- int *names, int num_names, int *strides, int *offsets, -- void *loaderPrivate) --{ -- __DRIimage *img; -- int stride, dri_components; -- -- if (num_names != 1) -- return NULL; -- if (offsets[0] != 0) -- return NULL; -- -- switch(format) { -- case __DRI_IMAGE_FOURCC_RGB565: -- format = __DRI_IMAGE_FORMAT_RGB565; -- dri_components = __DRI_IMAGE_COMPONENTS_RGB; -- break; -- case __DRI_IMAGE_FOURCC_ARGB8888: -- format = __DRI_IMAGE_FORMAT_ARGB8888; -- dri_components = __DRI_IMAGE_COMPONENTS_RGBA; -- break; -- case __DRI_IMAGE_FOURCC_XRGB8888: -- format = __DRI_IMAGE_FORMAT_XRGB8888; -- dri_components = __DRI_IMAGE_COMPONENTS_RGB; -- break; -- case __DRI_IMAGE_FOURCC_ABGR8888: -- format = __DRI_IMAGE_FORMAT_ABGR8888; -- dri_components = __DRI_IMAGE_COMPONENTS_RGBA; -- break; -- case __DRI_IMAGE_FOURCC_XBGR8888: -- format = __DRI_IMAGE_FORMAT_XBGR8888; -- dri_components = __DRI_IMAGE_COMPONENTS_RGB; -- break; -- default: -- return NULL; -- } -- -- /* Strides are in bytes not pixels. */ -- stride = strides[0] /4; -- -- img = dri2_create_image_from_name(screen, width, height, format, -- names[0], stride, loaderPrivate); -- if (img == NULL) -- return NULL; -- -- img->dri_components = dri_components; -- return img; --} -- --static __DRIimage * --dri2_from_planar(__DRIimage *image, int plane, void *loaderPrivate) --{ -- __DRIimage *img; -- -- if (plane != 0) -- return NULL; -- -- if (image->dri_components == 0) -- return NULL; -- -- img = dri2_dup_image(image, loaderPrivate); -- if (img == NULL) -- return NULL; -- -- /* set this to 0 for sub images. */ -- img->dri_components = 0; -- return img; --} -- - static void - dri2_destroy_image(__DRIimage *img) - { -@@ -735,7 +657,7 @@ dri2_destroy_image(__DRIimage *img) - } - - static struct __DRIimageExtensionRec dri2ImageExtension = { -- { __DRI_IMAGE, 5 }, -+ { __DRI_IMAGE, 4 }, - dri2_create_image_from_name, - dri2_create_image_from_renderbuffer, - dri2_destroy_image, -@@ -743,8 +665,6 @@ static struct __DRIimageExtensionRec dri2ImageExtension = { - dri2_query_image, - dri2_dup_image, - dri2_validate_usage, -- dri2_from_names, -- dri2_from_planar, - }; - - /* -diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am -index e22c55c..f079da1 100644 ---- a/src/gbm/Makefile.am -+++ b/src/gbm/Makefile.am -@@ -7,7 +7,6 @@ AM_CFLAGS = \ - -I$(top_srcdir)/include \ - -I$(top_srcdir)/src/gbm/main \ - $(LIBUDEV_CFLAGS) \ -- $(LIBKMS_CFLAGS) \ - $(DLOPEN_CFLAGS) \ - $(DEFINES) - -@@ -19,7 +18,7 @@ libgbm_la_SOURCES = \ - 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) $(DLOPEN_LIBS) - - if HAVE_EGL_PLATFORM_WAYLAND - AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM -diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c -index d8b1cc7..173e727 100644 ---- a/src/gbm/backends/dri/gbm_dri.c -+++ b/src/gbm/backends/dri/gbm_dri.c -@@ -299,21 +299,13 @@ gbm_dri_is_format_supported(struct gbm_device *gbm, - static int - gbm_dri_bo_write(struct gbm_bo *_bo, const void *buf, size_t count) - { -+ struct gbm_dri_device *dri = gbm_dri_device(_bo->gbm); - struct gbm_dri_bo *bo = gbm_dri_bo(_bo); -- void *ptr; -- int ret; - -- if (bo->bo == NULL) -- return -1; -- -- ret = kms_bo_map(bo->bo, &ptr); -- if (ret < 0) -+ if (dri->image->base.version < 4) - return -1; - -- memcpy(ptr, buf, count); -- -- kms_bo_unmap(bo->bo); -- return 0; -+ return dri->image->write(bo->image, buf, count); - } - - static void -@@ -322,10 +314,7 @@ gbm_dri_bo_destroy(struct gbm_bo *_bo) - struct gbm_dri_device *dri = gbm_dri_device(_bo->gbm); - struct gbm_dri_bo *bo = gbm_dri_bo(_bo); - -- if (bo->image != NULL) -- dri->image->destroyImage(bo->image); -- if (bo->bo != NULL) -- kms_bo_destroy(&bo->bo); -+ dri->image->destroyImage(bo->image); - free(bo); - } - -@@ -363,7 +352,7 @@ gbm_dri_bo_import(struct gbm_device *gbm, - struct gbm_dri_bo *bo; - __DRIimage *image; - unsigned dri_use = 0; -- int gbm_format; -+ int dri_format, width, height, gbm_format, stride, cpp, offset; - - /* Required for query image WIDTH & HEIGHT */ - if (dri->image->base.version < 4) -@@ -376,15 +365,20 @@ gbm_dri_bo_import(struct gbm_device *gbm, - struct wl_drm_buffer *wb = (struct wl_drm_buffer *) buffer; - - image = wb->driver_buffer; -- -+ stride = wb->stride[0]; -+ offset = wb->offset[0]; -+ cpp = 4; - switch (wb->format) { - case WL_DRM_FORMAT_XRGB8888: -+ dri_format = __DRI_IMAGE_FORMAT_XRGB8888; - gbm_format = GBM_FORMAT_XRGB8888; - break; - case WL_DRM_FORMAT_ARGB8888: -+ dri_format = __DRI_IMAGE_FORMAT_ARGB8888; - gbm_format = GBM_FORMAT_ARGB8888; - break; - case WL_DRM_FORMAT_YUYV: -+ dri_format = __DRI_IMAGE_FORMAT_ARGB8888; - gbm_format = GBM_FORMAT_YUYV; - break; - default: -@@ -396,15 +390,15 @@ gbm_dri_bo_import(struct gbm_device *gbm, - - case GBM_BO_IMPORT_EGL_IMAGE: - { -- int dri_format; - if (dri->lookup_image == NULL) - return NULL; - - image = dri->lookup_image(dri->screen, buffer, dri->lookup_user_data); - dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_FORMAT, &dri_format); - gbm_format = gbm_dri_to_gbm_format(dri_format); -- if (gbm_format == 0) -- return NULL; -+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_STRIDE, &stride); -+ offset = 0; -+ cpp = 4; - break; - } - -@@ -417,7 +411,13 @@ gbm_dri_bo_import(struct gbm_device *gbm, - if (bo == NULL) - return NULL; - -- bo->image = dri->image->dupImage(image, NULL); -+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_WIDTH, &width); -+ dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_HEIGHT, &height); -+ -+ bo->image = dri->image->createSubImage(image, -+ width, height, dri_format, -+ offset, stride / cpp, NULL); -+ - - if (usage & GBM_BO_USE_SCANOUT) - dri_use |= __DRI_IMAGE_USE_SCANOUT; -@@ -430,14 +430,10 @@ gbm_dri_bo_import(struct gbm_device *gbm, - } - - bo->base.base.gbm = gbm; -+ bo->base.base.width = width; -+ bo->base.base.height = height; -+ bo->base.base.stride = stride; - bo->base.base.format = gbm_format; -- -- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_WIDTH, -- (int*)&bo->base.base.width); -- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HEIGHT, -- (int*)&bo->base.base.height); -- dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE, -- (int*)&bo->base.base.stride); - dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE, - &bo->base.base.handle.s32); - -@@ -454,6 +450,9 @@ gbm_dri_bo_create(struct gbm_device *gbm, - int dri_format; - unsigned dri_use = 0; - -+ if (dri->image->base.version < 4 && (usage & GBM_BO_USE_WRITE)) -+ return NULL; -+ - bo = calloc(1, sizeof *bo); - if (bo == NULL) - return NULL; -@@ -462,33 +461,6 @@ gbm_dri_bo_create(struct gbm_device *gbm, - bo->base.base.width = width; - bo->base.base.height = height; - -- if (usage & GBM_BO_USE_WRITE) { -- int ret; -- unsigned attrs[7] = { -- KMS_WIDTH, 64, -- KMS_HEIGHT, 64, -- KMS_BO_TYPE, KMS_BO_TYPE_SCANOUT_X8R8G8B8, -- KMS_TERMINATE_PROP_LIST, -- }; -- -- if (!(usage & GBM_BO_USE_CURSOR_64X64)) -- return NULL; -- -- if (dri->kms == NULL) -- return NULL; -- -- ret = kms_bo_create(dri->kms, attrs, &bo->bo); -- if (ret < 0) { -- free(bo); -- return NULL; -- } -- -- kms_bo_get_prop(bo->bo, KMS_PITCH, &bo->base.base.stride); -- kms_bo_get_prop(bo->bo, KMS_HANDLE, (unsigned*)&bo->base.base.handle); -- -- return &bo->base.base; -- } -- - switch (format) { - case GBM_FORMAT_RGB565: - dri_format =__DRI_IMAGE_FORMAT_RGB565; -@@ -512,6 +484,8 @@ gbm_dri_bo_create(struct gbm_device *gbm, - dri_use |= __DRI_IMAGE_USE_SCANOUT; - if (usage & GBM_BO_USE_CURSOR_64X64) - dri_use |= __DRI_IMAGE_USE_CURSOR; -+ if (usage & GBM_BO_USE_WRITE) -+ dri_use |= __DRI_IMAGE_USE_WRITE; - - /* Gallium drivers requires shared in order to get the handle/stride */ - dri_use |= __DRI_IMAGE_USE_SHARE; -@@ -594,21 +568,13 @@ dri_device_create(int fd) - dri->base.type = GBM_DRM_DRIVER_TYPE_DRI; - dri->base.base.name = "drm"; - -- kms_create(fd, &dri->kms); -- if (dri->kms == NULL) -- goto err_kms; -- - ret = dri_screen_create(dri); -- if (ret) -- goto err_dri; -+ if (ret) { -+ free(dri); -+ return NULL; -+ } - - return &dri->base.base; -- --err_dri: -- kms_destroy(&dri->kms); --err_kms: -- free(dri); -- return NULL; - } - - struct gbm_backend gbm_dri_backend = { -diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h -index 4b619a0..f404368 100644 ---- a/src/gbm/backends/dri/gbm_driint.h -+++ b/src/gbm/backends/dri/gbm_driint.h -@@ -30,8 +30,6 @@ - - #include "gbmint.h" - --#include "libkms.h" -- - #include "common.h" - #include "common_drm.h" - -@@ -43,9 +41,6 @@ struct gbm_dri_surface; - struct gbm_dri_device { - struct gbm_drm_device base; - -- /* Only used for cursors */ -- struct kms_driver *kms; -- - void *driver; - - __DRIscreen *screen; -@@ -77,9 +72,6 @@ struct gbm_dri_bo { - struct gbm_drm_bo base; - - __DRIimage *image; -- -- /* Only used for cursors */ -- struct kms_bo *bo; - }; - - struct gbm_dri_surface { -diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h -index 7480853..782d669 100644 ---- a/src/mesa/drivers/dri/intel/intel_regions.h -+++ b/src/mesa/drivers/dri/intel/intel_regions.h -@@ -141,38 +141,13 @@ uint32_t - intel_region_get_aligned_offset(struct intel_region *region, uint32_t x, - uint32_t y); - --/** -- * Used with images created with image_from_names -- * to help support planar images. -- */ --struct intel_image_format { -- int fourcc; -- int components; -- int nplanes; -- struct { -- int buffer_index; -- int width_shift; -- int height_shift; -- uint32_t dri_format; -- int cpp; -- } planes[3]; --}; -- - struct __DRIimageRec { - struct intel_region *region; - GLenum internal_format; -+ uint32_t usage; - uint32_t dri_format; - GLuint format; - uint32_t offset; -- -- /* -- * Need to save these here between calls to -- * image_from_names and calls to image_from_planar. -- */ -- uint32_t strides[3]; -- uint32_t offsets[3]; -- struct intel_image_format *planar_format; -- - void *data; - }; - -diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c -index 7476ca0..b245314 100644 ---- a/src/mesa/drivers/dri/intel/intel_screen.c -+++ b/src/mesa/drivers/dri/intel/intel_screen.c -@@ -190,59 +190,6 @@ static const struct __DRI2flushExtensionRec intelFlushExtension = { - dri2InvalidateDrawable, - }; - --struct intel_image_format intel_image_formats[] = { -- { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } }, -- -- { __DRI_IMAGE_FOURCC_XRGB8888, __DRI_IMAGE_COMPONENTS_RGB, 1, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } }, -- -- { __DRI_IMAGE_FOURCC_YUV410, __DRI_IMAGE_COMPONENTS_Y_U_V, 3, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 2, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 } } }, -- -- { __DRI_IMAGE_FOURCC_YUV411, __DRI_IMAGE_COMPONENTS_Y_U_V, 3, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 2, 2, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -- -- { __DRI_IMAGE_FOURCC_YUV420, __DRI_IMAGE_COMPONENTS_Y_U_V, 3, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 2, 1, 1, __DRI_IMAGE_FORMAT_R8, 1 } } }, -- -- { __DRI_IMAGE_FOURCC_YUV422, __DRI_IMAGE_COMPONENTS_Y_U_V, 3, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 2, 1, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -- -- { __DRI_IMAGE_FOURCC_YUV444, __DRI_IMAGE_COMPONENTS_Y_U_V, 3, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 2, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 } } }, -- -- { __DRI_IMAGE_FOURCC_NV12, __DRI_IMAGE_COMPONENTS_Y_UV, 2, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 1, 1, __DRI_IMAGE_FORMAT_GR88, 2 } } }, -- -- { __DRI_IMAGE_FOURCC_NV16, __DRI_IMAGE_COMPONENTS_Y_UV, 2, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 }, -- { 1, 1, 0, __DRI_IMAGE_FORMAT_GR88, 2 } } }, -- -- /* For YUYV buffers, we set up two overlapping DRI images and treat -- * them as planar buffers in the compositors. Plane 0 is GR88 and -- * samples YU or YV pairs and places Y into the R component, while -- * plane 1 is ARGB and samples YUYV clusters and places pairs and -- * places U into the G component and V into A. This lets the -- * texture sampler interpolate the Y components correctly when -- * sampling from plane 0, and interpolate U and V correctly when -- * sampling from plane 1. */ -- { __DRI_IMAGE_FOURCC_YUYV, __DRI_IMAGE_COMPONENTS_Y_XUXV, 2, -- { { 0, 0, 0, __DRI_IMAGE_FORMAT_GR88, 2 }, -- { 0, 1, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } } --}; -- - static __DRIimage * - intel_allocate_image(int dri_format, void *loaderPrivate) - { -@@ -302,7 +249,7 @@ intel_create_image_from_name(__DRIscreen *screen, - - image = intel_allocate_image(format, loaderPrivate); - if (image->format == MESA_FORMAT_NONE) -- cpp = 1; -+ cpp = 0; - else - cpp = _mesa_get_format_bytes(image->format); - image->region = intel_region_alloc_for_handle(intelScreen, -@@ -392,7 +339,13 @@ intel_create_image(__DRIscreen *screen, - tiling = I915_TILING_NONE; - } - -+ /* We only support write for cursor drm images */ -+ if ((use & __DRI_IMAGE_USE_WRITE) && -+ use != (__DRI_IMAGE_USE_WRITE | __DRI_IMAGE_USE_CURSOR)) -+ return NULL; -+ - image = intel_allocate_image(format, loaderPrivate); -+ image->usage = use; - cpp = _mesa_get_format_bytes(image->format); - image->region = - intel_region_alloc(intelScreen, tiling, cpp, width, height, true); -@@ -425,11 +378,6 @@ intel_query_image(__DRIimage *image, int attrib, int *value) - case __DRI_IMAGE_ATTRIB_HEIGHT: - *value = image->region->height; - return true; -- case __DRI_IMAGE_ATTRIB_COMPONENTS: -- if (image->planar_format == NULL) -- return false; -- *value = image->planar_format->components; -- return true; - default: - return false; - } -@@ -451,15 +399,12 @@ intel_dup_image(__DRIimage *orig_image, void *loaderPrivate) - } - - image->internal_format = orig_image->internal_format; -- image->planar_format = orig_image->planar_format; -+ image->usage = orig_image->usage; - image->dri_format = orig_image->dri_format; - image->format = orig_image->format; - image->offset = orig_image->offset; - image->data = loaderPrivate; -- -- memcpy(image->strides, orig_image->strides, sizeof(image->strides)); -- memcpy(image->offsets, orig_image->offsets, sizeof(image->offsets)); -- -+ - return image; - } - -@@ -471,76 +416,40 @@ intel_validate_usage(__DRIimage *image, unsigned int use) - return GL_FALSE; - } - -+ /* We only support write for cursor drm images */ -+ if ((use & __DRI_IMAGE_USE_WRITE) && -+ use != (__DRI_IMAGE_USE_WRITE | __DRI_IMAGE_USE_CURSOR)) -+ return GL_FALSE; -+ - return GL_TRUE; - } - --static __DRIimage * --intel_create_image_from_names(__DRIscreen *screen, -- int width, int height, int fourcc, -- int *names, int num_names, -- int *strides, int *offsets, -- void *loaderPrivate) -+static int -+intel_image_write(__DRIimage *image, const void *buf, size_t count) - { -- struct intel_image_format *f = NULL; -- __DRIimage *image; -- int i, index; -- -- if (screen == NULL || names == NULL || num_names != 1) -- return NULL; -- -- for (i = 0; i < ARRAY_SIZE(intel_image_formats); i++) { -- if (intel_image_formats[i].fourcc == fourcc) { -- f = &intel_image_formats[i]; -- } -- } -+ if (image->region->map_refcount) -+ return -1; -+ if (!(image->usage & __DRI_IMAGE_USE_WRITE)) -+ return -1; - -- if (f == NULL) -- return NULL; -+ drm_intel_bo_map(image->region->bo, true); -+ memcpy(image->region->bo->virtual, buf, count); -+ drm_intel_bo_unmap(image->region->bo); - -- image = intel_create_image_from_name(screen, width, height, -- __DRI_IMAGE_FORMAT_NONE, -- names[0], strides[0], -- loaderPrivate); -- -- if (image == NULL) -- return NULL; -- -- image->planar_format = f; -- for (i = 0; i < f->nplanes; i++) { -- index = f->planes[i].buffer_index; -- image->offsets[index] = offsets[index]; -- image->strides[index] = strides[index]; -- } -- -- return image; -+ return 0; - } - - static __DRIimage * --intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate) -+intel_create_sub_image(__DRIimage *parent, -+ int width, int height, int dri_format, -+ int offset, int pitch, void *loaderPrivate) - { -- int width, height, offset, stride, dri_format, cpp, index, pitch; -- struct intel_image_format *f; -- uint32_t mask_x, mask_y; - __DRIimage *image; -- -- if (parent == NULL || parent->planar_format == NULL) -- return NULL; -- -- f = parent->planar_format; -- -- if (plane >= f->nplanes) -- return NULL; -- -- width = parent->region->width >> f->planes[plane].width_shift; -- height = parent->region->height >> f->planes[plane].height_shift; -- dri_format = f->planes[plane].dri_format; -- index = f->planes[plane].buffer_index; -- offset = parent->offsets[index]; -- stride = parent->strides[index]; -+ int cpp; -+ uint32_t mask_x, mask_y; - - image = intel_allocate_image(dri_format, loaderPrivate); -- cpp = _mesa_get_format_bytes(image->format); /* safe since no none format */ -- pitch = stride / cpp; -+ cpp = _mesa_get_format_bytes(image->format); - if (offset + height * cpp * pitch > parent->region->bo->size) { - _mesa_warning(NULL, "intel_create_sub_image: subimage out of bounds"); - FREE(image); -@@ -581,8 +490,8 @@ static struct __DRIimageExtensionRec intelImageExtension = { - intel_query_image, - intel_dup_image, - intel_validate_usage, -- intel_create_image_from_names, -- intel_from_planar -+ intel_image_write, -+ intel_create_sub_image - }; - - static const __DRIextension *intelScreenExtensions[] = { diff --git a/mesa-undefined-symbols.patch b/mesa-undefined-symbols.patch deleted file mode 100644 index 5acc91f..0000000 --- a/mesa-undefined-symbols.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 6a934ff6638352b2c28cf5a7452fed2f32853c17 Mon Sep 17 00:00:00 2001 -From: Anssi Hannula -Date: Sun, 5 Aug 2012 00:47:06 +0300 -Subject: [PATCH] Fix undefined symbols in libOSMesa and libglapi - ---- - src/mapi/shared-glapi/Makefile.am | 2 +- - src/mesa/Makefile.am | 2 +- - src/mesa/drivers/osmesa/Makefile.am | 6 ++++++ - 3 files changed, 8 insertions(+), 2 deletions(-) - -diff --git a/src/mapi/shared-glapi/Makefile.am b/src/mapi/shared-glapi/Makefile.am -index 8db7688..8d41db2 100644 ---- a/src/mapi/shared-glapi/Makefile.am -+++ b/src/mapi/shared-glapi/Makefile.am -@@ -6,7 +6,7 @@ include $(top_srcdir)/src/mapi/mapi/sources.mak - - lib_LTLIBRARIES = libglapi.la - libglapi_la_SOURCES = $(MAPI_GLAPI_FILES) --libglapi_la_LDFLAGS = -no-undefined -+libglapi_la_LDFLAGS = -no-undefined -pthread - - include $(GLAPI)/gen/glapi_gen.mk - glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps) -diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am -index bb70ed6..82b2f36 100644 ---- a/src/mesa/Makefile.am -+++ b/src/mesa/Makefile.am -@@ -120,7 +120,7 @@ libmesa_la_SOURCES = \ - $(MESA_CXX_FILES) \ - $(MESA_ASM_FILES_FOR_ARCH) - --libmesa_la_LIBADD = $(top_builddir)/src/glsl/libglsl.la -+libmesa_la_LIBADD = $(top_builddir)/src/glsl/libglsl.la -ldl - libmesa_la_LDFLAGS = - - libmesagallium_la_SOURCES = \ -diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am -index dbee925..5a1d88e 100644 ---- a/src/mesa/drivers/osmesa/Makefile.am -+++ b/src/mesa/drivers/osmesa/Makefile.am -@@ -39,6 +39,12 @@ lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared -n - lib@OSMESA_LIB@_la_LIBADD = \ - $(top_builddir)/src/mesa/libmesa.la \ - $(top_builddir)/src/mapi/glapi/libglapi.la -+lib@OSMESA_LIB@_la_LIBTOOLFLAGS = --tag=CXX -+ -+if HAVE_SHARED_GLAPI -+lib@OSMESA_LIB@_la_LDFLAGS += -L$(top_builddir)/$(LIB_DIR) -+lib@OSMESA_LIB@_la_LIBADD += -lglapi -+endif - - # Provide compatibility with scripts for the old Mesa build system for - # a while by putting a link to the driver into /lib of the build tree. --- -1.7.10 - diff --git a/mesa.spec b/mesa.spec index 1c63e4f..062eb23 100644 --- a/mesa.spec +++ b/mesa.spec @@ -13,7 +13,7 @@ # S390 doesn't have video cards, but we need swrast for xserver's GLX # llvm (and thus llvmpipe) doesn't actually work on ppc32 -%ifnarch s390 ppc +%ifnarch s390 ppc ppc64le %define with_llvm 1 %endif @@ -47,19 +47,20 @@ %define _default_patch_fuzz 2 -%define gitdate 20140711 -#% define snapshot +#% define gitdate 20140510 +%define githash f381c27c548aa28b003c8e188f5d627ab4105f76 +%define git %{?githash:%{githash}}%{!?githash:%{gitdate}} Summary: Mesa graphics libraries Name: mesa -Version: 10.2.3 -Release: 1.%{gitdate}%{?dist} +Version: 10.3 +Release: 0.devel.19.%{git}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org # Source0: MesaLib-%{version}.tar.xz -Source0: %{name}-%{gitdate}.tar.xz +Source0: %{name}-%{git}.tar.xz Source1: sanitize-tarball.sh Source2: make-release-tarball.sh Source3: make-git-snapshot.sh @@ -327,7 +328,7 @@ Mesa OpenCL development package. %prep #setup -q -n Mesa-%{version}%{?snapshot} -%setup -q -n mesa-%{gitdate} +%setup -q -n mesa-%{git} grep -q ^/ src/gallium/auxiliary/vl/vl_decoder.c && exit 1 %patch1 -p1 -b .nv50rtti @@ -546,9 +547,7 @@ rm -rf $RPM_BUILD_ROOT %if 0%{?with_omx} %files omx-drivers %defattr(-,root,root,-) -%{_libdir}/bellagio/libomx_nouveau.so* -%{_libdir}/bellagio/libomx_r600.so* -%{_libdir}/bellagio/libomx_radeonsi.so* +%{_libdir}/bellagio/libomx_mesa.so %endif %if 0%{?with_vdpau} %files vdpau-drivers @@ -585,6 +584,7 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/EGL/egl.h %{_includedir}/EGL/eglmesaext.h %{_includedir}/EGL/eglplatform.h +%{_includedir}/EGL/eglextchromium.h %dir %{_includedir}/KHR %{_includedir}/KHR/khrplatform.h %{_libdir}/pkgconfig/egl.pc @@ -673,7 +673,12 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libMesaOpenCL.so %endif +# Generate changelog using: +# git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog +* Fri Jul 11 2014 Igor Gnatenko - 10.3-0.devel.1.f381c27c548aa28b003c8e188f5d627ab4105f76 +- Rebase to 'master' branch (f381c27c548aa28b003c8e188f5d627ab4105f76 commit) + * Fri Jul 11 2014 Igor Gnatenko - 10.2.3-1.20140711 - 10.2.3 upstream release diff --git a/sources b/sources index 87e408d..27e8de9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -74c4f5f50aca7006cd537f99c085ab1b mesa-20140711.tar.xz +4dce9cb9f6e9e0f7f8e12f08dccd4285 mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz From 07784377b5d6ea93dd388e61b12723d799b64ded Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 12 Jul 2014 01:19:54 +0400 Subject: [PATCH 02/12] fix version, files Signed-off-by: Igor Gnatenko --- mesa.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mesa.spec b/mesa.spec index 062eb23..57517ac 100644 --- a/mesa.spec +++ b/mesa.spec @@ -54,7 +54,7 @@ Summary: Mesa graphics libraries Name: mesa Version: 10.3 -Release: 0.devel.19.%{git}%{?dist} +Release: 0.devel.1.%{git}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -530,10 +530,6 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/dri/i915_dri.so %{_libdir}/dri/i965_dri.so %endif -%if 0%{?with_freedreno} -%{_libdir}/dri/kgsl_dri.so -%{_libdir}/dri/msm_dri.so -%endif %{_libdir}/dri/nouveau_dri.so %if 0%{?with_vmware} %{_libdir}/dri/vmwgfx_dri.so From 6ef79b1be96aa4a51d29680d073df3edfe8868e8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 12 Jul 2014 10:58:53 +0400 Subject: [PATCH 03/12] fix files when freedreno enabled Signed-off-by: Igor Gnatenko --- mesa.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesa.spec b/mesa.spec index 57517ac..323a606 100644 --- a/mesa.spec +++ b/mesa.spec @@ -530,6 +530,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/dri/i915_dri.so %{_libdir}/dri/i965_dri.so %endif +%if 0%{?with_freedreno} +%{_libdir}/dri/freedreno_dri.so +%endif %{_libdir}/dri/nouveau_dri.so %if 0%{?with_vmware} %{_libdir}/dri/vmwgfx_dri.so From 976931260ed4bb6830fb2f4044e71acb081c2879 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 6 Aug 2014 10:01:29 +0200 Subject: [PATCH 04/12] c40d7d6d948912a4d51cbf8f0854cf2ebe916636 and opencl rebuild Signed-off-by: Igor Gnatenko --- .gitignore | 1 + ...915-Fix-up-intelInitScreen2-for-DRI3.patch | 40 -- mesa.spec | 407 +++++++++++++++++- sources | 2 +- 4 files changed, 401 insertions(+), 49 deletions(-) delete mode 100644 0001-i915-Fix-up-intelInitScreen2-for-DRI3.patch diff --git a/.gitignore b/.gitignore index 031afd0..b3e51a4 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,4 @@ mesa-20100720.tar.bz2 /mesa-20140625.tar.xz /mesa-20140711.tar.xz /mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz +/mesa-c40d7d6d948912a4d51cbf8f0854cf2ebe916636.tar.xz diff --git a/0001-i915-Fix-up-intelInitScreen2-for-DRI3.patch b/0001-i915-Fix-up-intelInitScreen2-for-DRI3.patch deleted file mode 100644 index f959c48..0000000 --- a/0001-i915-Fix-up-intelInitScreen2-for-DRI3.patch +++ /dev/null @@ -1,40 +0,0 @@ -From ea3ade19e2170bd67c3d5448fc38747b8e380d5a Mon Sep 17 00:00:00 2001 -From: Adel Gadllah -Date: Thu, 3 Jul 2014 22:13:53 +0200 -Subject: [PATCH] i915: Fix up intelInitScreen2 for DRI3 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Commit 442442026eb updated both i915 and i965 for DRI3 support, -but one check in intelInitScreen2 was missed for i915 causing crashes -when trying to use i915 with DRI3. - -So fix that up. - -Reported-by: Igor Gnatenko -Tested-by: František Zatloukal -Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1115323 -Cc: "10.2" -Signed-off-by: Adel Gadllah ---- - src/mesa/drivers/dri/i915/intel_screen.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c -index 9b4e490..4c9726c 100644 ---- a/src/mesa/drivers/dri/i915/intel_screen.c -+++ b/src/mesa/drivers/dri/i915/intel_screen.c -@@ -1152,7 +1152,8 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) - { - struct intel_screen *intelScreen; - -- if (psp->dri2.loader->base.version <= 2 || -+ if (psp->image.loader) { -+ } else if (psp->dri2.loader->base.version <= 2 || - psp->dri2.loader->getBuffersWithFormat == NULL) { - fprintf(stderr, - "\nERROR! DRI2 loader with getBuffersWithFormat() " --- -2.0.0 - diff --git a/mesa.spec b/mesa.spec index 323a606..95c063c 100644 --- a/mesa.spec +++ b/mesa.spec @@ -48,13 +48,13 @@ %define _default_patch_fuzz 2 #% define gitdate 20140510 -%define githash f381c27c548aa28b003c8e188f5d627ab4105f76 +%define githash c40d7d6d948912a4d51cbf8f0854cf2ebe916636 %define git %{?githash:%{githash}}%{!?githash:%{gitdate}} Summary: Mesa graphics libraries Name: mesa Version: 10.3 -Release: 0.devel.1.%{git}%{?dist} +Release: 0.devel.2.%{git}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -76,10 +76,6 @@ Patch12: mesa-8.0.1-fix-16bpp.patch Patch15: mesa-9.2-hardware-float.patch Patch20: mesa-10.2-evergreen-big-endian.patch -# http://lists.freedesktop.org/archives/mesa-dev/2014-July/062741.html -# https://bugzilla.redhat.com/show_bug.cgi?id=1115323 -Patch31: 0001-i915-Fix-up-intelInitScreen2-for-DRI3.patch - # https://bugs.freedesktop.org/show_bug.cgi?id=73512 Patch99: 0001-opencl-use-versioned-.so-in-mesa.icd.patch @@ -346,8 +342,6 @@ grep -q ^/ src/gallium/auxiliary/vl/vl_decoder.c && exit 1 %patch15 -p1 -b .hwfloat %patch20 -p1 -b .egbe -%patch31 -p1 -b .dri3fix - %if 0%{?with_opencl} %patch99 -p1 -b .icd %endif @@ -675,6 +669,403 @@ rm -rf $RPM_BUILD_ROOT # Generate changelog using: # git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog +* Wed Aug 06 2014 Igor Gnatenko - 10.3-0.devel.2.c40d7d6d948912a4d51cbf8f0854cf2ebe916636 +- dri/xmlconfig: s/uint/unsigned int/ (Vinson Lee) +- mesa include stdint.h in formats.h (Brian Paul) +- mesa/texstore: Add a generic rgba integer texture upload path (Jason Ekstrand) +- mesa/texstore: Add a generic float/normalized rgba texture upload path (Jason Ekstrand) +- mesa/texstore: Use _mesa_swizzle_and_convert when possible (Jason Ekstrand) +- main/texstore: Split texture storage into three functions (Jason Ekstrand) +- mesa/format_utils: Add a function to convert a mesa_format to an array format (Jason Ekstrand) +- mesa/format_utils: Add a general format conversion function (Jason Ekstrand) +- mesa/imports: Add a _mesa_half_is_negative helper function (Jason Ekstrand) +- mesa/formats: Add layout and swizzle information (Jason Ekstrand) +- mesa/formats: Remove IndexBits (Jason Ekstrand) +- mesa/formats: Autogenerate the format_info structure from a CSV file (Jason Ekstrand) +- mesa/main: Add python code to generate the format_info structure (Jason Ekstrand) +- mesa: Add python to parse the formats CSV file (Jason Ekstrand) +- mesa: Add a format description CSV file (Jason Ekstrand) +- util/tests/hash_table: Link against libmesautil instead of libmesa (Jason Ekstrand) +- st/mesa: adjust Z coordinates for quad clearing (Brian Paul) +- mesa: make vertex array type error checking a little more efficient (Brian Paul) +- glsl_to_tgsi: Fix typo shader_program -> shader (Michel Dänzer) +- mesa: update wglext.h to version 20140630 (Brian Paul) +- mesa: update glxext.h to version 20140725 (Brian Paul) +- mesa: update glext.h to version 20140725 (Brian Paul) +- meta: Disable dithering during glBlitFramebuffer (Neil Roberts) +- libgl-xlib: drop duplicate mesautil from scons build (Emil Velikov) +- llvmpipe/tests: automake: link against libmesautil.la (Emil Velikov) +- gallium/tests: automake: link against libmesautil.la (Emil Velikov) +- targets/omx: automake: link against libmesautil.la (Emil Velikov) +- targets/xvmc: automake: link against libmesautil.la (Emil Velikov) +- targets/clover: link against libmesautil.la (Jan Vesely) +- gallivm: Fix build with latest LLVM (Jan Vesely) +- targets/dri: link with mesautil (Roland Scheidegger) +- gallium/docs: Document TEX2/TXL2/TXB2 instructions and fix up other tex doc (Roland Scheidegger) +- gallivm: fix cube map array (and cube map shadow with bias) handling (Roland Scheidegger) +- llvmpipe: implement support for cube map arrays (Roland Scheidegger) +- egl: Fix OpenGL ES version checks in _eglParseContextAttribList() (Anuj Phogat) +- meta: Fix datatype computation in get_temp_image_type() (Anuj Phogat) +- meta: Move the call to _mesa_get_format_datatype() out of switch (Anuj Phogat) +- meta: Use _mesa_get_format_bits() to get the GL_RED_BITS (Anuj Phogat) +- meta: Initialize the variable in declaration statement (Anuj Phogat) +- mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats (Anuj Phogat) +- mesa: Add gles3 condition for normalized internal formats in glCopyTexImage*() (Anuj Phogat) +- mesa: Add utility function _mesa_is_enum_format_unorm() (Anuj Phogat) +- mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*() (Anuj Phogat) +- mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*() (Anuj Phogat) +- mesa: Add a helper function _mesa_is_enum_format_unsized() (Anuj Phogat) +- mesa: Don't allow snorm internal formats in glCopyTexImage*() in GLES3 (Anuj Phogat) +- mesa: Add utility function _mesa_is_enum_format_snorm() (Anuj Phogat) +- mesa: Fix condition for using compressed internalformat in glCompressedTexImage3D() (Anuj Phogat) +- mesa: Add error condition for using compressed internalformat in glTexStorage3D() (Anuj Phogat) +- mesa: Turn target_can_be_compressed() in to a utility function (Anuj Phogat) +- mesa: Fix error condition for valid texture targets in glTexStorage* functions (Anuj Phogat) +- glsl: Rebuild the symbol table without unreachable symbols (Ian Romanick) +- glsl: Only create one ir_function for a given name. (Kenneth Graunke) +- glsl: Make it possible to ignore built-ins when matching signatures. (Kenneth Graunke) +- mesa: Actually use the Mesa IR optimizer for ARB programs. (Kenneth Graunke) +- glsl: Do not add extra padding to structures (Ian Romanick) +- glsl: Correctly determine when the field of a UBO is row-major (Ian Romanick) +- linker: Use the matrix layout information in ir_variable and glsl_type for UBO layout (Ian Romanick) +- glsl: Track matrix layout of variables using two bits (Ian Romanick) +- glsl: Also track matrix layout information into structures (Ian Romanick) +- glsl: Track matrix layout of structure fields using two bits (Ian Romanick) +- glsl: Correctly load columns of a row-major matrix (Ian Romanick) +- linker: Add padding after the last field of a structure (Ian Romanick) +- linker: Add a last_field parameter to various program_resource_visitor methods (Ian Romanick) +- mesa: Do not list inactive block members as active (Ian Romanick) +- glsl: Do not eliminate 'shared' or 'std140' blocks or block members (Ian Romanick) +- glsl: Use the without_array predicate to simplify some code (Ian Romanick) +- glsl: Add without_array type predicate (Ian Romanick) +- glsl: Use constant_expression_value instead of as_constant (Ian Romanick) +- targets/graw-gdi: link with mesautil, not mesautils (Brian Paul) +- wmesa: link with mesautil (Brian Paul) +- osmesa: link with mesautil (Brian Paul) +- targets/libgl-gdi: link with mesautil (Brian Paul) +- targets/egl-static: link with libmesautil.la (Brian Paul) +- mesa/x86: put code in braces to silence declarations after code warning (Brian Paul) +- src/Makefile.am: Move gtest before util (Jason Ekstrand) +- util: include c99_compat.h in format_srgb.h to get 'inline' definition (Brian Paul) +- util: include c99_compat.h in hash_table.h to get 'inline' definition (Brian Paul) +- targets/vdpau: link with libmesautil.la to fix build breakage (Brian Paul) +- xlib: fix missing mesautil build breakage (Brian Paul) +- svga: SVGA_3D_CMD_BIND_GB_SHADER needs to reserve two relocations. (Matthew McClure) +- gallium: Add libmesautil dependency to gdm and xa targets (Jason Ekstrand) +- mesa/main: Use the RGB <-> sRGB conversion functions in libmesautil (Jason Ekstrand) +- gallium: Move sRGB <-> RGB handling to libmesautil (Jason Ekstrand) +- util: Gather some common macros (Jason Ekstrand) +- util: Move the open-addressing linear-probing hash_table to src/util. (Kenneth Graunke) +- util: Move ralloc to a new src/util directory. (Kenneth Graunke) +- mesa/SConscript: Use Makefile.sources instead of duplicating the file lists (Jason Ekstrand) +- targets/dri: resolve the scons build (Emil Velikov) +- mesa/st: Fix compiler warnings (Jan Vesely) +- gallium: Fix compiler warning. (Jan Vesely) +- glsl: fix switch statement default case regressions (Tapani Pälli) +- st/dri: Fix driver loading if swrast isn't built (Aaron Watry) +- mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers (Ilia Mirkin) +- Remove XA state tracker support for Radeon (Marek Olšák) +- docs: Import 10.2.5 release notes, add news item. (Carl Worth) +- mesa/st: add support for dynamic ubo selection (Ilia Mirkin) +- i965: Delete stale "pre-gen4" comment in texture validation code. (Kenneth Graunke) +- i965: Delete sampler state structures. (Kenneth Graunke) +- i965: Replace sizeof(struct gen7_sampler_state) with the size itself. (Kenneth Graunke) +- i965: Drop sizeof(struct brw_sampler_state) from estimated prim size. (Kenneth Graunke) +- i965: Make BLORP use brw_emit_sampler_state(). (Kenneth Graunke) +- i965: Delete redundant sampler state dumping code. (Kenneth Graunke) +- i965: Make some brw_sampler_state.c functions static again. (Kenneth Graunke) +- i965: Stop using gen7_update_sampler_state; rm gen7_sampler_state.c. (Kenneth Graunke) +- i965: Make brw_update_sampler_state use 8 bits for LOD fields on Gen7+. (Kenneth Graunke) +- i965: Make brw_update_sampler_state() use brw_emit_sampler_state(). (Kenneth Graunke) +- i965: Introduce a function to emit a SAMPLER_STATE structure. (Kenneth Graunke) +- i965: Add const to upload_default_color's sampler parameter. (Kenneth Graunke) +- i965: Add #defines for SAMPLER_STATE fields. (Kenneth Graunke) +- i965: Convert wrap mode #defines to an enum. (Kenneth Graunke) +- i965: Delete gen7_upload_sampler_state_table and vtable mechanism. (Kenneth Graunke) +- i965: Make brw_upload_sampler_state_table handle Gen7+ as well. (Kenneth Graunke) +- i965: Shift brw_upload_sampler_state_table away from structures. (Kenneth Graunke) +- i965: Push computation for sampler state batch offsets up a level. (Kenneth Graunke) +- i965: Drop unused 'ss_index' parameter from gen7_update_sampler_state. (Kenneth Graunke) +- i965: Stop storing sdc_offset in brw_stage_state. (Kenneth Graunke) +- i965: Drop the degenerate brw_sampler_default_color structure. (Kenneth Graunke) +- i965: Write a better file comment for brw_sampler_state.c. (Kenneth Graunke) +- i965: Rename brw_wm_sampler_state.c to brw_sampler_state.c. (Kenneth Graunke) +- i965/blorp: Don't set min_mag_neq bit in Gen6 SAMPLER_STATE. (Kenneth Graunke) +- define GL_OES_standard_derivatives if extension is supported (Kevin Rogovin) +- llvmpipe: don't store number of layers per level (Roland Scheidegger) +- llvmpipe: integrate memory allocation into llvmpipe_texture_layout (Roland Scheidegger) +- llvmpipe: get rid of impossible code in alloc_image_data (Roland Scheidegger) +- i965/miptree: Layout 1D Array as 2D Array with height of 1 (Jordan Justen) +- r600g: Implement gpu_shader5 textureGather (Glenn Kennard) +- mesa: Add missing atomic buffer bindings and unbindings (Aditya Atluri) +- r600g/radeonsi: Prefer VRAM for CPU -> GPU streaming buffers (Michel Dänzer) +- r600g/radeonsi: Reduce or even drop special treatment of persistent mappings (Michel Dänzer) +- target-helpers: Do not build kms_dri on libdrm-less platforms. (Jon TURNEY) +- r600g: gpu_shader5 gl_SampleMaskIn support (Glenn Kennard) +- r600g: Implement gpu_shader5 integer ops (Glenn Kennard) +- r600g: Add IMUL_HI/UMUL_HI support (Glenn Kennard) +- r600g: Implement GL_ARB_texture_query_lod (Glenn Kennard) +- gbm: Log at least one dlerror() when we fail to open any drivers. (Eric Anholt) +- gbm: Fix a debug log message (Eric Anholt) +- gallium: Add a uif() helper function to complement fui() (Eric Anholt) +- glapi: Do not use backtrace on DragonFly. (Vinson Lee) +- gallivm: fix up out-of-bounds level when using conformant out-of-bound behavior (Roland Scheidegger) +- dri: Add a new capabilities for drivers that can't share buffers (Giovanni Campagna) +- gallium: Add a dumb drm/kms winsys backed swrast provider (Giovanni Campagna) +- Add support for swrast to the DRM EGL platform (Giovanni Campagna) +- st/gbm: don't segfault if the fail to create the screen (Emil Velikov) +- st/gbm: retrieve the driver-name via dd_driver_name() (Emil Velikov) +- glsl/glcpp: rename ERROR to ERROR_TOKEN to fix MSVC build (Brian Paul) +- configure: Don't override user -g or -O options for debug builds (Ian Romanick) +- glsl: Add flex options to eliminate the default rule (Carl Worth) +- glsl/glcpp: Add flex options to eliminate the default rule. (Carl Worth) +- glsl/glcpp: Combine the two rules matching any character (Carl Worth) +- glsl/glcpp: Alphabetize lists of start conditions (Carl Worth) +- glsl/glcpp: Add a catch-all rule for unexpected characters. (Carl Worth) +- glsl/glcpp: Treat carriage return as equivalent to line feed. (Carl Worth) +- glsl/glcpp: Add test for a multi-line comment within an #if 0 block (Carl Worth) +- glsl/glcpp: Test that macro parameters substitute immediately after periods (Carl Worth) +- glsl/glcpp: Add (non)-support for ++ and -- operators (Carl Worth) +- glsl/glcpp: Emit error for duplicate parameter name in function-like macro (Carl Worth) +- glsl/glcpp: Add an explanatory comment for "loc != NULL" check (Carl Worth) +- glsl/glcpp: Drop the HASH_ prefix from token names like HASH_IF (Carl Worth) +- glsl: Properly lex extra tokens when handling # directives. (Kenneth Graunke) +- glsl: Add an internal-error catch-all rule (Carl Worth) +- glsl/glcpp: Correctly parse directives with intervening comments (Carl Worth) +- glsl/glcpp: Rename HASH token to HASH_TOKEN (Carl Worth) +- glsl/glcpp: Don't use start-condition stack when switching to/from (Carl Worth) +- glsl/glcpp: Add a -d/--debug option to the standalone glcpp program (Carl Worth) +- glsl/glcpp: Fix off-by-one error in column in first-line error messages (Carl Worth) +- glsl/glcpp: Minor tweak to wording of error message (Carl Worth) +- glsl/glcpp: Stop using a lexer start condition () for token skipping. (Carl Worth) +- glsl/glcpp: Abstract a bit of common code for returning string tokens (Carl Worth) +- glsl/glcpp: Drop extra, final newline from most output (Carl Worth) +- glsl/glcpp: Add testing for EOF sans newline (and fix for , ) (Carl Worth) +- glsl/glcpp: Remove some un-needed calls to NEWLINE_CATCHUP (Carl Worth) +- glsl/glcpp: Add support for comments between #define and macro identifier (Carl Worth) +- glsl/glcpp: Emit proper error for #define with a non-identifier (Carl Worth) +- glsl/glcpp: Add testing for directives preceded by a space (Carl Worth) +- glsl/glcpp: Fix to emit spaces following directives (Carl Worth) +- configure.ac: require libdrm_radeon 2.4.56 because of the Hawaii fix there (Marek Olšák) +- main/get_hash_params: Add GL_SAMPLE_SHADING_ARB (Jason Ekstrand) +- os_process.c: Add cygwin as an expected platform (Yaakov Selkowitz) +- xmlconfig: Use program_invocation_short_name when building for cygwin (Yaakov Selkowitz) +- docs: fix date typo: July 78 -> 18 (Brian Paul) +- svga: remove unneeded depth==1 assertion in svga_texture_view_surface() (Brian Paul) +- st/wgl: Clamp wglChoosePixelFormatARB's output nNumFormats to nMaxFormats. (José Fonseca) +- gallium/radeon: Add some Emacs .dir-locals.el files (Michel Dänzer) +- ilo: fix fb height of HiZ ops (Chia-I Wu) +- glapi: add indexed blend functions (GL 4.0) (Tapani Pälli) +- r600g,radeonsi: switch all occurences of array_size to util_max_layer (Marek Olšák) +- radeonsi: fix occlusion queries on Hawaii (Marek Olšák) +- winsys/radeon: fix vram_size overflow with Hawaii (Marek Olšák) +- radeonsi: fix a hang with streamout on Hawaii (Marek Olšák) +- radeonsi: fix a hang with instancing on Hawaii (Marek Olšák) +- gallium/util: add a helper for calculating primitive count from vertex count (Marek Olšák) +- radeonsi: fix CMASK and HTILE calculations for Hawaii (Marek Olšák) +- r600g,radeonsi: add debug flags which disable tiling (Marek Olšák) +- gallium: rename shader cap MAX_CONSTS to MAX_CONST_BUFFER_SIZE (Marek Olšák) +- r600g: switch SNORM conversion to DX and GLES behavior (Marek Olšák) +- util: Fix typo (Tom Stellard) +- ilo: correctly propagate resource renames to hardware (Chia-I Wu) +- ilo: add ilo_resource_get_bo() helper (Chia-I Wu) +- radeonsi: Use util_memcpy_cpu_to_le32() (Tom Stellard) +- util: Add util_memcpy_cpu_to_le32() v3 (Tom Stellard) +- clover: Add checks for image support to the image functions v2 (Tom Stellard) +- r600g/compute: Add debug information to promote and demote functions (Bruno Jiménez) +- r600g/compute: Add documentation to compute_memory_pool (Bruno Jiménez) +- ilo: unblock an inline write with a staging bo (Chia-I Wu) +- ilo: try unblocking a transfer with a staging bo (Chia-I Wu) +- ilo: enable persistent and coherent transfers (Chia-I Wu) +- ilo: drop ptr from ilo_transfer (Chia-I Wu) +- ilo: s/TRANSFER_MAP_UNSYNC/TRANSFER_MAP_GTT_UNSYNC/ (Chia-I Wu) +- ilo: drop unused context param from transfer functions (Chia-I Wu) +- ilo: tidy up transfer mapping/unmapping (Chia-I Wu) +- ilo: tidy up choose_transfer_method() (Chia-I Wu) +- ilo: free transfers with util_slab_free() (Chia-I Wu) +- clover: Add clUnloadPlatformCompiler. (EdB) +- clover: Add clCreateProgramWithBuiltInKernels. (EdB) +- glsl/cs: Add several GLSL compute shader variables (Jordan Justen) +- main/cs: Add additional compute shader constant values (Jordan Justen) +- glsl: No longer require ubo block index to be constant in ir_validate (Chris Forbes) +- glsl: Accept nonconstant array references in lower_ubo_reference (Chris Forbes) +- glsl: Convert uniform_block in lower_ubo_reference to ir_rvalue. (Chris Forbes) +- glsl: Mark entire UBO array active if indexed with non-constant. (Chris Forbes) +- glsl: Allow non-constant UBO array indexing with GLSL4/ARB_gpu_shader5. (Chris Forbes) +- ilo: simplify ilo_flush() (Chia-I Wu) +- r600g/compute: Defrag the pool at the same time as we grow it (Bruno Jiménez) +- r600g/compute: Try to use a temporary resource when growing the pool (Bruno Jiménez) +- freedreno: fix typo in gpu version check (Rob Clark) +- freedreno/ir3: split out shader compiler from a3xx (Rob Clark) +- freedreno/a3xx/compiler: rename ir3_shader to ir3 (Rob Clark) +- freedreno/a3xx/compiler: scheduler vs pred reg (Rob Clark) +- freedreno/a3xx/compiler: little cleanups (Rob Clark) +- freedreno/a3xx: enable/disable wa's based on patch-level (Rob Clark) +- freedreno/a3xx/compiler: make IR heap dyanmic (Rob Clark) +- r600g/compute: Fix singed/unsigned comparison compiler warnings. (Jan Vesely) +- clover: Query the device to see if images are supported (Tom Stellard) +- gallium: Add PIPE_CAP_COMPUTE_IMAGES_SUPPORTED (Tom Stellard) +- r600g/compute: Allow compute_memory_defrag to defragment between resources (Bruno Jiménez) +- r600g/compute: Allow compute_memory_move_item to move items between resources (Bruno Jiménez) +- gbm: Search LIBGL_DRIVERS_PATH if GBM_DRIVERS_PATH is not set (Dylan Baker) +- winsys/radeon: fix indentation (Jerome Glisse) +- Add an accelerated version of F_TO_I for x86_64 (Jason Ekstrand) +- i965/fs: Decide predicate/predicate_inverse outside of the for loop. (Matt Turner) +- i965/fs: Swap if/else conditions in SEL peephole. (Matt Turner) +- i965: Improve dead control flow elimination. (Matt Turner) +- nvc0/ir: support 2d constbuf indexing (Ilia Mirkin) +- gm107/ir: emit LDC subops (Ilia Mirkin) +- gk110/ir: emit load constant subop (Ilia Mirkin) +- mesa/st: add support for interpolate_at_* ops (Ilia Mirkin) +- nv50/ir: fix phi/union sources when their def has been merged (Ilia Mirkin) +- nv50/ir: fix hard-coded TYPE_U32 sized register (Ilia Mirkin) +- nvc0: mark shader header if fp64 is used (Ilia Mirkin) +- nv50/ir: keep track of whether the program uses fp64 (Ilia Mirkin) +- nvc0: make sure that the local memory allocation is aligned to 0x10 (Ilia Mirkin) +- mesa: add ARB_clear_texture.xml to file list, remove duplicate decls (Ilia Mirkin) +- ilo: check the tilings of imported handles (Chia-I Wu) +- ilo: clean up resource bo renaming (Chia-I Wu) +- ilo: share some code between {tex,buf}_create_bo (Chia-I Wu) +- ilo: use native 3-component vertex formats on GEN7.5+ (Chia-I Wu) +- ilo: allow for device-dependent format translation (Chia-I Wu) +- i965: Accelerate uploads of RGBA and BGRA GL_UNSIGNED_INT_8_8_8_8_REV textures (Jason Ekstrand) +- mesa: Fix the name in the error message (Ian Romanick) +- glsl: Fix some bad indentation (Ian Romanick) +- i965/fs: Set LastRT on the final FB write on Broadwell. (Kenneth Graunke) +- i965: Port INTEL_DEBUG=optimizer to the vec4 backend. (Kenneth Graunke) +- i965: Save the gl_shader_stage enum in backend_visitor. (Kenneth Graunke) +- i965: Don't print WE_normal in disassembly. (Kenneth Graunke) +- freedreno/a3xx/compiler: fix p0 (kill, etc) (Rob Clark) +- Revert "r600g/compute: Fix warnings" (Tom Stellard) +- radeon/llvm: fix formatting (Grigori Goronzy) +- radeon/llvm: enable unsafe math for graphics shaders (Grigori Goronzy) +- r600g/compute: Fix warnings (Tom Stellard) +- r600g: Use hardware sqrt instruction (Glenn Kennard) +- r600g/compute: Remove unneeded code from compute_memory_promote_item (Bruno Jiménez) +- r600g/compute: Quick exit if there's nothing to add to the pool (Bruno Jiménez) +- r600g/compute: Defrag the pool if it's necesary (Bruno Jiménez) +- r600g/compute: Add a function for defragmenting the pool (Bruno Jiménez) +- r600g/compute: Add a function for moving items in the pool (Bruno Jiménez) +- freedreno/a3xx: more vtx formats (Rob Clark) +- freedreno/a3xx/compiler: const file relative addressing (Rob Clark) +- freedreno/a3xx/compiler: move function (Rob Clark) +- freedreno/a3xx: add back a few stalls (Rob Clark) +- targets/dri: fix freedreno targets (Rob Clark) +- freedreno: update generated headers (Rob Clark) +- docs: Update GL3.txt and relnotes for GL_ARB_clear_texture (Neil Roberts) +- meta: Add a meta implementation of GL_ARB_clear_texture (Neil Roberts) +- meta: Add a state flag for the GL_DITHER (Neil Roberts) +- texstore: Add a generic implementation of GL_ARB_clear_texture (Neil Roberts) +- mesa/main: Add generic bits of ARB_clear_texture implementation (Neil Roberts) +- teximage: Add utility func for format/internalFormat compatibility check (Neil Roberts) +- mesa/main: add ARB_clear_texture entrypoints (Ilia Mirkin) +- r600g/radeonsi: Use write-combined CPU mappings of some BOs in GTT (Michel Dänzer) +- winsys/radeon: Use separate caching buffer managers for VRAM and GTT (Michel Dänzer) +- docs/GL3.txt: update status for ARB_compute_shader (Dave Airlie) +- mesa: Don't use memcpy() in _mesa_texstore() for float depth texture data (Anuj Phogat) +- i965/fs: Fix gl_SampleMask handling for SIMD16 on Gen8+. (Kenneth Graunke) +- i965/fs: Fix gl_SampleID for 2x MSAA and SIMD16 mode. (Kenneth Graunke) +- i965: Add missing persample_shading field to brw_wm_debug_recompile. (Kenneth Graunke) +- i965/disasm: Don't disassemble the URB complete field on Broadwell. (Kenneth Graunke) +- i965: Disable hex offset printing in disassembly. (Kenneth Graunke) +- i965/vec4: Use foreach_inst_in_block a couple more places. (Matt Turner) +- i965: Replace cfg instances with calls to calculate_cfg(). (Matt Turner) +- i965/cfg: Add a foreach_block_and_inst macro. (Matt Turner) +- i965: Add cfg to backend_visitor. (Matt Turner) +- radeonsi/compute: Add support scratch buffer support v2 (Tom Stellard) +- radeonsi/compute: Bump number of user sgprs for LLVM 3.5 (Tom Stellard) +- winsys/radeon: Query the kernel for the number of SEs and SHs per SE (Tom Stellard) +- radeonsi/compute: Share COMPUTE_DBG macro with r600g (Tom Stellard) +- radeonsi: Read rodata from ELF and append it to the end of shaders (Tom Stellard) +- glsl: Fix bad indentation (Ian Romanick) +- i965: Silence unused parameter warning (Ian Romanick) +- i965: Silence 'comparison is always true' warning (Ian Romanick) +- i965: Silence many unused parameter warnings (Ian Romanick) +- configure.ac: Add LLVM patch version to error message. (Vinson Lee) +- main/format_pack: Fix a wrong datatype in pack_ubyte_R8G8_UNORM (Jason Ekstrand) +- docs: Import 10.2.4 release notes (Carl Worth) +- Add support for RGBA8 and RGBX8 textures in intel_texsubimage_tiled_memcpy (Jason Ekstrand) +- i965: Improve debug output in intelTexImage and intelTexSubimage (Jason Ekstrand) +- radeonsi: only update vertex buffers when they need updating (Marek Olšák) +- radeonsi: remove nr_vertex_buffers (Marek Olšák) +- radeonsi: move vertex buffer descriptors from IB to memory (Marek Olšák) +- radeonsi: add support for fine-grained sampler view updates (Marek Olšák) +- radeonsi: move si_set_sampler_views to si_descriptors.c (Marek Olšák) +- radeonsi: move sampler descriptors from IB to memory (Marek Olšák) +- radeonsi: implement ARB_draw_indirect (Marek Olšák) +- radeonsi: don't add info->start to the index buffer offset (Marek Olšák) +- radeonsi: use an SGPR instead of VGT_INDX_OFFSET (Marek Olšák) +- radeonsi: assume LLVM 3.4.2 is always present (Marek Olšák) +- configure.ac: require LLVM 3.4.2 for radeon (Marek Olšák) +- st/mesa,gallium: add a workaround for Unigine Heaven 4.0 and Valley 1.0 (Marek Olšák) +- glsl: add a mechanism to allow #extension directives in the middle of shaders (Marek Olšák) +- r600g: Implement GL_ARB_texture_gather (Glenn Kennard) +- i965: Fix z_offset computation in intel_miptree_unmap_depthstencil() (Anuj Phogat) +- Revert "i965: Extend compute-to-mrf pass to understand blocks of MOVs" (Anuj Phogat) +- i915: Fix up intelInitScreen2 for DRI3 (Adel Gadllah) +- mesa: Fix regression introduced by commit "mesa: fix packing of float texels to GL_SHORT/GL_BYTE". (Pavel Popov) +- nv50: fix build failure on m68k due to invalid struct alignment assumptions (Thorsten Glaser) +- clover: Call end_query before getting timestamp result v2 (Tom Stellard) +- glsl: handle a switch where default is in the middle of cases (Tapani Pälli) +- glsl: Make the tree rebalancer use vector_elements, not components(). (Kenneth Graunke) +- glsl: Guard against error_type in the tree rebalancer. (Kenneth Graunke) +- glsl: Make the tree rebalancer bail on matrix operands. (Kenneth Graunke) +- Revert "i965: Implement GL_PRIMITIVES_GENERATED with non-zero streams." (Kenneth Graunke) +- ilo: add some missing formats (Chia-I Wu) +- ilo: update and tailor the surface format table (Chia-I Wu) +- i965: Don't copy propagate abs into Broadwell logic instructions. (Kenneth Graunke) +- i965/fs: Use WE_all for gl_SampleID header register munging. (Kenneth Graunke) +- i965/fs: Set force_uncompressed and force_sechalf on samplepos setup. (Kenneth Graunke) +- i965: Set execution size to 8 for instructions with force_sechalf set. (Kenneth Graunke) +- nvc0: fix translate path for PRIM_RESTART_WITH_DRAW_ARRAYS (Christoph Bumiller) +- nvc0: add support for indirect drawing (Christoph Bumiller) +- nouveau: check if a fence has already been signalled (Ilia Mirkin) +- glsl: Don't declare variables in for-loop declaration. (Matt Turner) +- exec_list: Make various places use the new length() method. (Connor Abbott) +- exec_list: Add a function to give the length of a list. (Connor Abbott) +- exec_list: Add a prepend function. (Connor Abbott) +- mesa: Don't allow GL_TEXTURE_{LUMINANCE,INTENSITY}_* queries outside compat profile (Ian Romanick) +- mesa: Don't allow GL_TEXTURE_BORDER queries outside compat profile (Ian Romanick) +- mesa: Handle uninitialized textures like other textures in get_tex_level_parameter_image (Ian Romanick) +- i965/fs: Relax interference check in register coalescing. (Matt Turner) +- i965/fs: Perform CSE on sends-from-GRF rather than textures. (Matt Turner) +- glsl: Update expression types after rebalancing the tree. (Matt Turner) +- glsl: Add callback_leave to ir_hierarchical_visitor. (Matt Turner) +- i965: Initialize new chunks of realloc'd memory. (Matt Turner) +- radeon/llvm: Fix LLVM diagnostic error reporting (Tom Stellard) +- util/tgsi: Fix ureg_EMIT/ENDPRIM prototype. (José Fonseca) +- glapi: Use GetProcAddress instead of dlsym on Windows. (Vinson Lee) +- ilo: raise texture size limits (Chia-I Wu) +- ilo: move away from drm_intel_bo_alloc_tiled (Chia-I Wu) +- radeonsi: partially revert "switch descriptors to i32 vectors" (Marek Olšák) +- i965/vec4: Invalidate live intervals in opt_cse, not _local. (Matt Turner) +- i965/vec4: Move aeb list into opt_cse_local. (Matt Turner) +- i965/fs: Invalidate live intervals in opt_cse, not _local. (Matt Turner) +- i965/fs: Move aeb list into opt_cse_local. (Matt Turner) +- glsl: Fix aggregates with dynamic initializers. (Cody Northrop) +- Avoid mesa_dri_drivers import lib being installed (Jon TURNEY) +- i965/vec4: Silence warnings about unhandled interpolation ops (Chris Forbes) +- docs: Mark off ARB_gpu_shader5 interpolation functions for i965 (Chris Forbes) +- i965/fs: add support for ir_*_interpolate_at_* expressions (Chris Forbes) +- i965/fs: Skip channel expressions splitting for interpolation (Chris Forbes) +- i965/fs: add generator support for pixel interpolator query (Chris Forbes) +- i965: add low-level support for send to pixel interpolator (Chris Forbes) +- i965/disasm: add support for pixel interpolator messages (Chris Forbes) +- i965: Add message descriptor bit definitions for pixel interpolator (Chris Forbes) +- i965/disasm: Disassemble indirect sends more properly (Chris Forbes) +- i965: Avoid crashing while dumping vec4 insn operands (Chris Forbes) +- i965: Fix two broken asserts in brw_eu_emit (Chris Forbes) +- glsl: add new interpolateAt* builtin functions (Chris Forbes) +- glsl: add new expression types for interpolateAt* (Chris Forbes) +- allow builtin functions to require parameters to be shader inputs (Chris Forbes) +- radeonsi: rename definitions of shader limits (Marek Olšák) +- radeonsi: switch descriptors to i32 vectors (Marek Olšák) +- radeonsi: properly implement texture opcodes that take an offset (Marek Olšák) +- radeonsi: fix texture fetches with derivatives for 1DArray and 3D textures (Marek Olšák) +- radeonsi: fix samplerCubeShadow with bias (Marek Olšák) +- st/mesa: fix samplerCubeShadow with bias (Marek Olšák) +- mesa: fix crash in st/mesa after deleting a VAO (Marek Olšák) + * Fri Jul 11 2014 Igor Gnatenko - 10.3-0.devel.1.f381c27c548aa28b003c8e188f5d627ab4105f76 - Rebase to 'master' branch (f381c27c548aa28b003c8e188f5d627ab4105f76 commit) diff --git a/sources b/sources index 27e8de9..2bdc856 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4dce9cb9f6e9e0f7f8e12f08dccd4285 mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz +fad6af16b39b8d1c322ac683e8ee40f3 mesa-c40d7d6d948912a4d51cbf8f0854cf2ebe916636.tar.xz From aa0a284f8f887edb5df7bab099fa62e244448880 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 6 Aug 2014 10:25:46 +0200 Subject: [PATCH 05/12] package kms swrast Signed-off-by: Igor Gnatenko --- mesa.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mesa.spec b/mesa.spec index 95c063c..c1965a1 100644 --- a/mesa.spec +++ b/mesa.spec @@ -535,6 +535,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gallium-pipe/*.so %endif %{_libdir}/dri/swrast_dri.so +%{_libdir}/dri/kms_swrast_dri.so %if %{with_hardware} %if 0%{?with_omx} From ad42db06b8bb2f549f62c129e69ceaade9e031bf Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 7 Aug 2014 09:58:01 +0200 Subject: [PATCH 06/12] fix kms_swrast file Signed-off-by: Igor Gnatenko --- mesa.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesa.spec b/mesa.spec index c1965a1..df52575 100644 --- a/mesa.spec +++ b/mesa.spec @@ -535,7 +535,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gallium-pipe/*.so %endif %{_libdir}/dri/swrast_dri.so +%ifnarch %{arm} %{_libdir}/dri/kms_swrast_dri.so +%endif %if %{with_hardware} %if 0%{?with_omx} From f098f029baad1d9041d1337b9aa3d40b697fb534 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 8 Aug 2014 11:30:31 +0200 Subject: [PATCH 07/12] fix freedreno files Signed-off-by: Igor Gnatenko --- mesa.spec | 399 +----------------------------------------------------- 1 file changed, 3 insertions(+), 396 deletions(-) diff --git a/mesa.spec b/mesa.spec index df52575..f67e62c 100644 --- a/mesa.spec +++ b/mesa.spec @@ -525,7 +525,8 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/dri/i965_dri.so %endif %if 0%{?with_freedreno} -%{_libdir}/dri/freedreno_dri.so +%{_libdir}/dri/kgsl_dri.so +%{_libdir}/dri/msm_dri.so %endif %{_libdir}/dri/nouveau_dri.so %if 0%{?with_vmware} @@ -673,401 +674,7 @@ rm -rf $RPM_BUILD_ROOT # git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog * Wed Aug 06 2014 Igor Gnatenko - 10.3-0.devel.2.c40d7d6d948912a4d51cbf8f0854cf2ebe916636 -- dri/xmlconfig: s/uint/unsigned int/ (Vinson Lee) -- mesa include stdint.h in formats.h (Brian Paul) -- mesa/texstore: Add a generic rgba integer texture upload path (Jason Ekstrand) -- mesa/texstore: Add a generic float/normalized rgba texture upload path (Jason Ekstrand) -- mesa/texstore: Use _mesa_swizzle_and_convert when possible (Jason Ekstrand) -- main/texstore: Split texture storage into three functions (Jason Ekstrand) -- mesa/format_utils: Add a function to convert a mesa_format to an array format (Jason Ekstrand) -- mesa/format_utils: Add a general format conversion function (Jason Ekstrand) -- mesa/imports: Add a _mesa_half_is_negative helper function (Jason Ekstrand) -- mesa/formats: Add layout and swizzle information (Jason Ekstrand) -- mesa/formats: Remove IndexBits (Jason Ekstrand) -- mesa/formats: Autogenerate the format_info structure from a CSV file (Jason Ekstrand) -- mesa/main: Add python code to generate the format_info structure (Jason Ekstrand) -- mesa: Add python to parse the formats CSV file (Jason Ekstrand) -- mesa: Add a format description CSV file (Jason Ekstrand) -- util/tests/hash_table: Link against libmesautil instead of libmesa (Jason Ekstrand) -- st/mesa: adjust Z coordinates for quad clearing (Brian Paul) -- mesa: make vertex array type error checking a little more efficient (Brian Paul) -- glsl_to_tgsi: Fix typo shader_program -> shader (Michel Dänzer) -- mesa: update wglext.h to version 20140630 (Brian Paul) -- mesa: update glxext.h to version 20140725 (Brian Paul) -- mesa: update glext.h to version 20140725 (Brian Paul) -- meta: Disable dithering during glBlitFramebuffer (Neil Roberts) -- libgl-xlib: drop duplicate mesautil from scons build (Emil Velikov) -- llvmpipe/tests: automake: link against libmesautil.la (Emil Velikov) -- gallium/tests: automake: link against libmesautil.la (Emil Velikov) -- targets/omx: automake: link against libmesautil.la (Emil Velikov) -- targets/xvmc: automake: link against libmesautil.la (Emil Velikov) -- targets/clover: link against libmesautil.la (Jan Vesely) -- gallivm: Fix build with latest LLVM (Jan Vesely) -- targets/dri: link with mesautil (Roland Scheidegger) -- gallium/docs: Document TEX2/TXL2/TXB2 instructions and fix up other tex doc (Roland Scheidegger) -- gallivm: fix cube map array (and cube map shadow with bias) handling (Roland Scheidegger) -- llvmpipe: implement support for cube map arrays (Roland Scheidegger) -- egl: Fix OpenGL ES version checks in _eglParseContextAttribList() (Anuj Phogat) -- meta: Fix datatype computation in get_temp_image_type() (Anuj Phogat) -- meta: Move the call to _mesa_get_format_datatype() out of switch (Anuj Phogat) -- meta: Use _mesa_get_format_bits() to get the GL_RED_BITS (Anuj Phogat) -- meta: Initialize the variable in declaration statement (Anuj Phogat) -- mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats (Anuj Phogat) -- mesa: Add gles3 condition for normalized internal formats in glCopyTexImage*() (Anuj Phogat) -- mesa: Add utility function _mesa_is_enum_format_unorm() (Anuj Phogat) -- mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*() (Anuj Phogat) -- mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*() (Anuj Phogat) -- mesa: Add a helper function _mesa_is_enum_format_unsized() (Anuj Phogat) -- mesa: Don't allow snorm internal formats in glCopyTexImage*() in GLES3 (Anuj Phogat) -- mesa: Add utility function _mesa_is_enum_format_snorm() (Anuj Phogat) -- mesa: Fix condition for using compressed internalformat in glCompressedTexImage3D() (Anuj Phogat) -- mesa: Add error condition for using compressed internalformat in glTexStorage3D() (Anuj Phogat) -- mesa: Turn target_can_be_compressed() in to a utility function (Anuj Phogat) -- mesa: Fix error condition for valid texture targets in glTexStorage* functions (Anuj Phogat) -- glsl: Rebuild the symbol table without unreachable symbols (Ian Romanick) -- glsl: Only create one ir_function for a given name. (Kenneth Graunke) -- glsl: Make it possible to ignore built-ins when matching signatures. (Kenneth Graunke) -- mesa: Actually use the Mesa IR optimizer for ARB programs. (Kenneth Graunke) -- glsl: Do not add extra padding to structures (Ian Romanick) -- glsl: Correctly determine when the field of a UBO is row-major (Ian Romanick) -- linker: Use the matrix layout information in ir_variable and glsl_type for UBO layout (Ian Romanick) -- glsl: Track matrix layout of variables using two bits (Ian Romanick) -- glsl: Also track matrix layout information into structures (Ian Romanick) -- glsl: Track matrix layout of structure fields using two bits (Ian Romanick) -- glsl: Correctly load columns of a row-major matrix (Ian Romanick) -- linker: Add padding after the last field of a structure (Ian Romanick) -- linker: Add a last_field parameter to various program_resource_visitor methods (Ian Romanick) -- mesa: Do not list inactive block members as active (Ian Romanick) -- glsl: Do not eliminate 'shared' or 'std140' blocks or block members (Ian Romanick) -- glsl: Use the without_array predicate to simplify some code (Ian Romanick) -- glsl: Add without_array type predicate (Ian Romanick) -- glsl: Use constant_expression_value instead of as_constant (Ian Romanick) -- targets/graw-gdi: link with mesautil, not mesautils (Brian Paul) -- wmesa: link with mesautil (Brian Paul) -- osmesa: link with mesautil (Brian Paul) -- targets/libgl-gdi: link with mesautil (Brian Paul) -- targets/egl-static: link with libmesautil.la (Brian Paul) -- mesa/x86: put code in braces to silence declarations after code warning (Brian Paul) -- src/Makefile.am: Move gtest before util (Jason Ekstrand) -- util: include c99_compat.h in format_srgb.h to get 'inline' definition (Brian Paul) -- util: include c99_compat.h in hash_table.h to get 'inline' definition (Brian Paul) -- targets/vdpau: link with libmesautil.la to fix build breakage (Brian Paul) -- xlib: fix missing mesautil build breakage (Brian Paul) -- svga: SVGA_3D_CMD_BIND_GB_SHADER needs to reserve two relocations. (Matthew McClure) -- gallium: Add libmesautil dependency to gdm and xa targets (Jason Ekstrand) -- mesa/main: Use the RGB <-> sRGB conversion functions in libmesautil (Jason Ekstrand) -- gallium: Move sRGB <-> RGB handling to libmesautil (Jason Ekstrand) -- util: Gather some common macros (Jason Ekstrand) -- util: Move the open-addressing linear-probing hash_table to src/util. (Kenneth Graunke) -- util: Move ralloc to a new src/util directory. (Kenneth Graunke) -- mesa/SConscript: Use Makefile.sources instead of duplicating the file lists (Jason Ekstrand) -- targets/dri: resolve the scons build (Emil Velikov) -- mesa/st: Fix compiler warnings (Jan Vesely) -- gallium: Fix compiler warning. (Jan Vesely) -- glsl: fix switch statement default case regressions (Tapani Pälli) -- st/dri: Fix driver loading if swrast isn't built (Aaron Watry) -- mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers (Ilia Mirkin) -- Remove XA state tracker support for Radeon (Marek Olšák) -- docs: Import 10.2.5 release notes, add news item. (Carl Worth) -- mesa/st: add support for dynamic ubo selection (Ilia Mirkin) -- i965: Delete stale "pre-gen4" comment in texture validation code. (Kenneth Graunke) -- i965: Delete sampler state structures. (Kenneth Graunke) -- i965: Replace sizeof(struct gen7_sampler_state) with the size itself. (Kenneth Graunke) -- i965: Drop sizeof(struct brw_sampler_state) from estimated prim size. (Kenneth Graunke) -- i965: Make BLORP use brw_emit_sampler_state(). (Kenneth Graunke) -- i965: Delete redundant sampler state dumping code. (Kenneth Graunke) -- i965: Make some brw_sampler_state.c functions static again. (Kenneth Graunke) -- i965: Stop using gen7_update_sampler_state; rm gen7_sampler_state.c. (Kenneth Graunke) -- i965: Make brw_update_sampler_state use 8 bits for LOD fields on Gen7+. (Kenneth Graunke) -- i965: Make brw_update_sampler_state() use brw_emit_sampler_state(). (Kenneth Graunke) -- i965: Introduce a function to emit a SAMPLER_STATE structure. (Kenneth Graunke) -- i965: Add const to upload_default_color's sampler parameter. (Kenneth Graunke) -- i965: Add #defines for SAMPLER_STATE fields. (Kenneth Graunke) -- i965: Convert wrap mode #defines to an enum. (Kenneth Graunke) -- i965: Delete gen7_upload_sampler_state_table and vtable mechanism. (Kenneth Graunke) -- i965: Make brw_upload_sampler_state_table handle Gen7+ as well. (Kenneth Graunke) -- i965: Shift brw_upload_sampler_state_table away from structures. (Kenneth Graunke) -- i965: Push computation for sampler state batch offsets up a level. (Kenneth Graunke) -- i965: Drop unused 'ss_index' parameter from gen7_update_sampler_state. (Kenneth Graunke) -- i965: Stop storing sdc_offset in brw_stage_state. (Kenneth Graunke) -- i965: Drop the degenerate brw_sampler_default_color structure. (Kenneth Graunke) -- i965: Write a better file comment for brw_sampler_state.c. (Kenneth Graunke) -- i965: Rename brw_wm_sampler_state.c to brw_sampler_state.c. (Kenneth Graunke) -- i965/blorp: Don't set min_mag_neq bit in Gen6 SAMPLER_STATE. (Kenneth Graunke) -- define GL_OES_standard_derivatives if extension is supported (Kevin Rogovin) -- llvmpipe: don't store number of layers per level (Roland Scheidegger) -- llvmpipe: integrate memory allocation into llvmpipe_texture_layout (Roland Scheidegger) -- llvmpipe: get rid of impossible code in alloc_image_data (Roland Scheidegger) -- i965/miptree: Layout 1D Array as 2D Array with height of 1 (Jordan Justen) -- r600g: Implement gpu_shader5 textureGather (Glenn Kennard) -- mesa: Add missing atomic buffer bindings and unbindings (Aditya Atluri) -- r600g/radeonsi: Prefer VRAM for CPU -> GPU streaming buffers (Michel Dänzer) -- r600g/radeonsi: Reduce or even drop special treatment of persistent mappings (Michel Dänzer) -- target-helpers: Do not build kms_dri on libdrm-less platforms. (Jon TURNEY) -- r600g: gpu_shader5 gl_SampleMaskIn support (Glenn Kennard) -- r600g: Implement gpu_shader5 integer ops (Glenn Kennard) -- r600g: Add IMUL_HI/UMUL_HI support (Glenn Kennard) -- r600g: Implement GL_ARB_texture_query_lod (Glenn Kennard) -- gbm: Log at least one dlerror() when we fail to open any drivers. (Eric Anholt) -- gbm: Fix a debug log message (Eric Anholt) -- gallium: Add a uif() helper function to complement fui() (Eric Anholt) -- glapi: Do not use backtrace on DragonFly. (Vinson Lee) -- gallivm: fix up out-of-bounds level when using conformant out-of-bound behavior (Roland Scheidegger) -- dri: Add a new capabilities for drivers that can't share buffers (Giovanni Campagna) -- gallium: Add a dumb drm/kms winsys backed swrast provider (Giovanni Campagna) -- Add support for swrast to the DRM EGL platform (Giovanni Campagna) -- st/gbm: don't segfault if the fail to create the screen (Emil Velikov) -- st/gbm: retrieve the driver-name via dd_driver_name() (Emil Velikov) -- glsl/glcpp: rename ERROR to ERROR_TOKEN to fix MSVC build (Brian Paul) -- configure: Don't override user -g or -O options for debug builds (Ian Romanick) -- glsl: Add flex options to eliminate the default rule (Carl Worth) -- glsl/glcpp: Add flex options to eliminate the default rule. (Carl Worth) -- glsl/glcpp: Combine the two rules matching any character (Carl Worth) -- glsl/glcpp: Alphabetize lists of start conditions (Carl Worth) -- glsl/glcpp: Add a catch-all rule for unexpected characters. (Carl Worth) -- glsl/glcpp: Treat carriage return as equivalent to line feed. (Carl Worth) -- glsl/glcpp: Add test for a multi-line comment within an #if 0 block (Carl Worth) -- glsl/glcpp: Test that macro parameters substitute immediately after periods (Carl Worth) -- glsl/glcpp: Add (non)-support for ++ and -- operators (Carl Worth) -- glsl/glcpp: Emit error for duplicate parameter name in function-like macro (Carl Worth) -- glsl/glcpp: Add an explanatory comment for "loc != NULL" check (Carl Worth) -- glsl/glcpp: Drop the HASH_ prefix from token names like HASH_IF (Carl Worth) -- glsl: Properly lex extra tokens when handling # directives. (Kenneth Graunke) -- glsl: Add an internal-error catch-all rule (Carl Worth) -- glsl/glcpp: Correctly parse directives with intervening comments (Carl Worth) -- glsl/glcpp: Rename HASH token to HASH_TOKEN (Carl Worth) -- glsl/glcpp: Don't use start-condition stack when switching to/from (Carl Worth) -- glsl/glcpp: Add a -d/--debug option to the standalone glcpp program (Carl Worth) -- glsl/glcpp: Fix off-by-one error in column in first-line error messages (Carl Worth) -- glsl/glcpp: Minor tweak to wording of error message (Carl Worth) -- glsl/glcpp: Stop using a lexer start condition () for token skipping. (Carl Worth) -- glsl/glcpp: Abstract a bit of common code for returning string tokens (Carl Worth) -- glsl/glcpp: Drop extra, final newline from most output (Carl Worth) -- glsl/glcpp: Add testing for EOF sans newline (and fix for , ) (Carl Worth) -- glsl/glcpp: Remove some un-needed calls to NEWLINE_CATCHUP (Carl Worth) -- glsl/glcpp: Add support for comments between #define and macro identifier (Carl Worth) -- glsl/glcpp: Emit proper error for #define with a non-identifier (Carl Worth) -- glsl/glcpp: Add testing for directives preceded by a space (Carl Worth) -- glsl/glcpp: Fix to emit spaces following directives (Carl Worth) -- configure.ac: require libdrm_radeon 2.4.56 because of the Hawaii fix there (Marek Olšák) -- main/get_hash_params: Add GL_SAMPLE_SHADING_ARB (Jason Ekstrand) -- os_process.c: Add cygwin as an expected platform (Yaakov Selkowitz) -- xmlconfig: Use program_invocation_short_name when building for cygwin (Yaakov Selkowitz) -- docs: fix date typo: July 78 -> 18 (Brian Paul) -- svga: remove unneeded depth==1 assertion in svga_texture_view_surface() (Brian Paul) -- st/wgl: Clamp wglChoosePixelFormatARB's output nNumFormats to nMaxFormats. (José Fonseca) -- gallium/radeon: Add some Emacs .dir-locals.el files (Michel Dänzer) -- ilo: fix fb height of HiZ ops (Chia-I Wu) -- glapi: add indexed blend functions (GL 4.0) (Tapani Pälli) -- r600g,radeonsi: switch all occurences of array_size to util_max_layer (Marek Olšák) -- radeonsi: fix occlusion queries on Hawaii (Marek Olšák) -- winsys/radeon: fix vram_size overflow with Hawaii (Marek Olšák) -- radeonsi: fix a hang with streamout on Hawaii (Marek Olšák) -- radeonsi: fix a hang with instancing on Hawaii (Marek Olšák) -- gallium/util: add a helper for calculating primitive count from vertex count (Marek Olšák) -- radeonsi: fix CMASK and HTILE calculations for Hawaii (Marek Olšák) -- r600g,radeonsi: add debug flags which disable tiling (Marek Olšák) -- gallium: rename shader cap MAX_CONSTS to MAX_CONST_BUFFER_SIZE (Marek Olšák) -- r600g: switch SNORM conversion to DX and GLES behavior (Marek Olšák) -- util: Fix typo (Tom Stellard) -- ilo: correctly propagate resource renames to hardware (Chia-I Wu) -- ilo: add ilo_resource_get_bo() helper (Chia-I Wu) -- radeonsi: Use util_memcpy_cpu_to_le32() (Tom Stellard) -- util: Add util_memcpy_cpu_to_le32() v3 (Tom Stellard) -- clover: Add checks for image support to the image functions v2 (Tom Stellard) -- r600g/compute: Add debug information to promote and demote functions (Bruno Jiménez) -- r600g/compute: Add documentation to compute_memory_pool (Bruno Jiménez) -- ilo: unblock an inline write with a staging bo (Chia-I Wu) -- ilo: try unblocking a transfer with a staging bo (Chia-I Wu) -- ilo: enable persistent and coherent transfers (Chia-I Wu) -- ilo: drop ptr from ilo_transfer (Chia-I Wu) -- ilo: s/TRANSFER_MAP_UNSYNC/TRANSFER_MAP_GTT_UNSYNC/ (Chia-I Wu) -- ilo: drop unused context param from transfer functions (Chia-I Wu) -- ilo: tidy up transfer mapping/unmapping (Chia-I Wu) -- ilo: tidy up choose_transfer_method() (Chia-I Wu) -- ilo: free transfers with util_slab_free() (Chia-I Wu) -- clover: Add clUnloadPlatformCompiler. (EdB) -- clover: Add clCreateProgramWithBuiltInKernels. (EdB) -- glsl/cs: Add several GLSL compute shader variables (Jordan Justen) -- main/cs: Add additional compute shader constant values (Jordan Justen) -- glsl: No longer require ubo block index to be constant in ir_validate (Chris Forbes) -- glsl: Accept nonconstant array references in lower_ubo_reference (Chris Forbes) -- glsl: Convert uniform_block in lower_ubo_reference to ir_rvalue. (Chris Forbes) -- glsl: Mark entire UBO array active if indexed with non-constant. (Chris Forbes) -- glsl: Allow non-constant UBO array indexing with GLSL4/ARB_gpu_shader5. (Chris Forbes) -- ilo: simplify ilo_flush() (Chia-I Wu) -- r600g/compute: Defrag the pool at the same time as we grow it (Bruno Jiménez) -- r600g/compute: Try to use a temporary resource when growing the pool (Bruno Jiménez) -- freedreno: fix typo in gpu version check (Rob Clark) -- freedreno/ir3: split out shader compiler from a3xx (Rob Clark) -- freedreno/a3xx/compiler: rename ir3_shader to ir3 (Rob Clark) -- freedreno/a3xx/compiler: scheduler vs pred reg (Rob Clark) -- freedreno/a3xx/compiler: little cleanups (Rob Clark) -- freedreno/a3xx: enable/disable wa's based on patch-level (Rob Clark) -- freedreno/a3xx/compiler: make IR heap dyanmic (Rob Clark) -- r600g/compute: Fix singed/unsigned comparison compiler warnings. (Jan Vesely) -- clover: Query the device to see if images are supported (Tom Stellard) -- gallium: Add PIPE_CAP_COMPUTE_IMAGES_SUPPORTED (Tom Stellard) -- r600g/compute: Allow compute_memory_defrag to defragment between resources (Bruno Jiménez) -- r600g/compute: Allow compute_memory_move_item to move items between resources (Bruno Jiménez) -- gbm: Search LIBGL_DRIVERS_PATH if GBM_DRIVERS_PATH is not set (Dylan Baker) -- winsys/radeon: fix indentation (Jerome Glisse) -- Add an accelerated version of F_TO_I for x86_64 (Jason Ekstrand) -- i965/fs: Decide predicate/predicate_inverse outside of the for loop. (Matt Turner) -- i965/fs: Swap if/else conditions in SEL peephole. (Matt Turner) -- i965: Improve dead control flow elimination. (Matt Turner) -- nvc0/ir: support 2d constbuf indexing (Ilia Mirkin) -- gm107/ir: emit LDC subops (Ilia Mirkin) -- gk110/ir: emit load constant subop (Ilia Mirkin) -- mesa/st: add support for interpolate_at_* ops (Ilia Mirkin) -- nv50/ir: fix phi/union sources when their def has been merged (Ilia Mirkin) -- nv50/ir: fix hard-coded TYPE_U32 sized register (Ilia Mirkin) -- nvc0: mark shader header if fp64 is used (Ilia Mirkin) -- nv50/ir: keep track of whether the program uses fp64 (Ilia Mirkin) -- nvc0: make sure that the local memory allocation is aligned to 0x10 (Ilia Mirkin) -- mesa: add ARB_clear_texture.xml to file list, remove duplicate decls (Ilia Mirkin) -- ilo: check the tilings of imported handles (Chia-I Wu) -- ilo: clean up resource bo renaming (Chia-I Wu) -- ilo: share some code between {tex,buf}_create_bo (Chia-I Wu) -- ilo: use native 3-component vertex formats on GEN7.5+ (Chia-I Wu) -- ilo: allow for device-dependent format translation (Chia-I Wu) -- i965: Accelerate uploads of RGBA and BGRA GL_UNSIGNED_INT_8_8_8_8_REV textures (Jason Ekstrand) -- mesa: Fix the name in the error message (Ian Romanick) -- glsl: Fix some bad indentation (Ian Romanick) -- i965/fs: Set LastRT on the final FB write on Broadwell. (Kenneth Graunke) -- i965: Port INTEL_DEBUG=optimizer to the vec4 backend. (Kenneth Graunke) -- i965: Save the gl_shader_stage enum in backend_visitor. (Kenneth Graunke) -- i965: Don't print WE_normal in disassembly. (Kenneth Graunke) -- freedreno/a3xx/compiler: fix p0 (kill, etc) (Rob Clark) -- Revert "r600g/compute: Fix warnings" (Tom Stellard) -- radeon/llvm: fix formatting (Grigori Goronzy) -- radeon/llvm: enable unsafe math for graphics shaders (Grigori Goronzy) -- r600g/compute: Fix warnings (Tom Stellard) -- r600g: Use hardware sqrt instruction (Glenn Kennard) -- r600g/compute: Remove unneeded code from compute_memory_promote_item (Bruno Jiménez) -- r600g/compute: Quick exit if there's nothing to add to the pool (Bruno Jiménez) -- r600g/compute: Defrag the pool if it's necesary (Bruno Jiménez) -- r600g/compute: Add a function for defragmenting the pool (Bruno Jiménez) -- r600g/compute: Add a function for moving items in the pool (Bruno Jiménez) -- freedreno/a3xx: more vtx formats (Rob Clark) -- freedreno/a3xx/compiler: const file relative addressing (Rob Clark) -- freedreno/a3xx/compiler: move function (Rob Clark) -- freedreno/a3xx: add back a few stalls (Rob Clark) -- targets/dri: fix freedreno targets (Rob Clark) -- freedreno: update generated headers (Rob Clark) -- docs: Update GL3.txt and relnotes for GL_ARB_clear_texture (Neil Roberts) -- meta: Add a meta implementation of GL_ARB_clear_texture (Neil Roberts) -- meta: Add a state flag for the GL_DITHER (Neil Roberts) -- texstore: Add a generic implementation of GL_ARB_clear_texture (Neil Roberts) -- mesa/main: Add generic bits of ARB_clear_texture implementation (Neil Roberts) -- teximage: Add utility func for format/internalFormat compatibility check (Neil Roberts) -- mesa/main: add ARB_clear_texture entrypoints (Ilia Mirkin) -- r600g/radeonsi: Use write-combined CPU mappings of some BOs in GTT (Michel Dänzer) -- winsys/radeon: Use separate caching buffer managers for VRAM and GTT (Michel Dänzer) -- docs/GL3.txt: update status for ARB_compute_shader (Dave Airlie) -- mesa: Don't use memcpy() in _mesa_texstore() for float depth texture data (Anuj Phogat) -- i965/fs: Fix gl_SampleMask handling for SIMD16 on Gen8+. (Kenneth Graunke) -- i965/fs: Fix gl_SampleID for 2x MSAA and SIMD16 mode. (Kenneth Graunke) -- i965: Add missing persample_shading field to brw_wm_debug_recompile. (Kenneth Graunke) -- i965/disasm: Don't disassemble the URB complete field on Broadwell. (Kenneth Graunke) -- i965: Disable hex offset printing in disassembly. (Kenneth Graunke) -- i965/vec4: Use foreach_inst_in_block a couple more places. (Matt Turner) -- i965: Replace cfg instances with calls to calculate_cfg(). (Matt Turner) -- i965/cfg: Add a foreach_block_and_inst macro. (Matt Turner) -- i965: Add cfg to backend_visitor. (Matt Turner) -- radeonsi/compute: Add support scratch buffer support v2 (Tom Stellard) -- radeonsi/compute: Bump number of user sgprs for LLVM 3.5 (Tom Stellard) -- winsys/radeon: Query the kernel for the number of SEs and SHs per SE (Tom Stellard) -- radeonsi/compute: Share COMPUTE_DBG macro with r600g (Tom Stellard) -- radeonsi: Read rodata from ELF and append it to the end of shaders (Tom Stellard) -- glsl: Fix bad indentation (Ian Romanick) -- i965: Silence unused parameter warning (Ian Romanick) -- i965: Silence 'comparison is always true' warning (Ian Romanick) -- i965: Silence many unused parameter warnings (Ian Romanick) -- configure.ac: Add LLVM patch version to error message. (Vinson Lee) -- main/format_pack: Fix a wrong datatype in pack_ubyte_R8G8_UNORM (Jason Ekstrand) -- docs: Import 10.2.4 release notes (Carl Worth) -- Add support for RGBA8 and RGBX8 textures in intel_texsubimage_tiled_memcpy (Jason Ekstrand) -- i965: Improve debug output in intelTexImage and intelTexSubimage (Jason Ekstrand) -- radeonsi: only update vertex buffers when they need updating (Marek Olšák) -- radeonsi: remove nr_vertex_buffers (Marek Olšák) -- radeonsi: move vertex buffer descriptors from IB to memory (Marek Olšák) -- radeonsi: add support for fine-grained sampler view updates (Marek Olšák) -- radeonsi: move si_set_sampler_views to si_descriptors.c (Marek Olšák) -- radeonsi: move sampler descriptors from IB to memory (Marek Olšák) -- radeonsi: implement ARB_draw_indirect (Marek Olšák) -- radeonsi: don't add info->start to the index buffer offset (Marek Olšák) -- radeonsi: use an SGPR instead of VGT_INDX_OFFSET (Marek Olšák) -- radeonsi: assume LLVM 3.4.2 is always present (Marek Olšák) -- configure.ac: require LLVM 3.4.2 for radeon (Marek Olšák) -- st/mesa,gallium: add a workaround for Unigine Heaven 4.0 and Valley 1.0 (Marek Olšák) -- glsl: add a mechanism to allow #extension directives in the middle of shaders (Marek Olšák) -- r600g: Implement GL_ARB_texture_gather (Glenn Kennard) -- i965: Fix z_offset computation in intel_miptree_unmap_depthstencil() (Anuj Phogat) -- Revert "i965: Extend compute-to-mrf pass to understand blocks of MOVs" (Anuj Phogat) -- i915: Fix up intelInitScreen2 for DRI3 (Adel Gadllah) -- mesa: Fix regression introduced by commit "mesa: fix packing of float texels to GL_SHORT/GL_BYTE". (Pavel Popov) -- nv50: fix build failure on m68k due to invalid struct alignment assumptions (Thorsten Glaser) -- clover: Call end_query before getting timestamp result v2 (Tom Stellard) -- glsl: handle a switch where default is in the middle of cases (Tapani Pälli) -- glsl: Make the tree rebalancer use vector_elements, not components(). (Kenneth Graunke) -- glsl: Guard against error_type in the tree rebalancer. (Kenneth Graunke) -- glsl: Make the tree rebalancer bail on matrix operands. (Kenneth Graunke) -- Revert "i965: Implement GL_PRIMITIVES_GENERATED with non-zero streams." (Kenneth Graunke) -- ilo: add some missing formats (Chia-I Wu) -- ilo: update and tailor the surface format table (Chia-I Wu) -- i965: Don't copy propagate abs into Broadwell logic instructions. (Kenneth Graunke) -- i965/fs: Use WE_all for gl_SampleID header register munging. (Kenneth Graunke) -- i965/fs: Set force_uncompressed and force_sechalf on samplepos setup. (Kenneth Graunke) -- i965: Set execution size to 8 for instructions with force_sechalf set. (Kenneth Graunke) -- nvc0: fix translate path for PRIM_RESTART_WITH_DRAW_ARRAYS (Christoph Bumiller) -- nvc0: add support for indirect drawing (Christoph Bumiller) -- nouveau: check if a fence has already been signalled (Ilia Mirkin) -- glsl: Don't declare variables in for-loop declaration. (Matt Turner) -- exec_list: Make various places use the new length() method. (Connor Abbott) -- exec_list: Add a function to give the length of a list. (Connor Abbott) -- exec_list: Add a prepend function. (Connor Abbott) -- mesa: Don't allow GL_TEXTURE_{LUMINANCE,INTENSITY}_* queries outside compat profile (Ian Romanick) -- mesa: Don't allow GL_TEXTURE_BORDER queries outside compat profile (Ian Romanick) -- mesa: Handle uninitialized textures like other textures in get_tex_level_parameter_image (Ian Romanick) -- i965/fs: Relax interference check in register coalescing. (Matt Turner) -- i965/fs: Perform CSE on sends-from-GRF rather than textures. (Matt Turner) -- glsl: Update expression types after rebalancing the tree. (Matt Turner) -- glsl: Add callback_leave to ir_hierarchical_visitor. (Matt Turner) -- i965: Initialize new chunks of realloc'd memory. (Matt Turner) -- radeon/llvm: Fix LLVM diagnostic error reporting (Tom Stellard) -- util/tgsi: Fix ureg_EMIT/ENDPRIM prototype. (José Fonseca) -- glapi: Use GetProcAddress instead of dlsym on Windows. (Vinson Lee) -- ilo: raise texture size limits (Chia-I Wu) -- ilo: move away from drm_intel_bo_alloc_tiled (Chia-I Wu) -- radeonsi: partially revert "switch descriptors to i32 vectors" (Marek Olšák) -- i965/vec4: Invalidate live intervals in opt_cse, not _local. (Matt Turner) -- i965/vec4: Move aeb list into opt_cse_local. (Matt Turner) -- i965/fs: Invalidate live intervals in opt_cse, not _local. (Matt Turner) -- i965/fs: Move aeb list into opt_cse_local. (Matt Turner) -- glsl: Fix aggregates with dynamic initializers. (Cody Northrop) -- Avoid mesa_dri_drivers import lib being installed (Jon TURNEY) -- i965/vec4: Silence warnings about unhandled interpolation ops (Chris Forbes) -- docs: Mark off ARB_gpu_shader5 interpolation functions for i965 (Chris Forbes) -- i965/fs: add support for ir_*_interpolate_at_* expressions (Chris Forbes) -- i965/fs: Skip channel expressions splitting for interpolation (Chris Forbes) -- i965/fs: add generator support for pixel interpolator query (Chris Forbes) -- i965: add low-level support for send to pixel interpolator (Chris Forbes) -- i965/disasm: add support for pixel interpolator messages (Chris Forbes) -- i965: Add message descriptor bit definitions for pixel interpolator (Chris Forbes) -- i965/disasm: Disassemble indirect sends more properly (Chris Forbes) -- i965: Avoid crashing while dumping vec4 insn operands (Chris Forbes) -- i965: Fix two broken asserts in brw_eu_emit (Chris Forbes) -- glsl: add new interpolateAt* builtin functions (Chris Forbes) -- glsl: add new expression types for interpolateAt* (Chris Forbes) -- allow builtin functions to require parameters to be shader inputs (Chris Forbes) -- radeonsi: rename definitions of shader limits (Marek Olšák) -- radeonsi: switch descriptors to i32 vectors (Marek Olšák) -- radeonsi: properly implement texture opcodes that take an offset (Marek Olšák) -- radeonsi: fix texture fetches with derivatives for 1DArray and 3D textures (Marek Olšák) -- radeonsi: fix samplerCubeShadow with bias (Marek Olšák) -- st/mesa: fix samplerCubeShadow with bias (Marek Olšák) -- mesa: fix crash in st/mesa after deleting a VAO (Marek Olšák) +- c40d7d6d948912a4d51cbf8f0854cf2ebe916636 commit * Fri Jul 11 2014 Igor Gnatenko - 10.3-0.devel.1.f381c27c548aa28b003c8e188f5d627ab4105f76 - Rebase to 'master' branch (f381c27c548aa28b003c8e188f5d627ab4105f76 commit) From 8edaa15c9479cbebc55463d1b1f91803f09448bd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 9 Aug 2014 19:00:25 +0200 Subject: [PATCH 08/12] Installed (but unpackaged) file(s) found: /usr/lib/dri/kms_swrast_dri.so Signed-off-by: Igor Gnatenko --- mesa.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesa.spec b/mesa.spec index f67e62c..8374730 100644 --- a/mesa.spec +++ b/mesa.spec @@ -536,9 +536,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gallium-pipe/*.so %endif %{_libdir}/dri/swrast_dri.so -%ifnarch %{arm} %{_libdir}/dri/kms_swrast_dri.so -%endif %if %{with_hardware} %if 0%{?with_omx} From 4aaa530601a529ab9f6f445e165b2f9c73935fbe Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 17 Aug 2014 09:15:33 +0000 Subject: [PATCH 09/12] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- mesa.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index 8374730..973e9dd 100644 --- a/mesa.spec +++ b/mesa.spec @@ -54,7 +54,7 @@ Summary: Mesa graphics libraries Name: mesa Version: 10.3 -Release: 0.devel.2.%{git}%{?dist} +Release: 0.devel.2.%{git}%{?dist}.1 License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -671,6 +671,9 @@ rm -rf $RPM_BUILD_ROOT # Generate changelog using: # git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog +* Sun Aug 17 2014 Fedora Release Engineering - 10.3-0.devel.2.c40d7d6d948912a4d51cbf8f0854cf2ebe916636.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Wed Aug 06 2014 Igor Gnatenko - 10.3-0.devel.2.c40d7d6d948912a4d51cbf8f0854cf2ebe916636 - c40d7d6d948912a4d51cbf8f0854cf2ebe916636 commit From 316f8d3ca34c9cca7e17f417568bb71d20266575 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 22 Aug 2014 16:23:26 +0600 Subject: [PATCH 10/12] e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 commit Signed-off-by: Igor Gnatenko --- .gitignore | 1 + mesa.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b3e51a4..4363143 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,4 @@ mesa-20100720.tar.bz2 /mesa-20140711.tar.xz /mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz /mesa-c40d7d6d948912a4d51cbf8f0854cf2ebe916636.tar.xz +/mesa-e7f2f2dea5acdbd1a12ed88914e64a38a97432f0.tar.xz diff --git a/mesa.spec b/mesa.spec index 973e9dd..856948a 100644 --- a/mesa.spec +++ b/mesa.spec @@ -48,13 +48,13 @@ %define _default_patch_fuzz 2 #% define gitdate 20140510 -%define githash c40d7d6d948912a4d51cbf8f0854cf2ebe916636 +%define githash e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 %define git %{?githash:%{githash}}%{!?githash:%{gitdate}} Summary: Mesa graphics libraries Name: mesa Version: 10.3 -Release: 0.devel.2.%{git}%{?dist}.1 +Release: 0.rc1.1.%{git}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -671,6 +671,9 @@ rm -rf $RPM_BUILD_ROOT # Generate changelog using: # git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog +* Fri Aug 22 2014 Igor Gnatenko - 10.3-0.rc1.1.e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 +- e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 commit + * Sun Aug 17 2014 Fedora Release Engineering - 10.3-0.devel.2.c40d7d6d948912a4d51cbf8f0854cf2ebe916636.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 2bdc856..bf944f6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fad6af16b39b8d1c322ac683e8ee40f3 mesa-c40d7d6d948912a4d51cbf8f0854cf2ebe916636.tar.xz +fb2ffb8217533c4c1b5fe64f9930e193 mesa-e7f2f2dea5acdbd1a12ed88914e64a38a97432f0.tar.xz From 488ba0676f7f6533060211f170878bc666225e15 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 22 Aug 2014 19:40:44 +0600 Subject: [PATCH 11/12] Installed (but unpackaged) file(s) found: /usr/include/GL/glcorearb.h Signed-off-by: Igor Gnatenko --- mesa.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/mesa.spec b/mesa.spec index 856948a..0537034 100644 --- a/mesa.spec +++ b/mesa.spec @@ -565,6 +565,7 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/GL/glx.h %{_includedir}/GL/glx_mangle.h %{_includedir}/GL/glxext.h +%{_includedir}/GL/glcorearb.h %dir %{_includedir}/GL/internal %{_includedir}/GL/internal/dri_interface.h %{_libdir}/pkgconfig/dri.pc From 21f1a7fe9c861f76c1d4fd27c488629dcf4d24d2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 23 Aug 2014 21:51:49 +0600 Subject: [PATCH 12/12] c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f commit Signed-off-by: Igor Gnatenko --- .gitignore | 1 + mesa.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4363143..b01f59b 100644 --- a/.gitignore +++ b/.gitignore @@ -80,3 +80,4 @@ mesa-20100720.tar.bz2 /mesa-f381c27c548aa28b003c8e188f5d627ab4105f76.tar.xz /mesa-c40d7d6d948912a4d51cbf8f0854cf2ebe916636.tar.xz /mesa-e7f2f2dea5acdbd1a12ed88914e64a38a97432f0.tar.xz +/mesa-c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f.tar.xz diff --git a/mesa.spec b/mesa.spec index 0537034..9562ece 100644 --- a/mesa.spec +++ b/mesa.spec @@ -48,13 +48,13 @@ %define _default_patch_fuzz 2 #% define gitdate 20140510 -%define githash e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 +%define githash c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f %define git %{?githash:%{githash}}%{!?githash:%{gitdate}} Summary: Mesa graphics libraries Name: mesa -Version: 10.3 -Release: 0.rc1.1.%{git}%{?dist} +Version: 10.4 +Release: 0.devel.1.%{git}%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -672,6 +672,9 @@ rm -rf $RPM_BUILD_ROOT # Generate changelog using: # git log old_commit_sha..new_commit_sha --format="- %H: %s (%an)" %changelog +* Sat Aug 23 2014 Igor Gnatenko - 10.4-0.devel.1.c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f +- 10.4 c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f + * Fri Aug 22 2014 Igor Gnatenko - 10.3-0.rc1.1.e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 - e7f2f2dea5acdbd1a12ed88914e64a38a97432f0 commit diff --git a/sources b/sources index bf944f6..0fd00b6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fb2ffb8217533c4c1b5fe64f9930e193 mesa-e7f2f2dea5acdbd1a12ed88914e64a38a97432f0.tar.xz +47debe611a8154fc008719ef7549b9f5 mesa-c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f.tar.xz