diff options
author | Laszlo Nemeth <nemeth@numbertext.org> | 2016-07-25 16:28:39 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-07-29 20:01:24 +0200 |
commit | 2339af9f17af08797e7e4f5ebf8fd1df4d4fcebe (patch) | |
tree | 54cf5a4eb2faba42fa2a15bdcfb8877d77a05bf6 /sc | |
parent | 0466b6ab851dce66c141e112be6f831543cc8712 (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.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 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 |