diff options
author | Ross Burton <ross.burton@intel.com> | 2012-12-21 11:38:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-10 23:43:16 +0000 |
commit | 0120167750078b7b0ed1c8454c04b57b90e73e98 (patch) | |
tree | b587e4c5978f4c53e79a930b7bc0b5b16253c4d0 /meta/recipes-graphics/directfb/directfb | |
parent | 909b3bee33eb50d567ed610caca6a4bad7446eb7 (diff) | |
download | poky-0120167750078b7b0ed1c8454c04b57b90e73e98.tar.gz |
directfb: fix build against Mesa 9
Mesa 9 changed the libgbm API, so take a patch from upstream to fix this.
(From OE-Core rev: ab6f8ea9ddc69433c3e84058d8ea5502cbab35c3)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/directfb/directfb')
-rw-r--r-- | meta/recipes-graphics/directfb/directfb/mesa9.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-graphics/directfb/directfb/mesa9.patch b/meta/recipes-graphics/directfb/directfb/mesa9.patch new file mode 100644 index 0000000000..43fd5c2040 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb/mesa9.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Patch from upstream to fix build against Mesa 9. | ||
2 | |||
3 | Upstream-Status: Backport | ||
4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
5 | |||
6 | From 54beba0715a4fead2a0aa5477977347f81fc2bc0 Mon Sep 17 00:00:00 2001 | ||
7 | From: Andreas Shimokawa <andi@directfb.org> | ||
8 | Date: Wed, 24 Oct 2012 18:01:15 +0200 | ||
9 | Subject: [PATCH] mesa: fix compatibility with mesa 9.0 | ||
10 | |||
11 | --- | ||
12 | systems/mesa/mesa_surface_pool.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/systems/mesa/mesa_surface_pool.c b/systems/mesa/mesa_surface_pool.c | ||
16 | index 0a588bb..bfb5ff3 100644 | ||
17 | --- a/systems/mesa/mesa_surface_pool.c | ||
18 | +++ b/systems/mesa/mesa_surface_pool.c | ||
19 | @@ -297,7 +297,7 @@ mesaAllocateBuffer( CoreSurfacePool *pool, | ||
20 | alloc->bo = gbm_bo_create( mesa->gbm, surface->config.size.w, surface->config.size.h, GBM_BO_FORMAT_ARGB8888, | ||
21 | GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING ); | ||
22 | alloc->handle = gbm_bo_get_handle( alloc->bo ).u32; | ||
23 | - alloc->pitch = gbm_bo_get_pitch( alloc->bo ); | ||
24 | + alloc->pitch = gbm_bo_get_stride( alloc->bo ); | ||
25 | |||
26 | alloc->image = eglCreateImageKHR( mesa->dpy, NULL, EGL_NATIVE_PIXMAP_KHR, alloc->bo, NULL ); | ||
27 | |||
28 | -- | ||
29 | 1.7.9.5 | ||