diff --git a/include/meson.build b/include/meson.build index 6a05d03fae2..08eb4eb1bcd 100644 --- a/include/meson.build +++ b/include/meson.build @@ -133,7 +133,7 @@ opencl_headers = files( ) # Only install the headers if we are building a stand alone implementation and # not an ICD enabled implementation -if with_gallium_opencl and not with_opencl_icd +if with_gallium_clover and not with_opencl_icd install_headers( opencl_headers, subdir: 'CL' diff --git a/meson.build b/meson.build index c26785e2d78..2abf1409a28 100644 --- a/meson.build +++ b/meson.build @@ -832,10 +832,10 @@ if _opencl != 'disabled' error('The Clover OpenCL state tracker requires rtti') endif - with_gallium_opencl = true + with_gallium_clover = true with_opencl_icd = _opencl == 'icd' else - with_gallium_opencl = false + with_gallium_clover = false with_opencl_icd = false endif @@ -853,11 +853,11 @@ if with_gallium_rusticl rustc = meson.get_compiler('rust') endif -with_clover_spirv = with_gallium_opencl and get_option('opencl-spirv') +with_clover_spirv = with_gallium_clover and get_option('opencl-spirv') with_clc = with_microsoft_clc or with_intel_clc or with_gallium_asahi or with_gallium_rusticl or with_clover_spirv dep_clc = null_dep -if with_gallium_opencl or with_clc +if with_gallium_clover or with_clc dep_clc = dependency('libclc') endif @@ -1734,7 +1734,7 @@ if with_amd_vk or with_gallium_radeonsi or with_gallium_r600 llvm_modules += 'asmparser' endif endif -if with_gallium_opencl +if with_gallium_clover llvm_modules += [ 'linker', 'coverage', 'instrumentation', 'ipo', 'irreader', 'lto', 'option', 'objcarcopts', 'profiledata' @@ -1760,7 +1760,7 @@ amd_with_llvm = get_option('amd-use-llvm') if with_amd_vk or with_gallium_radeonsi or with_clc _llvm_version = '>= 15.0.0' -elif with_gallium_opencl +elif with_gallium_clover _llvm_version = '>= 11.0.0' else _llvm_version = '>= 5.0.0' @@ -1781,7 +1781,7 @@ if _llvm.allowed() modules : llvm_modules, optional_modules : llvm_optional_modules, required : ( - with_amd_vk or with_gallium_radeonsi or with_gallium_opencl or with_clc + with_amd_vk or with_gallium_radeonsi or with_gallium_clover or with_clc or _llvm.enabled() ), static : not _shared_llvm, @@ -1833,7 +1833,7 @@ elif with_amd_vk and with_aco_tests error('ACO tests require LLVM, but LLVM is disabled.') elif with_swrast_vk error('The following drivers require LLVM: Lavapipe. One of these is enabled, but LLVM is disabled.') -elif with_gallium_opencl +elif with_gallium_clover error('The OpenCL "Clover" state tracker requires LLVM, but LLVM is disabled.') elif with_clc error('The CLC compiler requires LLVM, but LLVM is disabled.') @@ -2433,7 +2433,7 @@ if with_gallium if with_gallium_st_nine gallium_frontends += 'nine' endif - if with_gallium_opencl + if with_gallium_clover gallium_frontends += 'clover' endif if with_gallium_rusticl diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build index 4878931ee83..b6e3a8bfaa3 100644 --- a/src/gallium/drivers/r600/meson.build +++ b/src/gallium/drivers/r600/meson.build @@ -144,7 +144,7 @@ egd_tables_h = custom_target( ) r600_c_args = [] -if with_gallium_opencl +if with_gallium_clover if dep_elf.found() r600_c_args += '-DHAVE_OPENCL' else diff --git a/src/gallium/meson.build b/src/gallium/meson.build index c820f288ab0..779a0ac209d 100644 --- a/src/gallium/meson.build +++ b/src/gallium/meson.build @@ -191,7 +191,7 @@ if with_gallium_d3d12 else driver_d3d12 = declare_dependency() endif -if with_gallium_opencl +if with_gallium_clover # TODO: this isn't really clover specific, but ATM clover is the only # consumer subdir('targets/pipe-loader')