Skip to content

Commit 402f6d3

Browse files
committed
fetch: add mesa & spirv-tools
1 parent 0aa7000 commit 402f6d3

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

fetch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ fetch_luajit() {
133133
git -C src clone --depth 1 "${url}"
134134
}
135135

136+
fetch_mesa() {
137+
local url="https://gitlab.freedesktop.org/mesa/mesa.git"
138+
rm -rf src/mesa
139+
git -C src clone --depth 1 "${url}"
140+
pip3 install --no-cache-dir -U -t .python -r .python/requirements.txt
141+
}
142+
136143
fetch_moltenvk() {
137144
local url="https://github.com/KhronosGroup/MoltenVK.git"
138145
rm -rf src/MoltenVK
@@ -164,6 +171,14 @@ fetch_shaderc() {
164171
git -C src clone --depth 1 "${url}"
165172
}
166173

174+
fetch_spirv-tools() {
175+
local toolsurl="https://github.com/KhronosGroup/SPIRV-Tools.git"
176+
local headersurl="https://github.com/KhronosGroup/SPIRV-Headers.git"
177+
rm -rf src/SPIRV-Tools
178+
git -C src clone --depth 1 "${toolsurl}"
179+
git -C src clone --depth 1 "${headersurl}" SPIRV-Tools/external/spirv-headers
180+
}
181+
167182
fetch_svt-av1() {
168183
local url="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
169184
rm -rf src/SVT-AV1
@@ -227,10 +242,12 @@ if [[ "$*" == "all" ]]; then
227242
fetch_libvpx
228243
fetch_libwebp
229244
fetch_luajit
245+
fetch_mesa
230246
fetch_moltenvk
231247
fetch_mpv
232248
fetch_opus
233249
fetch_shaderc
250+
fetch_spirv-tools
234251
fetch_svt-av1
235252
fetch_uchardet
236253
fetch_vulkan
@@ -300,6 +317,9 @@ else
300317
"luajit")
301318
fetch_luajit
302319
;;
320+
"mesa")
321+
fetch_mesa
322+
;;
303323
"moltenvk")
304324
fetch_moltenvk
305325
;;
@@ -312,6 +332,9 @@ else
312332
"shaderc")
313333
fetch_shaderc
314334
;;
335+
"spirv-tools")
336+
fetch_spirv-tools
337+
;;
315338
"svt-av1")
316339
fetch_svt-av1
317340
;;

0 commit comments

Comments
 (0)