File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
136143fetch_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+
167182fetch_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
300317 " luajit" )
301318 fetch_luajit
302319 ;;
320+ " mesa" )
321+ fetch_mesa
322+ ;;
303323 " moltenvk" )
304324 fetch_moltenvk
305325 ;;
312332 " shaderc" )
313333 fetch_shaderc
314334 ;;
335+ " spirv-tools" )
336+ fetch_spirv-tools
337+ ;;
315338 " svt-av1" )
316339 fetch_svt-av1
317340 ;;
You can’t perform that action at this time.
0 commit comments