Skip to content

Commit 92df2db

Browse files
committed
mesa 22.0.3
1 parent 4bedf2f commit 92df2db

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

build.cmd

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@echo off
22
setlocal enabledelayedexpansion
33

4-
set LLVM_VERSION=14.0.0
5-
set MESA_VERSION=22.0.1
4+
set LLVM_VERSION=14.0.3
5+
set MESA_VERSION=22.0.3
66

77
set PATH=%CD%\llvm\bin;%CD%\winflexbison;%PATH%
88

@@ -180,23 +180,6 @@ meson setup ^
180180
-Dgallium-drivers=d3d12 || exit /b 1
181181
ninja -C mesa.build install || exit /b 1
182182

183-
rem *** mesa d3d12egl ***
184-
185-
rd /s /q mesa.build 1>nul 2>nul
186-
meson setup ^
187-
mesa.build ^
188-
mesa.src ^
189-
--prefix="%CD%\mesa-d3d12" ^
190-
--default-library=static ^
191-
-Dbuildtype=release ^
192-
-Db_ndebug=true ^
193-
-Db_vscrt=mt ^
194-
-Dllvm=disabled ^
195-
-Dplatforms=windows ^
196-
-Dosmesa=false ^
197-
-Dgallium-drivers=d3d12 || exit /b 1
198-
ninja -C mesa.build install || exit /b 1
199-
200183
rem *** done ***
201184
rem output is in mesa-d3d12 and mesa-llvmpipe folders
202185

@@ -217,9 +200,12 @@ if "%GITHUB_WORKFLOW%" neq "" (
217200

218201
mkdir archive-d3d12
219202
pushd archive-d3d12
220-
copy /y ..\mesa-d3d12\bin\opengl32.dll .
221-
rem "%WindowsSdkVerBinPath%x64\dxil.dll"
222-
copy /y "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\x64\dxil.dll" .
203+
copy /y ..\mesa-d3d12\bin\opengl32.dll .
204+
if exist "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\x64\dxil.dll" (
205+
copy /y "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\x64\dxil.dll" .
206+
) else if exist "%WindowsSdkVerBinPath%x64\dxil.dll" (
207+
copy /y "%WindowsSdkVerBinPath%x64\dxil.dll" .
208+
)
223209
%SZIP% a -mx=9 ..\mesa-d3d12-%MESA_VERSION%.zip
224210
popd
225211

0 commit comments

Comments
 (0)