summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-07-01 18:24:48 +0100
committerMichael Meeks <michael.meeks@collabora.com>2016-07-01 19:02:57 +0000
commitef47ce2397d4ed453fe01d994d13a13f442ec3bb (patch)
tree8055cdc3a1fe6e60d61cbe0171f0ff0c60afd2ef /opencl
parent3ebfc5b95559a9bcb2fc0508b51fd00e8eb20260 (diff)
tdf#90336 - further cleanup of OpenCL options page.
Still problematic; since we only show OpenCL as being available if it has already been initialized and used. Change-Id: I5e82a3f778f4f2025408330b6d9da51402d01e79 Reviewed-on: https://gerrit.libreoffice.org/26866 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/openclwrapper.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx
index ace3210e9013..a54d86a70fc4 100644
--- a/opencl/source/openclwrapper.cxx
+++ b/opencl/source/openclwrapper.cxx
@@ -865,6 +865,11 @@ const char* errorString(cl_int nError)
#undef CASE
}
+bool GPUEnv::isOpenCLEnabled()
+{
+ return gpuEnv.mpDevID;
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */