diff options
author | Markus Volk <f_l_k@t-online.de> | 2024-03-08 13:12:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-18 12:21:45 +0000 |
commit | 04d74605299e58acfe6c93eb6657ce476b3396eb (patch) | |
tree | ab43d39c01bd0d447121da24384951881287d90b /meta/recipes-graphics | |
parent | 3dc62ba4a8ba89054f15de564ee4f9ce5935bdc8 (diff) | |
download | poky-04d74605299e58acfe6c93eb6657ce476b3396eb.tar.gz |
mesa: fix opencl-spirv build
https://gitlab.freedesktop.org/mesa/mesa/-/commit/815a6647eb1383e9dc704ffcc266d85f3b13338a
adds a regression and breaks opencl-spirv build.
The next step in mesa will probably be to completely remove nir in favour of rusticl.
https://gitlab.freedesktop.org/mesa/mesa/-/issues/10674
Revert this commit to avoid that the lts version cannot use spirv
because rusticl is not yet and opencl-spirv is no longer supported.
(From OE-Core rev: 4335436d6dcd6059be784b812f1b1ce4090770a9)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-Revert-meson-do-not-pull-in-clc-for-clover.patch | 56 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 1 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-Revert-meson-do-not-pull-in-clc-for-clover.patch b/meta/recipes-graphics/mesa/files/0001-Revert-meson-do-not-pull-in-clc-for-clover.patch new file mode 100644 index 0000000000..f6d95c8982 --- /dev/null +++ b/meta/recipes-graphics/mesa/files/0001-Revert-meson-do-not-pull-in-clc-for-clover.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From fe4600de549549fbb3033fc1b37904ba6b3fe2af Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Fri, 8 Mar 2024 15:53:11 +0100 | ||
4 | Subject: [PATCH] Revert "meson: do not pull in clc for clover" | ||
5 | |||
6 | This reverts commit 815a6647eb1383e9dc704ffcc266d85f3b13338a. | ||
7 | Upstream-Status: Inappropriate [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27783/diffs?commit_id=a976f2c9f0c07f9e06cc9affd9124b45bc60c2bd] | ||
8 | |||
9 | Once the merge request above was added, it will only be possible to provide opencl spir-v with gallium-rusticl=true. This is not yet supported in the mesa recipe. | ||
10 | For now reverting this commit allows to still use clover with opencl-spirv, which would otherwise be broken starting from mesa 24.0.2. | ||
11 | |||
12 | After it was merged, this patch needs to be removed and rusticl support will be required | ||
13 | |||
14 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
15 | --- | ||
16 | meson.build | 3 ++- | ||
17 | src/compiler/meson.build | 2 +- | ||
18 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/meson.build b/meson.build | ||
21 | index 25e92ea5f95..3956e19c08f 100644 | ||
22 | --- a/meson.build | ||
23 | +++ b/meson.build | ||
24 | @@ -818,6 +818,7 @@ if _opencl != 'disabled' | ||
25 | error('The Clover OpenCL state tracker requires rtti') | ||
26 | endif | ||
27 | |||
28 | + with_clc = true | ||
29 | with_gallium_opencl = true | ||
30 | with_opencl_icd = _opencl == 'icd' | ||
31 | else | ||
32 | @@ -842,7 +843,7 @@ if with_gallium_rusticl | ||
33 | endif | ||
34 | |||
35 | dep_clc = null_dep | ||
36 | -if with_gallium_opencl or with_clc | ||
37 | +if with_clc | ||
38 | dep_clc = dependency('libclc') | ||
39 | endif | ||
40 | |||
41 | diff --git a/src/compiler/meson.build b/src/compiler/meson.build | ||
42 | index 8d73544c6d8..1dae56d1b2b 100644 | ||
43 | --- a/src/compiler/meson.build | ||
44 | +++ b/src/compiler/meson.build | ||
45 | @@ -79,7 +79,7 @@ subdir('nir') | ||
46 | |||
47 | subdir('spirv') | ||
48 | |||
49 | -if with_clc | ||
50 | +if with_opencl_spirv | ||
51 | subdir('clc') | ||
52 | endif | ||
53 | if with_gallium | ||
54 | -- | ||
55 | 2.44.0 | ||
56 | |||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 12d7a18eb8..f5a6392d28 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -20,6 +20,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | |||
20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ | 20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ |
21 | file://0001-drisw-fix-build-without-dri3.patch \ | 21 | file://0001-drisw-fix-build-without-dri3.patch \ |
22 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ | 22 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ |
23 | file://0001-Revert-meson-do-not-pull-in-clc-for-clover.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRC_URI[sha256sum] = "94e28a8edad06d8ed2b83eb53f253b9eb5aa62c3080f939702e1b3039b56c9e8" | 26 | SRC_URI[sha256sum] = "94e28a8edad06d8ed2b83eb53f253b9eb5aa62c3080f939702e1b3039b56c9e8" |