diff mbox series

mesa: make asahi dependent on opencl

Message ID 20250523085103.654849-1-f_l_k@t-online.de
State New
Headers show
Series mesa: make asahi dependent on opencl | expand

Commit Message

Markus Volk May 23, 2025, 8:51 a.m. UTC
asahi not only depends on libclc but also requires rusticl

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Koen Kooi May 23, 2025, 9:39 a.m. UTC | #1
> Op 23 mei 2025, om 10:51 heeft Markus Volk <f_l_k@t-online.de> het volgende geschreven:
> 
> [...]
> # radeonsi requires LLVM
> -GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc', ',asahi', '', d)}"
> +GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc opencl', ',asahi', '', d)}"
> GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}"
> GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeonsi', '', d)}"
> GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"

Very pedantic nit-pick: the comment for these 4 lines only talks about radeon-si, I think we should either remove that comment or properly mention asahi, iris and radeonsi and their dependencies.

regards,

Koen
Markus Volk May 23, 2025, 10:11 a.m. UTC | #2
Like this?

# 'iris' and 'radeonsi' require LLVM, 'asahi' needs LLVM and 
additionally requires opencl (rust)

Personally I would vote for removal, because that seems 
self-explanatory enough to me. There is
no corresponding comment for vulkandrivers and the comment would also 
be outdated quite soon,
because mesa main branch has added a (by default) rusticl dependency to 
radeonsi as well

On Fri, May 23 2025 at 11:39:30 +02:00:00, Koen Kooi 
<koen.kooi@oss.qualcomm.com> wrote:
> 
> 
>>  Op 23 mei 2025, om 10:51 heeft Markus Volk <f_l_k@t-online.de 
>> <mailto:f_l_k@t-online.de>> het volgende geschreven:
>> 
>>  [...]
>>  # radeonsi requires LLVM
>>  -GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains 
>> <mailto:${@bb.utils.contains>('PACKAGECONFIG', 'asahi libclc', 
>> ',asahi', '', d)}"
>>  +GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains 
>> <mailto:${@bb.utils.contains>('PACKAGECONFIG', 'asahi libclc 
>> opencl', ',asahi', '', d)}"
>>  GALLIUMDRIVERS_IRIS = "${@bb.utils.contains 
>> <mailto:${@bb.utils.contains>('PACKAGECONFIG', 'intel libclc', 
>> ',iris', '', d)}"
>>  GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains 
>> <mailto:${@bb.utils.contains>('PACKAGECONFIG', 'amd', ',radeonsi', 
>> '', d)}"
>>  GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
> 
> Very pedantic nit-pick: the comment for these 4 lines only talks 
> about radeon-si, I think we should either remove that comment or 
> properly mention asahi, iris and radeonsi and their dependencies.
> 
> regards,
> 
> Koen
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 5262b3001e..0caf5d0a18 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -102,7 +102,7 @@  PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
 VULKAN_DRIVERS_AMD = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',amd', '', d)}"
-VULKAN_DRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc', ',asahi', '', d)}"
+VULKAN_DRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc opencl', ',asahi', '', d)}"
 VULKAN_DRIVERS_INTEL = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel', '', d)}"
 VULKAN_DRIVERS_SWRAST = ",swrast"
 # Crashes on x32
@@ -170,7 +170,7 @@  GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', ''
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}"
 
 # radeonsi requires LLVM
-GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc', ',asahi', '', d)}"
+GALLIUMDRIVERS_ASAHI = "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc opencl', ',asahi', '', d)}"
 GALLIUMDRIVERS_IRIS = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',iris', '', d)}"
 GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeonsi', '', d)}"
 GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"