mesa-8.0-llvmpipe-shmget.patch: Rediff for 8.1.

This commit is contained in:
Adam Jackson 2012-05-17 13:47:33 -04:00
parent b4ef8dc9c0
commit 9ea8fa3222
2 changed files with 18 additions and 15 deletions

View file

@ -1,21 +1,21 @@
diff -up Mesa-8.0.1/src/gallium/state_trackers/dri/sw/drisw.c.shmget Mesa-8.0.1/src/gallium/state_trackers/dri/sw/drisw.c diff -up mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c.jx mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c
--- Mesa-8.0.1/src/gallium/state_trackers/dri/sw/drisw.c.shmget 2012-02-14 18:44:00.000000000 -0500 --- mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c.jx 2012-04-24 07:37:03.000000000 -0400
+++ Mesa-8.0.1/src/gallium/state_trackers/dri/sw/drisw.c 2012-03-15 06:35:44.989221196 -0400 +++ mesa-20120424/src/gallium/state_trackers/dri/sw/drisw.c 2012-05-16 13:30:36.596312047 -0400
@@ -252,7 +252,6 @@ drisw_update_tex_buffer(struct dri_drawa @@ -252,8 +252,6 @@ drisw_update_tex_buffer(struct dri_drawa
struct pipe_transfer *transfer; struct pipe_transfer *transfer;
char *map; char *map;
int x, y, w, h; int x, y, w, h;
- int ximage_stride, line; - int ximage_stride, line;
- int cpp = util_format_get_blocksize(res->format);
get_drawable_info(dPriv, &x, &y, &w, &h); get_drawable_info(dPriv, &x, &y, &w, &h);
@@ -265,15 +264,6 @@ drisw_update_tex_buffer(struct dri_drawa @@ -266,14 +264,6 @@ drisw_update_tex_buffer(struct dri_drawa
/* Copy the Drawable content to the mapped texture buffer */ /* Copy the Drawable content to the mapped texture buffer */
get_image(dPriv, x, y, w, h, map); get_image(dPriv, x, y, w, h, map);
- /* The pipe transfer has a pitch rounded up to the nearest 64 pixels. - /* The pipe transfer has a pitch rounded up to the nearest 64 pixels. */
- We assume 32 bit pixels. */ - ximage_stride = w * cpp;
- ximage_stride = w * 4;
- for (line = h-1; line; --line) { - for (line = h-1; line; --line) {
- memmove(&map[line * transfer->stride], - memmove(&map[line * transfer->stride],
- &map[line * ximage_stride], - &map[line * ximage_stride],
@ -25,9 +25,9 @@ diff -up Mesa-8.0.1/src/gallium/state_trackers/dri/sw/drisw.c.shmget Mesa-8.0.1/
pipe_transfer_unmap(pipe, transfer); pipe_transfer_unmap(pipe, transfer);
pipe_transfer_destroy(pipe, transfer); pipe_transfer_destroy(pipe, transfer);
} }
diff -up Mesa-8.0.1/src/glx/drisw_glx.c.shmget Mesa-8.0.1/src/glx/drisw_glx.c diff -up mesa-20120424/src/glx/drisw_glx.c.jx mesa-20120424/src/glx/drisw_glx.c
--- Mesa-8.0.1/src/glx/drisw_glx.c.shmget 2012-02-14 18:44:00.000000000 -0500 --- mesa-20120424/src/glx/drisw_glx.c.jx 2012-04-24 07:37:03.000000000 -0400
+++ Mesa-8.0.1/src/glx/drisw_glx.c 2012-03-14 11:25:04.708341441 -0400 +++ mesa-20120424/src/glx/drisw_glx.c 2012-05-16 13:29:25.087965268 -0400
@@ -24,6 +24,9 @@ @@ -24,6 +24,9 @@
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
@ -38,7 +38,7 @@ diff -up Mesa-8.0.1/src/glx/drisw_glx.c.shmget Mesa-8.0.1/src/glx/drisw_glx.c
#include "glxclient.h" #include "glxclient.h"
#include <dlfcn.h> #include <dlfcn.h>
#include "dri_common.h" #include "dri_common.h"
@@ -203,6 +206,96 @@ swrastPutImage(__DRIdrawable * draw, int @@ -206,6 +209,96 @@ swrastPutImage(__DRIdrawable * draw, int
ximage->data = NULL; ximage->data = NULL;
} }
@ -135,7 +135,7 @@ diff -up Mesa-8.0.1/src/glx/drisw_glx.c.shmget Mesa-8.0.1/src/glx/drisw_glx.c
static void static void
swrastGetImage(__DRIdrawable * read, swrastGetImage(__DRIdrawable * read,
int x, int y, int w, int h, int x, int y, int w, int h,
@@ -217,11 +310,17 @@ swrastGetImage(__DRIdrawable * read, @@ -220,11 +313,17 @@ swrastGetImage(__DRIdrawable * read,
readable = pread->xDrawable; readable = pread->xDrawable;
ximage = prp->ximage; ximage = prp->ximage;

View file

@ -36,7 +36,7 @@
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
Name: mesa Name: mesa
Version: 8.1 Version: 8.1
Release: 0.4%{?dist} Release: 0.5%{?dist}
License: MIT License: MIT
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
@ -289,7 +289,7 @@ Mesa shared glapi
#% setup -q -n Mesa-%{version}%{?snapshot} -b2 #% setup -q -n Mesa-%{version}%{?snapshot} -b2
%setup -q -n mesa-%{gitdate} -b2 %setup -q -n mesa-%{gitdate} -b2
#patch7 -p1 -b .dricore #patch7 -p1 -b .dricore
#%patch9 -p1 -b .shmget %patch9 -p1 -b .shmget
%patch11 -p1 -b .nouveau %patch11 -p1 -b .nouveau
%patch12 -p1 -b .16bpp %patch12 -p1 -b .16bpp
@ -572,6 +572,9 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Thu May 17 2012 Adam Jackson <ajax@redhat.com> 8.1-0.5
- mesa-8.0-llvmpipe-shmget.patch: Rediff for 8.1.
* Thu May 10 2012 Karsten Hopp <karsten@redhat.com> 8.1-0.4 * Thu May 10 2012 Karsten Hopp <karsten@redhat.com> 8.1-0.4
- revert disabling of hardware drivers, disable only llvm on PPC* - revert disabling of hardware drivers, disable only llvm on PPC*
(#819060) (#819060)