diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-07-12 19:39:33 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-07-13 21:16:16 +0200 |
commit | e8102bb5f30eef49edb0591f661e4bb6e626c0aa (patch) | |
tree | 7387a82a8565347468d032859091015c4248ff41 /opencl/source/openclwrapper.cxx | |
parent | fbedd668d877d0c8194e5a80ac0336643e36064f (diff) |
tdf#100883 - opencl impls. that use SEH are still bad.
Amazingly we fell-back to the old calculation path for
crashes in older LibreOffices.
Change-Id: Ia182f7a25c5560b68494d5cdd68e02925bfd5845
Reviewed-on: https://gerrit.libreoffice.org/27164
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit 2b1f1030bf642d1b9c8af91aa78683a9fb95e6f4)
Diffstat (limited to 'opencl/source/openclwrapper.cxx')
-rw-r--r-- | opencl/source/openclwrapper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 807a185ea5ff..2551b057b1db 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -58,6 +58,7 @@ using namespace std; namespace opencl { GPUEnv gpuEnv; +sal_uInt64 kernelFailures = 0; namespace { @@ -883,7 +884,7 @@ const char* errorString(cl_int nError) bool GPUEnv::isOpenCLEnabled() { - return gpuEnv.mpDevID; + return gpuEnv.mpDevID && gpuEnv.mpContext; } } |