diff options
author | Laszlo Nemeth <nemeth@numbertext.org> | 2016-07-25 16:28:39 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-25 19:39:28 +0000 |
commit | cb7b91e9946fdf628b750bcfd318545f8a033b34 (patch) | |
tree | f7b690eba5eb336e406e160248167f16d3d53f29 /sc | |
parent | 57137b00aebbf93b458c04a67f38f62139ee0e20 (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: If88f8e9e2aff2a5ffd633607ee6aebb5614c5caf
Reviewed-on: https://gerrit.libreoffice.org/27522
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.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 daf8f65de44f..147c097ae6bd 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -4039,9 +4039,8 @@ bool ScFormulaCell::InterpretFormulaGroup() #ifdef WNT // 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 |