diff options
author | Laszlo Nemeth <nemeth@numbertext.org> | 2016-07-25 15:37:18 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-07-26 07:41:38 +0000 |
commit | 00a58dfead6e05724b252f74e24f9f6c89a68d76 (patch) | |
tree | efce2894ec854c343e7bcf5d57a3ceacba4a76a2 /sc | |
parent | eee5d67d06c8e0c81ab0874171af0d5c4de18860 (diff) |
Need to try to avoid TDR also with NVIDIA cards on Windows 7 or earlier
(TDR is Timeout detection and recovery, was introduced in Vista.)
Change-Id: Ic49629adf7630e61cebcdfcc431ca96ba3fbaf7e
Reviewed-on: https://gerrit.libreoffice.org/27518
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index f1b239d917a2..b32d4ed45e36 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -4076,9 +4076,8 @@ bool ScFormulaCell::InterpretFormulaGroup() #ifdef _WIN32 // Heuristic: Certain old low-end OpenCL implementations don't // work for us with too large group lengths. 1000 was determined - // empirically to be a good compromise. Looking at the preferred - // float vector width seems to be a way to detect these devices. - if (opencl::gpuEnv.mnPreferredVectorWidthFloat == 4) + // empirically to be a good compromise. + if (opencl::gpuEnv.mbNeedsTDRAvoidance) nMaxGroupLength = 1000; #endif |