diff options
author | Dylan Baker <[email protected]> | 2017-10-09 14:59:35 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2017-10-16 16:32:43 -0700 |
commit | 813b4b09f9d0168357b165566d403186cfe83701 (patch) | |
tree | 59e41bfc22fc1d2cb67ed45e334ffd182907d73d /meson.build | |
parent | b154b44ae342eaff3b0c2f4f46138742b5dfafe8 (diff) |
meson: build nouveau (gallium) driver
Tested with a GK107.
v2: - Add target for nouveau standalone compiler. This target is not
built by default.
v3: - Add nouveau to list of drivers built by default
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Anholt <eric at anholt.net>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index e0fac4858fc..ff5666c207e 100644 --- a/meson.build +++ b/meson.build @@ -92,11 +92,13 @@ endif with_gallium = false with_gallium_radeonsi = false +with_gallium_nouveau = false with_gallium_softpipe = false _drivers = get_option('gallium-drivers') if _drivers != '' _split = _drivers.split(',') with_gallium_radeonsi = _split.contains('radeonsi') + with_gallium_nouveau = _split.contains('nouveau') with_gallium = true with_dri = true endif @@ -550,12 +552,16 @@ dep_m = cc.find_library('m', required : false) dep_libdrm_amdgpu = [] dep_libdrm_radeon = [] +dep_libdrm_nouveau = [] if with_amd_vk or with_gallium_radeonsi dep_libdrm_amdgpu = dependency('libdrm_amdgpu', version : '>= 2.4.84') endif if with_gallium_radeonsi # older radeon too dep_libdrm_radeon = dependency('libdrm_radeon', version : '>= 2.4.71') endif +if with_gallium_nouveau + dep_libdrm_nouveau = dependency('libdrm_nouveau', version : '>= 2.4.66') +endif llvm_modules = ['bitwriter', 'engine', 'mcdisassembler', 'mcjit'] if with_amd_vk |