packages: Mesa/Mesa-tgsi_dump.patch, Mesa/Mesa.spec - up to 7.8 snapshot

arekm arekm at pld-linux.org
Mon Feb 22 23:01:47 CET 2010


Author: arekm                        Date: Mon Feb 22 22:01:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 7.8 snapshot

---- Files affected:
packages/Mesa:
   Mesa-tgsi_dump.patch (1.1 -> 1.2) , Mesa.spec (1.239 -> 1.240) 

---- Diffs:

================================================================
Index: packages/Mesa/Mesa-tgsi_dump.patch
diff -u packages/Mesa/Mesa-tgsi_dump.patch:1.1 packages/Mesa/Mesa-tgsi_dump.patch:1.2
--- packages/Mesa/Mesa-tgsi_dump.patch:1.1	Sun Jan 10 11:55:43 2010
+++ packages/Mesa/Mesa-tgsi_dump.patch	Mon Feb 22 23:01:39 2010
@@ -1,6 +1,6 @@
---- Mesa-7.7/src/gallium/auxiliary/tgsi/tgsi_dump.c.orig	2009-12-22 03:26:02.000000000 +0100
-+++ Mesa-7.7/src/gallium/auxiliary/tgsi/tgsi_dump.c	2010-01-10 09:40:23.298610151 +0100
-@@ -47,7 +47,7 @@
+--- mesa/src/gallium/auxiliary/tgsi/tgsi_dump.c.org	2010-02-22 22:04:55.733686714 +0100
++++ mesa/src/gallium/auxiliary/tgsi/tgsi_dump.c	2010-02-22 22:05:07.487007669 +0100
+@@ -47,16 +47,16 @@
     
     uint indentation;
  
@@ -9,6 +9,17 @@
  };
  
  static void 
+-dump_ctx_printf(struct dump_ctx *ctx, const char *format, ...)
++dump_ctx_dump_printf(struct dump_ctx *ctx, const char *format, ...)
+ {
+    va_list ap;
+    (void)ctx;
+    va_start(ap, format);
+-   debug_vprintf(format, ap);
++   debug_vdump_printf(format, ap);
+    va_end(ap);
+ }
+ 
 @@ -68,19 +68,19 @@
     uint enum_count )
  {
@@ -39,48 +50,80 @@
  #define ENM(E,ENUMS)    dump_enum( ctx, E, ENUMS, sizeof( ENUMS ) / sizeof( *ENUMS ) )
  
  static const char *processor_type_names[] =
-@@ -278,7 +278,7 @@
+@@ -369,7 +369,7 @@
  {
     struct dump_ctx ctx;
  
 -   ctx.printf = dump_ctx_printf;
-+   ctx.dump_printf = dump_ctx_printf;
++   ctx.dump_printf = dump_ctx_dump_printf;
  
     iter_declaration( &ctx.iter, (struct tgsi_full_declaration *)decl );
  }
-@@ -323,7 +323,7 @@
+@@ -419,7 +419,7 @@
  {
     struct dump_ctx ctx;
  
 -   ctx.printf = dump_ctx_printf;
-+   ctx.dump_printf = dump_ctx_printf;
++   ctx.dump_printf = dump_ctx_dump_printf;
+ 
+    iter_property( &ctx.iter, (struct tgsi_full_property *)prop );
+ }
+@@ -470,7 +470,7 @@
+ {
+    struct dump_ctx ctx;
+ 
+-   ctx.printf = dump_ctx_printf;
++   ctx.dump_printf = dump_ctx_dump_printf;
  
     iter_immediate( &ctx.iter, (struct tgsi_full_immediate *)imm );
  }
-@@ -491,7 +491,7 @@
+@@ -605,7 +605,7 @@
  
     ctx.instno = instno;
     ctx.indent = 0;
 -   ctx.printf = dump_ctx_printf;
-+   ctx.dump_printf = dump_ctx_printf;
++   ctx.dump_printf = dump_ctx_dump_printf;
     ctx.indentation = 0;
  
     iter_instruction( &ctx.iter, (struct tgsi_full_instruction *)inst );
-@@ -525,7 +525,7 @@
+@@ -637,7 +637,7 @@
  
     ctx.instno = 0;
     ctx.indent = 0;
 -   ctx.printf = dump_ctx_printf;
-+   ctx.dump_printf = dump_ctx_printf;
++   ctx.dump_printf = dump_ctx_dump_printf;
     ctx.indentation = 0;
  
     tgsi_iterate_shader( tokens, &ctx.iter );
-@@ -579,7 +579,7 @@
+@@ -652,7 +652,7 @@
+ };
+ 
+ static void
+-str_dump_ctx_printf(struct dump_ctx *ctx, const char *format, ...)
++str_dump_ctx_dump_printf(struct dump_ctx *ctx, const char *format, ...)
+ {
+    struct str_dump_ctx *sctx = (struct str_dump_ctx *)ctx;
+    
+@@ -660,11 +660,11 @@
+       int written;
+       va_list ap;
+       va_start(ap, format);
+-      written = util_vsnprintf(sctx->ptr, sctx->left, format, ap);
++      written = util_vsndump_printf(sctx->ptr, sctx->left, format, ap);
+       va_end(ap);
+ 
+       /* Some complicated logic needed to handle the return value of
+-       * vsnprintf:
++       * vsndump_printf:
+        */
+       if (written > 0) {
+          written = MIN2(sctx->left, written);
+@@ -692,7 +692,7 @@
  
     ctx.base.instno = 0;
     ctx.base.indent = 0;
 -   ctx.base.printf = &str_dump_ctx_printf;
-+   ctx.base.dump_printf = &str_dump_ctx_printf;
++   ctx.base.dump_printf = &str_dump_ctx_dump_printf;
     ctx.base.indentation = 0;
  
     ctx.str = str;

================================================================
Index: packages/Mesa/Mesa.spec
diff -u packages/Mesa/Mesa.spec:1.239 packages/Mesa/Mesa.spec:1.240
--- packages/Mesa/Mesa.spec:1.239	Mon Feb 22 21:20:24 2010
+++ packages/Mesa/Mesa.spec	Mon Feb 22 23:01:39 2010
@@ -15,6 +15,7 @@
 %bcond_without	osmesa	# don't build osmesa
 %bcond_with	static
 #
+%define		snap	20100222
 # minimal supported xserver version
 %define		xserver_ver	1.5.0
 # glapi version (glapi tables in dri drivers and libglx must be in sync);
@@ -28,14 +29,18 @@
 Summary:	Free OpenGL implementation
 Summary(pl.UTF-8):	Wolnodostępna implementacja standardu OpenGL
 Name:		Mesa
-Version:	7.7
-Release:	2%{?with_multigl:.mgl}
+Version:	7.8
+Release:	0.%{snap}.1%{?with_multigl:.mgl}
 License:	MIT (core), SGI (GLU,libGLw) and others - see license.html file
 Group:		X11/Libraries
-Source0:	ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
-# Source0-md5:	e3fa64a1508bc23dd9de9dd2cea7cfb1
-Source1:	ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Demos-%{version}.tar.bz2
-# Source1-md5:	6fd616b27b9826d0faa23e08e05d9435
+# Source0:	ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2
+## Source0-md5:	e3fa64a1508bc23dd9de9dd2cea7cfb1
+#Source1:	ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Demos-%{version}.tar.bz2
+## Source1-md5:	6fd616b27b9826d0faa23e08e05d9435
+# git clone git://anongit.freedesktop.org/git/mesa/mesa
+# cd mesa && git archive master --prefix Mesa/ | bzip2 > ../Mesa-$(date +%Y%m%d).tar.bz2
+Source0:	%{name}-%{snap}.tar.bz2
+# Source0-md5:	7c97eb9576bf93a26fa7eca286df7926
 Patch0:		%{name}-realclean.patch
 Patch1:		%{name}-tgsi_dump.patch
 URL:		http://www.mesa3d.org/
@@ -627,7 +632,8 @@
 Sterownik X.org DRI dla VMware.
 
 %prep
-%setup -q -b1
+%setup -q -n %{name}
+# -b1
 %patch0 -p0
 %patch1 -p1
 
@@ -635,8 +641,9 @@
 find progs -type f|xargs sed -i -e "s,\.\./images/,%{_examplesdir}/%{name}-%{version}/images/,g"
 
 %build
-%{__aclocal}
-%{__autoconf}
+autoreconf --install  
+#%{__aclocal}
+#%{__autoconf}
 
 dri_drivers="i810 i965 mach64 mga r128 r200 r300 r600 radeon savage \
 %if %{without gallium_intel}
@@ -657,49 +664,44 @@
 	--enable-selinux \
 	--enable-pic \
 	--enable-glx-tls \
+	--disable-glut \
+	--disable-os-mesa \
 	--%{?with_egl:en}%{!?with_egl:dis}able-egl \
 	--with%{!?with_demos:out}-demos"
 
-%if %{with osmesa}
-# osmesa variants
-%configure $common_flags \
+osmesa_common_flags="\
 	--with-driver=osmesa \
 	--disable-asm \
+	--disable-glu"
+
+%if %{with osmesa}
+# osmesa variants
+%configure $common_flags $osmesa_common_flags \
 	--with-osmesa-bits=8
-%{__make} \
-	SRC_DIRS=mesa
+%{__make}
 mv %{_lib} osmesa8
 %{__make} clean
 
-%configure $common_flags \
-	--with-driver=osmesa \
-	--disable-asm \
+%configure $common_flags $osmesa_common_flags \
 	--with-osmesa-bits=16
-%{__make} \
-	SRC_DIRS=mesa
+%{__make}
 mv %{_lib} osmesa16
 %{__make} clean
 
-%configure $common_flags \
-	--with-driver=osmesa \
-	--disable-asm \
+%configure $common_flags $osmesa_common_flags \
 	--with-osmesa-bits=32
-%{__make} \
-	SRC_DIRS=mesa
+%{__make}
 mv %{_lib} osmesa32
 %{__make} clean
 %endif
 
 %configure $common_flags \
-	--enable-glu \
-	--enable-glw \
-	--disable-glut \
 %if %{with gallium}
 	--enable-gallium \
 	--%{?with_gallium_intel:en}%{!?with_gallium_intel:dis}able-gallium-intel \
 	--enable-gallium-svga \
 	--enable-gallium-nouveau \
-	--with-state-trackers=dri \
+	--with-state-trackers=dri,xorg,glx \
 %else
 	--disable-gallium \
 %endif
@@ -723,6 +725,7 @@
 	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with osmesa}
+rm -f osmesa*/libGLEW.*
 install osmesa*/* $RPM_BUILD_ROOT%{_libdir}
 %endif
 
@@ -970,6 +973,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.240  2010/02/22 22:01:39  arekm
+- up to 7.8 snapshot
+
 Revision 1.239  2010/02/22 20:20:24  arekm
 - rel 2; rebuild with latest libdrm (nouveau abi changes)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Mesa/Mesa-tgsi_dump.patch?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Mesa/Mesa.spec?r1=1.239&r2=1.240&f=u



More information about the pld-cvs-commit mailing list