mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
meson: Allow building lavapipe without specifying llvmpipe
Avoids compiling glsl/opengl/... support when testing only lavapipe. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30423>
This commit is contained in:
parent
0fc3c52e43
commit
893c93a27a
@ -263,6 +263,7 @@ if with_any_vk and host_machine.system() == 'windows' and meson.version().versio
|
||||
endif
|
||||
|
||||
with_any_llvmpipe = with_gallium_llvmpipe or with_swrast_vk
|
||||
with_gallium_or_lvp = with_gallium or with_swrast_vk
|
||||
|
||||
freedreno_kmds = get_option('freedreno-kmds')
|
||||
if freedreno_kmds.length() != 0 and freedreno_kmds != [ 'msm' ] and with_freedreno_vk
|
||||
@ -1879,7 +1880,7 @@ elif with_amd_vk and with_aco_tests
|
||||
error('ACO tests require LLVM, but LLVM is disabled.')
|
||||
elif with_swrast_vk
|
||||
error('lavapipe requires LLVM and is enabled, but LLVM is disabled.')
|
||||
elif with_gallium_llvmpipe
|
||||
elif with_any_llvmpipe
|
||||
error('llvmpipe requires LLVM and is enabled, but LLVM is disabled.')
|
||||
elif with_gallium_clover
|
||||
error('The OpenCL "Clover" state tracker requires LLVM, but LLVM is disabled.')
|
||||
|
@ -52,11 +52,11 @@ if with_any_llvmpipe
|
||||
else
|
||||
driver_llvmpipe = declare_dependency()
|
||||
endif
|
||||
if with_gallium_llvmpipe and with_gallium_softpipe
|
||||
if with_any_llvmpipe and with_gallium_softpipe
|
||||
driver_swrast = declare_dependency(
|
||||
dependencies : [ driver_softpipe, driver_llvmpipe ],
|
||||
)
|
||||
elif with_gallium_llvmpipe
|
||||
elif with_any_llvmpipe
|
||||
driver_swrast = driver_llvmpipe
|
||||
elif with_gallium_softpipe
|
||||
driver_swrast = driver_softpipe
|
||||
|
@ -104,7 +104,11 @@ if with_gallium_asahi or with_tools.contains('asahi')
|
||||
endif
|
||||
if with_gallium
|
||||
subdir('mesa')
|
||||
endif
|
||||
if with_gallium_or_lvp
|
||||
subdir('gallium')
|
||||
endif
|
||||
if with_gallium
|
||||
# This has to be here since it requires libgallium, and subdir cannot
|
||||
# contain ..
|
||||
if with_tests
|
||||
|
Loading…
Reference in New Issue
Block a user