Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/glamor/files: glamor-0.6.0-glamor_egl_create_argb8888.patch
Date: Sun, 30 Mar 2014 19:05:53
Message-Id: 20140330190543.8767B20057@flycatcher.gentoo.org
1 chithanh 14/03/30 19:05:43
2
3 Added: glamor-0.6.0-glamor_egl_create_argb8888.patch
4 Log:
5 Fix X server crash, bug #505574.
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.1 x11-libs/glamor/files/glamor-0.6.0-glamor_egl_create_argb8888.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/glamor/files/glamor-0.6.0-glamor_egl_create_argb8888.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/glamor/files/glamor-0.6.0-glamor_egl_create_argb8888.patch?rev=1.1&content-type=text/plain
14
15 Index: glamor-0.6.0-glamor_egl_create_argb8888.patch
16 ===================================================================
17 From cccfea4454949e3e376be42bb230603848997195 Mon Sep 17 00:00:00 2001
18 From: Axel Davy <axel.davy@×××.fr>
19 Date: Tue, 04 Mar 2014 09:38:55 +0000
20 Subject: Fix a missing MakeCurrent in glamor_egl_create_argb8888_based_texture
21
22 There is a missing MakeCurrent before creating the texture
23 and link it to the EGLImage.
24
25 This fixes an X server crash with the piglit test
26 glx-make-current-multi-process on radeonsi from current Mesa Git.
27
28 Signed-off-by: Axel Davy <axel.davy@×××.fr>
29 Tested-by: Michel Dänzer <michel.daenzer@×××.com>
30 Signed-off-by: Alex Deucher <alexander.deucher@×××.com>
31 ---
32 diff --git a/src/glamor_egl.c b/src/glamor_egl.c
33 index ff4c0bd..ffa95a7 100644
34 --- a/src/glamor_egl.c
35 +++ b/src/glamor_egl.c
36 @@ -252,7 +252,9 @@ glamor_egl_create_argb8888_based_texture(ScreenPtr screen,
37 gbm_bo_destroy(bo);
38 if (image == EGL_NO_IMAGE_KHR)
39 return 0;
40 + glamor_egl_make_current(screen);
41 glamor_create_texture_from_image(glamor_egl, image, &texture);
42 + glamor_egl_restore_context(screen);
43 glamor_egl->egl_destroy_image_khr(glamor_egl->display, image);
44
45 return texture;
46 --
47 cgit v0.9.0.2-2-gbebe