summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLaszlo Nemeth <nemeth@numbertext.org>2016-07-25 16:28:39 +0300
committerJan Holesovsky <kendy@collabora.com>2016-07-29 20:01:24 +0200
commit2339af9f17af08797e7e4f5ebf8fd1df4d4fcebe (patch)
tree54cf5a4eb2faba42fa2a15bdcfb8877d77a05bf6 /sc
parent0466b6ab851dce66c141e112be6f831543cc8712 (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> (cherry picked from commit cb7b91e9946fdf628b750bcfd318545f8a033b34)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 599fb4611682..2e6f5492f4a7 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