diff --git a/.cvsignore b/.cvsignore index 18b6358..2224a9b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,3 +1 @@ -gl-manpages-1.0.1.tar.bz2 -mesa-20080311.tar.bz2 -mesa-20080331.tar.bz2 +mesa-20080415.tar.bz2 diff --git a/mesa-7.1-dri2.patch b/mesa-7.1-dri2.patch deleted file mode 100644 index dd62911..0000000 --- a/mesa-7.1-dri2.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up mesa-20080331/src/glx/x11/dri2.c.jx mesa-20080331/src/glx/x11/dri2.c ---- mesa-20080331/src/glx/x11/dri2.c.jx 2008-03-31 16:58:48.000000000 -0400 -+++ mesa-20080331/src/glx/x11/dri2.c 2008-04-09 10:15:59.000000000 -0400 -@@ -37,7 +37,7 @@ - #include - #include "glheader.h" - #include "xf86drm.h" --#include "dri2proto.h" -+#include - #include "dri2.h" - - static char dri2ExtensionName[] = DRI2_NAME; diff --git a/mesa-7.1-fbconfig-fix.patch b/mesa-7.1-fbconfig-fix.patch deleted file mode 100644 index b054a4a..0000000 --- a/mesa-7.1-fbconfig-fix.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 2771862adcbc163c0a3f3eaaf4b58c658e72f680 Mon Sep 17 00:00:00 2001 -From: Jie Luo -Date: Tue, 08 Apr 2008 23:17:06 +0000 -Subject: Handle fbconfig comparison correctly for attributes the X server didn't send. - ---- -diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c -index fd10047..70873c2 100644 ---- a/src/glx/x11/dri_glx.c -+++ b/src/glx/x11/dri_glx.c -@@ -520,13 +520,13 @@ static const struct { unsigned int attrib, offset; } attribMap[] = { - static int - scalarEqual(__GLcontextModes *mode, unsigned int attrib, unsigned int value) - { -- unsigned int driValue; -+ unsigned int glxValue; - int i; - - for (i = 0; i < ARRAY_SIZE(attribMap); i++) - if (attribMap[i].attrib == attrib) { -- driValue = *(unsigned int *) ((char *) mode + attribMap[i].offset); -- return driValue == value; -+ glxValue = *(unsigned int *) ((char *) mode + attribMap[i].offset); -+ return glxValue == GLX_DONT_CARE || glxValue == value; - } - - return GL_TRUE; /* Is a non-existing attribute equal to value? */ -@@ -572,7 +572,8 @@ driConfigEqual(const __DRIcoreExtension *core, - glxValue |= GLX_TEXTURE_2D_BIT_EXT; - if (value & __DRI_ATTRIB_TEXTURE_RECTANGLE_BIT) - glxValue |= GLX_TEXTURE_RECTANGLE_BIT_EXT; -- if (glxValue != modes->bindToTextureTargets) -+ if (modes->bindToTextureTargets != GLX_DONT_CARE && -+ glxValue != modes->bindToTextureTargets) - return GL_FALSE; - break; - -diff --git a/src/glx/x11/glcontextmodes.c b/src/glx/x11/glcontextmodes.c -index 58c548a..2a8e48d 100644 ---- a/src/glx/x11/glcontextmodes.c -+++ b/src/glx/x11/glcontextmodes.c -@@ -415,7 +415,7 @@ _gl_context_modes_create( unsigned count, size_t minimum_size ) - (*next)->bindToTextureRgb = GLX_DONT_CARE; - (*next)->bindToTextureRgba = GLX_DONT_CARE; - (*next)->bindToMipmapTexture = GLX_DONT_CARE; -- (*next)->bindToTextureTargets = 0; -+ (*next)->bindToTextureTargets = GLX_DONT_CARE; - (*next)->yInverted = GLX_DONT_CARE; - - next = & ((*next)->next); --- -cgit v0.7.2-37-g538c diff --git a/mesa-7.1-visual-crash.patch b/mesa-7.1-visual-crash.patch deleted file mode 100644 index eff9e80..0000000 --- a/mesa-7.1-visual-crash.patch +++ /dev/null @@ -1,51 +0,0 @@ -From c016f329abb3d638442bf0b0f27d8f34ebf54f86 Mon Sep 17 00:00:00 2001 -From: Kristian Høgsberg -Date: Tue, 08 Apr 2008 22:26:24 +0000 -Subject: Only convert configs if screen creation was successful. - -Thanks to Adam Jackson for pointing it out. ---- -diff --git a/progs/demos/Makefile b/progs/demos/Makefile -index 456bd4a..01b76ad 100644 ---- a/progs/demos/Makefile -+++ b/progs/demos/Makefile -@@ -13,7 +13,7 @@ OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS) - - LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME) - --LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) -+LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) -lX11 -lXi -lXmu - - PROGS = \ - arbfplight \ -diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c -index 004af0b..fd10047 100644 ---- a/src/glx/x11/dri_glx.c -+++ b/src/glx/x11/dri_glx.c -@@ -786,14 +786,16 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, - & driver_configs, - psc); - -- psc->configs = -- driConvertConfigs(psc->core, -- psc->configs, -- driver_configs); -- psc->visuals = -- driConvertConfigs(psc->core, -- psc->visuals, -- driver_configs); -+ if (psp) { -+ psc->configs = -+ driConvertConfigs(psc->core, -+ psc->configs, -+ driver_configs); -+ psc->visuals = -+ driConvertConfigs(psc->core, -+ psc->visuals, -+ driver_configs); -+ } - } - } - } --- -cgit v0.7.2-37-g538c diff --git a/mesa.spec b/mesa.spec index 0d802ed..de248ef 100644 --- a/mesa.spec +++ b/mesa.spec @@ -10,12 +10,12 @@ %endif %define manpages gl-manpages-1.0.1 -%define gitdate 20080331 +%define gitdate 20080415 Summary: Mesa graphics libraries Name: mesa Version: 7.1 -Release: 0.24%{?dist} +Release: 0.25%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -33,9 +33,6 @@ Patch2: mesa-7.1pre-nukeglthread-debug.patch # This doesn't work, disable for now. Patch3: disable-tex-offset.patch -Patch4: mesa-7.1-visual-crash.patch -Patch5: mesa-7.1-fbconfig-fix.patch -Patch6: mesa-7.1-dri2.patch Patch7: mesa-7.1-link-shared.patch # lets only build drivers on sparc that are remotely useful Patch8: mesa-7.1-sparc.patch @@ -164,9 +161,6 @@ This package provides some demo applications for testing Mesa. %patch0 -p1 -b .osmesa %patch2 -p1 -b .intel-glthread %patch3 -p1 -b .disable-tex-offset -%patch4 -p1 -b .visual-crash -%patch5 -p1 -b .fbconfig -%patch6 -p1 -b .dri2 %patch7 -p1 -b .dricore %patch8 -p1 @@ -417,6 +411,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/mesa-demos-data %changelog +* Tue Apr 15 2008 Dave Airlie 7.1-0.25 +- Rebase to latest upstream - drop patches applied there. + * Sat Apr 12 2008 Dennis Gilmore 7.1-0.24 - add patch so that we only build dri drivers on sparc that are remotely useful. sis driver breaks the build and the intel ones will never exist diff --git a/sources b/sources index 199b1e8..18f21d9 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 4c32a78a28832fa34e0a5a04c6b9057c mesa-20080415.tar.bz2 +6ae05158e678f4594343f32c2ca50515 gl-manpages-1.0.1.tar.bz2