Skip to content

Commit e0ef4bd

Browse files
committed
mesa 24.2.0
1 parent 11630a5 commit e0ef4bd

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

build.cmd

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
setlocal enabledelayedexpansion
33

44
set LLVM_VERSION=18.1.8
5-
set MESA_VERSION=24.1.5
5+
set MESA_VERSION=24.2.0
66

77
rem *** architectures ***
88

@@ -76,6 +76,14 @@ python -c "import mako" 2>nul || (
7676
)
7777
)
7878

79+
python -c "import yaml" 2>nul || (
80+
pip install pyyaml
81+
python -c "import yaml" 2>nul || (
82+
echo ERROR: "yaml" module not found for python
83+
exit /b 1
84+
)
85+
)
86+
7987
where /q git.exe || (
8088
echo ERROR: "git.exe" not found
8189
exit /b 1
@@ -262,7 +270,7 @@ rem *** extra libs ***
262270

263271
set LINK=version.lib
264272

265-
rem *** llvmpipe ***
273+
rem *** llvmpipe, lavapipe, osmesa ***
266274

267275
rd /s /q mesa.build-%MESA_ARCH% 1>nul 2>nul
268276
meson setup ^
@@ -280,9 +288,9 @@ meson setup ^
280288
-Dvulkan-drivers=swrast ^
281289
!MESON_CROSS! || exit /b 1
282290
ninja -C mesa.build-%MESA_ARCH% install || exit /b 1
283-
python mesa.src\src\vulkan\util\vk_icd_gen.py --api-version 1.1 --xml mesa.src\src\vulkan\registry\vk.xml --lib-path vulkan_lvp.dll --out mesa-llvmpipe-%MESA_ARCH%\bin\lvp_icd.!TARGET_ARCH_NAME!.json || exit /b 1
291+
python mesa.src\src\vulkan\util\vk_icd_gen.py --api-version 1.3 --xml mesa.src\src\vulkan\registry\vk.xml --lib-path vulkan_lvp.dll --out mesa-llvmpipe-%MESA_ARCH%\bin\lvp_icd.!TARGET_ARCH_NAME!.json || exit /b 1
284292

285-
rem *** d3d12 & dzn ***
293+
rem *** d3d12, dzn ***
286294

287295
rd /s /q mesa.build-%MESA_ARCH% 1>nul 2>nul
288296
meson setup ^
@@ -301,6 +309,11 @@ meson setup ^
301309
!MESON_CROSS! || exit /b 1
302310
ninja -C mesa.build-%MESA_ARCH% install || exit /b 1
303311
python mesa.src\src\vulkan\util\vk_icd_gen.py --api-version 1.1 --xml mesa.src\src\vulkan\registry\vk.xml --lib-path vulkan_dzn.dll --out mesa-d3d12-%MESA_ARCH%\bin\dzn_icd.!TARGET_ARCH_NAME!.json || exit /b 1
312+
if exist "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\%MESA_ARCH%\dxil.dll" (
313+
copy /y "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\%MESA_ARCH%\dxil.dll" mesa-d3d12-%MESA_ARCH%\bin\
314+
) else if exist "%WindowsSdkVerBinPath%%MESA_ARCH%\dxil.dll" (
315+
copy /y "%WindowsSdkVerBinPath%%MESA_ARCH%\dxil.dll" mesa-d3d12-%MESA_ARCH%\bin\
316+
)
304317

305318
rem *** zink ***
306319

@@ -349,11 +362,7 @@ if "%GITHUB_WORKFLOW%" neq "" (
349362
mkdir archive-d3d12
350363
pushd archive-d3d12
351364
copy /y ..\mesa-d3d12-%MESA_ARCH%\bin\opengl32.dll .
352-
if exist "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\%MESA_ARCH%\dxil.dll" (
353-
copy /y "%ProgramFiles(x86)%\Windows Kits\10\Redist\D3D\%MESA_ARCH%\dxil.dll" .
354-
) else if exist "%WindowsSdkVerBinPath%%MESA_ARCH%\dxil.dll" (
355-
copy /y "%WindowsSdkVerBinPath%%MESA_ARCH%\dxil.dll" .
356-
)
365+
copy /y ..\mesa-d3d12-%MESA_ARCH%\bin\dxil.dll .
357366
%SZIP% a -mx=9 ..\mesa-d3d12-%MESA_ARCH%-%MESA_VERSION%.zip
358367
popd
359368

@@ -366,7 +375,7 @@ if "%GITHUB_WORKFLOW%" neq "" (
366375
mkdir archive-dzn
367376
pushd archive-dzn
368377
copy /y ..\mesa-d3d12-%MESA_ARCH%\bin\vulkan_dzn.dll .
369-
copy /y ..\archive-d3d12\dxil.dll .
378+
copy /y ..\mesa-d3d12-%MESA_ARCH%\bin\dxil.dll .
370379
copy /y ..\mesa-d3d12-%MESA_ARCH%\bin\dzn_icd.!TARGET_ARCH_NAME!.json .
371380
%SZIP% a -mx=9 ..\mesa-dzn-%MESA_ARCH%-%MESA_VERSION%.zip
372381
popd

mesa.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
diff --git meson.build meson.build
2-
index 6b22930..4af29b1 100644
2+
index 9fb4160..6f62a3f 100644
33
--- meson.build
44
+++ meson.build
5-
@@ -582,7 +582,7 @@ if with_gallium_kmsro and (with_platform_x11 and not with_dri3)
5+
@@ -579,7 +579,7 @@ if with_gallium_kmsro and (with_platform_x11 and not with_dri3)
66
endif
77

88
dep_dxheaders = null_dep
99
-if with_gallium_d3d12 or with_microsoft_clc or with_microsoft_vk
10-
+if true or with_gallium_d3d12 or with_microsoft_clc or with_microsoft_vk
10+
+if true
1111
dep_dxheaders = dependency('directx-headers', required : false)
1212
if not dep_dxheaders.found()
1313
dep_dxheaders = dependency('DirectX-Headers',
14-
@@ -944,9 +944,6 @@ except:
14+
@@ -954,9 +954,6 @@ except:
1515
import mako
1616
assert Version(mako.__version__) >= Version("0.8.0")
1717
''', check: false)
1818
-if has_mako.returncode() != 0
1919
- error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
2020
-endif
2121

22-
if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
23-
error('When using GCC, version 4.4.6 or later is required.')
24-
@@ -1084,7 +1081,6 @@ if cc.get_argument_syntax() == 'msvc'
22+
has_yaml = run_command(
23+
prog_python, '-c',
24+
@@ -1104,7 +1101,6 @@ if cc.get_argument_syntax() == 'msvc'
2525
'/wd5105', # macro expansion producing 'defined' has undefined behavior (winbase.h, need Windows SDK upgrade)
2626
'/we4020', # Error when passing the wrong number of parameters
2727
'/we4024', # Error when passing different type of parameter
2828
- '/we4189', # 'identifier' : local variable is initialized but not referenced
2929
'/Zc:__cplusplus', #Set __cplusplus macro to match the /std:c++<version> on the command line
3030
]
3131
c_args += cc.get_supported_arguments(_trial)
32-
@@ -1519,7 +1515,7 @@ if cc.links('int main() { return 0; }',
32+
@@ -1539,7 +1535,7 @@ if cc.links('int main() { return 0; }',
3333
args : '-Wl,--dynamic-list=@0@'.format(
3434
join_paths(meson.current_source_dir(), 'build-support/conftest.dyn')),
3535
name : 'dynamic-list')
@@ -38,7 +38,7 @@ index 6b22930..4af29b1 100644
3838
endif
3939

4040
ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
41-
@@ -1716,7 +1712,7 @@ if dep_libudev.found()
41+
@@ -1735,7 +1731,7 @@ if dep_libudev.found()
4242
pre_args += '-DHAVE_LIBUDEV'
4343
endif
4444

0 commit comments

Comments
 (0)