@@ -2,7 +2,7 @@ inherit: [meson, wayland-scanner]
22
33metaEnvironment :
44 PKG_DESCRIPTION : " Mesa OpenGL library"
5- PKG_VERSION : " 25.0.5 "
5+ PKG_VERSION : " 25.3.1 "
66 PKG_LICENSE : " MIT, SGI, Khronos"
77
88Config :
@@ -50,7 +50,7 @@ depends:
5050checkoutSCM :
5151 scm : url
5252 url : https://archive.mesa3d.org/mesa-${PKG_VERSION}.tar.xz
53- digestSHA1 : d6427cb320fcbd8bbe223ad69b16619391812fee
53+ digestSHA256 : 059d0d985622f49588f01aa29152804f4da8ffe6add046e00a52923379c2d8da
5454 stripComponents : 1
5555
5656buildTools : [bison, flex, m4]
@@ -77,18 +77,13 @@ multiPackage:
7777
7878 buildScript : |
7979 mesonBuild $1 \
80- -Dintel-clc=enabled \
81- -Dinstall-intel-clc=True \
8280 -Dmesa-clc=enabled \
8381 -Dinstall-mesa-clc=True \
84- -Dgallium-xa=disabled \
8582 -Dglvnd=disabled \
86- -Dgallium-opencl=disabled \
8783 -Dgallium-drivers="" \
8884 -Dvulkan-drivers="" \
8985 -Dplatforms="" \
9086 -Dvalgrind=disabled \
91- -Dosmesa=false \
9287 -Dshared-llvm=disabled \
9388
9489 multiPackage :
@@ -155,14 +150,14 @@ multiPackage:
155150 - libs::xorg::libXxf86vm-tgt
156151 - virtual::core::udev-tgt
157152
158- - if : " $(match,$MESA3D_GALLIUM_DRIVERS,llvmpipe)"
153+ - if : " $(match,$MESA3D_GALLIUM_DRIVERS,[ llvmpipe|iris] )"
159154 depends :
160155 - devel::llvm-libs-dev
161156 - use : []
162157 depends :
163158 - devel::llvm-libs-tgt
164159
165- - if : " $(match,$MESA3D_GALLIUM_DRIVERS,iris)"
160+ - if : " $(match,$MESA3D_GALLIUM_DRIVERS,[llvmpipe| iris] )"
166161 tools :
167162 target-toolchain : host-compat-toolchain
168163 depends :
@@ -177,16 +172,23 @@ multiPackage:
177172 cross_file.txt
178173 fi
179174 buildTools :
180- - if : " $(match,$MESA3D_GALLIUM_DRIVERS,iris)"
175+ - if : " $(match,$MESA3D_GALLIUM_DRIVERS,[llvmpipe| iris] )"
181176 name : mesa_clc
182177 buildVars : [MESA3D_GALLIUM_DRIVERS, MESA3D_GLX, MESA3D_PLATFORM,
183178 MESA3D_GLX_READ_ONLY_TEXT]
184179 buildScript : |
180+ CLC_DRIVERS=("llvmpipe" "iris")
181+ ENABLE_LLV=false
182+ IFS=',' read -ra ENABLED_DRIVERS <<< "$MESA3D_GALLIUM_DRIVERS"
183+ for i in "${ENABLED_DRIVERS[@]}"; do
184+ if [[ " ${CLC_DRIVERS[*]} " == *" $i "* ]]; then
185+ ENABLE_LLV=true
186+ fi
187+ done
188+
185189 mesonBuild $1 \
186190 -Dglx=$([[ $MESA3D_PLATFORM == x11 ]] && echo ${MESA3D_GLX} || echo disabled) \
187- -Dgallium-xa=disabled \
188191 -Dglvnd=disabled \
189- -Dgallium-opencl=disabled \
190192 -Dgallium-drivers="$MESA3D_GALLIUM_DRIVERS" \
191193 -Dvulkan-drivers="" \
192194 -Dplatforms=${MESA3D_PLATFORM} \
@@ -197,10 +199,8 @@ multiPackage:
197199 -Dgles2=enabled \
198200 -Dglx-read-only-text=$([[ $MESA3D_GLX_READ_ONLY_TEXT -ne 0 ]] && echo true || echo false) \
199201 -Dvalgrind=disabled \
200- -Dllvm=$([[ "$MESA3D_GALLIUM_DRIVERS" =~ "llvmpipe" ]] && echo 'enabled' || echo 'disabled') \
201- -Dintel-clc=system \
202+ -Dllvm=$($ENABLE_LLV && echo 'enabled' || echo 'disabled') \
202203 ${BOB_TOOL_PATHS[mesa_clc]+-Dmesa-clc=system} \
203- -Dosmesa=false
204204
205205 multiPackage :
206206 dev :
0 commit comments