summaryrefslogtreecommitdiff
path: root/graphics/mesa-devel/files/patch-suffix
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-02-03 19:55:25 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-02-03 22:23:41 +0000
commitd8990eff958b5295ec292d58cf63cbb55f788be3 (patch)
tree09acdf8274d61cf8c4bb435bea13633a71e35938 /graphics/mesa-devel/files/patch-suffix
parentgraphics/libjxl: update to 0.8.1 (diff)
graphics/mesa-devel: expose OpenCL support
Overrides lang/clover but still required for mesa.icd unless built in standalone mode (DEFAULT_VERSIONS+=gl=mesa-devel). For example, on Intel GPUs one can set IRIS_ENABLE_CLOVER=1 and RUSTICL_ENABLE=iris via environ(7) to enable both Clover and Rusticl. https://docs.mesa3d.org/envvars.html#rusticl-environment-variables https://github.com/OCL-dev/ocl-icd/blob/master/doc/libOpenCL.7.txt.in
Diffstat (limited to 'graphics/mesa-devel/files/patch-suffix')
-rw-r--r--graphics/mesa-devel/files/patch-suffix42
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/mesa-devel/files/patch-suffix b/graphics/mesa-devel/files/patch-suffix
index 61af28390c1c..ee52f899c573 100644
--- a/graphics/mesa-devel/files/patch-suffix
+++ b/graphics/mesa-devel/files/patch-suffix
@@ -62,6 +62,48 @@ Library selection is handled by libglvnd and/or libmap.conf.
egl_lib_version = '0.0.0'
deps_for_egl += dep_glvnd
files_egl += [g_egldispatchstubs_h, g_egldispatchstubs_c]
+--- src/gallium/auxiliary/pipe-loader/meson.build.orig 2023-02-01 23:53:26 UTC
++++ src/gallium/auxiliary/pipe-loader/meson.build
+@@ -58,7 +58,7 @@ libpipe_loader_dynamic = static_library(
+ c_args : [
+ libpipe_loader_defines,
+ '-DPIPE_SEARCH_DIR="@0@"'.format(
+- join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')
++ join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe' + get_option('egl-lib-suffix'))
+ )
+ ],
+ gnu_symbol_visibility : 'hidden',
+--- src/gallium/targets/opencl/meson.build.orig 2023-02-01 23:53:26 UTC
++++ src/gallium/targets/opencl/meson.build
+@@ -30,7 +30,7 @@ llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBR
+ endif
+
+ llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
+-opencl_libname = with_opencl_icd ? 'MesaOpenCL' : 'OpenCL'
++opencl_libname = with_opencl_icd ? 'MesaOpenCL' + get_option('egl-lib-suffix') : 'OpenCL'
+
+ polly_dep = null_dep
+ polly_isl_dep = null_dep
+@@ -117,7 +117,7 @@ if with_opencl_icd
+
+ if with_opencl_icd
+ _config = configuration_data()
+- _config.set('OPENCL_LIBNAME', 'MesaOpenCL')
++ _config.set('OPENCL_LIBNAME', 'MesaOpenCL' + get_option('egl-lib-suffix'))
+ _config.set('OPENCL_VERSION', opencl_version)
+ configure_file(
+ configuration : _config,
+--- src/gallium/targets/pipe-loader/meson.build.orig 2023-02-01 23:53:26 UTC
++++ src/gallium/targets/pipe-loader/meson.build
+@@ -44,7 +44,7 @@ endif
+ pipe_loader_link_deps += files('pipe.sym')
+ endif
+
+-pipe_loader_install_dir = join_paths(get_option('libdir'), 'gallium-pipe')
++pipe_loader_install_dir = join_paths(get_option('libdir'), 'gallium-pipe' + get_option('egl-lib-suffix'))
+
+ _kmsro_targets = [
+ driver_kmsro, driver_v3d, driver_vc4, driver_freedreno, driver_etnaviv,
--- src/gbm/backends/dri/gbm_dri.c.orig 2020-05-30 21:28:01 UTC
+++ src/gbm/backends/dri/gbm_dri.c
@@ -307,14 +307,6 @@ dri_bind_extensions(struct gbm_dri_device *dri,