summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-12-08 15:29:59 -0800
committerDylan Baker <[email protected]>2018-01-08 16:39:48 -0800
commiteab0316d107dd2d050ea01eb829f86de1a617e1c (patch)
tree421593d0f822c8288b593f0db3e68283b6256fbf /src/gallium
parent42ea0631f108d82554339530d6c88aa1b448af1e (diff)
meson: set opencl flags for r600
Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/meson.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build
index 2132dbb33ad..5899518a2e8 100644
--- a/src/gallium/drivers/r600/meson.build
+++ b/src/gallium/drivers/r600/meson.build
@@ -113,12 +113,15 @@ egd_tables_h = custom_target(
capture : true,
)
-# TODO: compute defines
+r600_c_args = []
+if with_gallium_opencl
+ r600_c_args += '-DHAVE_OPENCL'
+endif
libr600 = static_library(
'r600',
[files_r600, egd_tables_h],
- c_args : [c_vis_args],
+ c_args : [c_vis_args, r600_c_args],
cpp_args : [cpp_vis_args],
include_directories : [
inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,