/[gentoo-x86]/x11-libs/cairo/files/cairo-1.12.10-xshm-corruption.patch
Gentoo

Contents of /x11-libs/cairo/files/cairo-1.12.10-xshm-corruption.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 31 13:35:51 2013 UTC (17 months, 4 weeks ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Add patch to fix graphics corruption, bug #454468.

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 From c006b886d28a772d7a62cec52ab7e0c8196c36f6 Mon Sep 17 00:00:00 2001
2 From: Chris Wilson <chris@chris-wilson.co.uk>
3 Date: Tue, 29 Jan 2013 03:01:31 +0000
4 Subject: xlib/shm: Force synchronisation for scratch SHM image buffers
5
6 The scratch image buffers are used for uploads to the xserver and so we
7 must be careful not to overwrite active SHM segments. Unfortunately we
8 told the core SHM allocator that we would sync before using the images,
9 which was a lie.
10
11 Reported-by: Michael Natterer <mitch@gimp.org>
12 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 ---
14 diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
15 index 43cecdf..32c7033 100644
16 --- a/src/cairo-xlib-surface-shm.c
17 +++ b/src/cairo-xlib-surface-shm.c
18 @@ -1155,7 +1155,7 @@ _cairo_xlib_surface_create_shm__image (cairo_xlib_surface_t *surface,
19 return NULL;
20
21 return &_cairo_xlib_shm_surface_create (surface, format, width, height,
22 - TRUE, 0)->image.base;
23 + FALSE, 0)->image.base;
24 }
25
26 cairo_surface_t *
27 --
28 cgit v0.9.0.2-2-gbebe

  ViewVC Help
Powered by ViewVC 1.1.20