From fe65c5671b6cee094b9c2d177bc2bfae9729f827 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 18 Mar 2022 14:05:05 -0700 Subject: gallium/opencl: set OCL_ICD_FILENAMES with devenv So that `meson devenv` also sets up OpenCL. Reviewed-by: Emma Anholt Part-of: --- src/gallium/targets/opencl/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/targets/opencl/meson.build b/src/gallium/targets/opencl/meson.build index ec65fcbe18e..14df6b86f7f 100644 --- a/src/gallium/targets/opencl/meson.build +++ b/src/gallium/targets/opencl/meson.build @@ -114,4 +114,12 @@ if with_opencl_icd install : true, install_dir : join_paths(get_option('sysconfdir'), 'OpenCL', 'vendors'), ) + + if meson.version().version_compare('>= 0.58') + # .so is hardcoded in the icd as well + devenv.prepend( + 'OCL_ICD_FILENAMES', + meson.current_build_dir() / 'libMesaOpenCL.so.@0@'.format(opencl_version) + ) + endif endif -- cgit v1.2.3