summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/files')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch36
-rw-r--r--meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch51
2 files changed, 0 insertions, 87 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch b/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
deleted file mode 100644
index 9ee72880a2..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From cf17d6251653f4a98e7c4f904ea2f0bc0ecedd5c Mon Sep 17 00:00:00 2001
2From: Duncan Hopkins <duncan@duncanhopkins.me.uk>
3Date: Thu, 15 Oct 2020 12:14:57 +0100
4Subject: [PATCH] meson: Add xcb-fixes to loader when using x11 and dri3. Fixes
5 undefined symbol for xcb_xfixes_create_region in loader_dri3_helper.c
6
7loader_dr3_helper.c uses xcb_xfixes_create_region() that requires dep_xcb_xfixes to link. This is dependent on with_platform_x11 and with_dri3.
8But the source meson file does not set this up dependent on with_dri3.
9The build was initialsed using platforms=x11 and gallium-drivers=zink,swrast.
10
11Reviewed-by: Eric Anholt <eric@anholt.net>
12Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7164>
13
14Upstream-Status: Backport [cf17d6251653f4a98e7c4f904ea2f0bc0ecedd5c]
15
16---
17 meson.build | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
19
20diff --git a/meson.build b/meson.build
21index cfe02fa6373..3cb3c904927 100644
22--- a/meson.build
23+++ b/meson.build
24@@ -1782,7 +1782,8 @@ if with_platform_x11
25 dep_xxf86vm = dependency('xxf86vm')
26 endif
27 endif
28- if (with_egl or (
29+ if (with_egl or
30+ with_dri3 or (
31 with_gallium_vdpau or with_gallium_xvmc or with_gallium_xa or
32 with_gallium_omx != 'disabled'))
33 dep_xcb_xfixes = dependency('xcb-xfixes')
34--
352.17.1
36
diff --git a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch b/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
deleted file mode 100644
index dacb1ea1c8..0000000000
--- a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 281a636353666bfdd373c62591e744087e750e89 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 4 Dec 2019 14:15:28 -0800
4Subject: [PATCH] vc4: use intmax_t for formatted output of timespec members
5
632bit architectures which have 64bit time_t does not fit the assumption
7of time_t being same as system long int
8
9Fixes
10error: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat]
11 time.tv_sec);
12 ^~~~~~~~~~~
13
14Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2966]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16
17---
18 src/gallium/drivers/v3d/v3d_bufmgr.c | 4 ++--
19 src/gallium/drivers/vc4/vc4_bufmgr.c | 4 ++--
20 2 files changed, 4 insertions(+), 4 deletions(-)
21
22diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
23index 31a0803..cc2e2af 100644
24--- a/src/gallium/drivers/v3d/v3d_bufmgr.c
25+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
26@@ -80,8 +80,8 @@ v3d_bo_dump_stats(struct v3d_screen *screen)
27
28 struct timespec time;
29 clock_gettime(CLOCK_MONOTONIC, &time);
30- fprintf(stderr, " now: %ld\n",
31- (long)time.tv_sec);
32+ fprintf(stderr, " now: %jd\n",
33+ (intmax_t)time.tv_sec);
34 }
35 }
36
37diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c
38index a786e8e..975d49e 100644
39--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
40+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
41@@ -99,8 +99,8 @@ vc4_bo_dump_stats(struct vc4_screen *screen)
42
43 struct timespec time;
44 clock_gettime(CLOCK_MONOTONIC, &time);
45- fprintf(stderr, " now: %ld\n",
46- (long)time.tv_sec);
47+ fprintf(stderr, " now: %jd\n",
48+ (intmax_t)time.tv_sec);
49 }
50 }
51