diff options
Diffstat (limited to 'recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch')
-rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch new file mode 100644 index 00000000..c8f1ae73 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From cc05c01925755310f027c61daa29648a10155f96 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rohan Garg <rohan@garg.io> | ||
3 | Date: Thu, 13 Dec 2018 19:15:01 +0100 | ||
4 | Subject: [PATCH] glamor/glamor_egl.c: EGL_NATIVE_PIXMAP_KHR do not require | ||
5 | contexts | ||
6 | |||
7 | From https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt | ||
8 | |||
9 | * If <target> is EGL_NATIVE_PIXMAP_KHR, and <ctx> is not EGL_NO_CONTEXT, | ||
10 | the error EGL_BAD_PARAMETER is generated. | ||
11 | |||
12 | Fixes: a5321ea4 ("Allow to create textured pixmaps from gbm_bo without using gem names") | ||
13 | --- | ||
14 | glamor/glamor_egl.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | Upstream-Status: Backport [cc05c01925755310f027c61daa29648a10155f96] | ||
18 | |||
19 | diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c | ||
20 | index 0f4edb5a3..69844d4e2 100644 | ||
21 | --- a/glamor/glamor_egl.c | ||
22 | +++ b/glamor/glamor_egl.c | ||
23 | @@ -233,7 +233,7 @@ glamor_egl_create_textured_pixmap_from_gbm_bo(PixmapPtr pixmap, | ||
24 | glamor_make_current(glamor_priv); | ||
25 | |||
26 | image = eglCreateImageKHR(glamor_egl->display, | ||
27 | - glamor_egl->context, | ||
28 | + EGL_NO_CONTEXT, | ||
29 | EGL_NATIVE_PIXMAP_KHR, bo, NULL); | ||
30 | if (image == EGL_NO_IMAGE_KHR) { | ||
31 | glamor_set_pixmap_type(pixmap, GLAMOR_DRM_ONLY); | ||
32 | -- | ||
33 | 2.17.1 | ||
34 | |||