From 089a4f245325a5be5cd5951d85305d791b4d9cb6 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 6 Aug 2018 14:55:04 +0200 Subject: remove Calc's software interpreter - it's in practice never used nowadays, group threading has higher priority in the code and since SwInterpreter's allowed opcodes are a subset of group threading's, there should be no formula where control flow gets as far as using SwInterpreter - the only opcodes SwInterpreter allows are ocAdd, ocSub, ocMul, ocDiv, ocSum and ocProduct, which is a rather limited set and group threading should handle all that as well - if SwInterpreter performs anything better than group threading, there shouldn't be a problem doing the same for group threading - it's yet another code path that should be handled, tested, etc. and the added complexity is not worth it - it shares some code with OpenCL handling, which is both added hassle in case OpenCL code needs changes, and it also causes confusion such as people thinking SwInterpreter has something to do with OpenCL Change-Id: I99052862b60b6266c70dd436d1d7938177dc6bd9 Reviewed-on: https://gerrit.libreoffice.org/58643 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- cui/source/dialogs/about.cxx | 3 --- cui/source/options/optopencl.cxx | 14 -------------- cui/source/options/optopencl.hxx | 1 - cui/uiconfig/ui/optopenclpage.ui | 16 ---------------- 4 files changed, 34 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 152b49ec9d1f..76ad0ef1fdbe 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -341,12 +341,9 @@ OUString AboutDialog::GetVersionString() OUString aCalcMode = "Calc: "; // Calc calculation mode #if HAVE_FEATURE_OPENCL - bool bSWInterp = officecfg::Office::Common::Misc::UseSwInterpreter::get(); bool bOpenCL = openclwrapper::GPUEnv::isOpenCLEnabled(); if (bOpenCL) aCalcMode += "CL"; - else if (bSWInterp) - aCalcMode += "group"; #else const bool bOpenCL = false; #endif diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx index 4448ed99405c..e6cf91a376ff 100644 --- a/cui/source/options/optopencl.cxx +++ b/cui/source/options/optopencl.cxx @@ -47,14 +47,10 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet) SfxTabPage(pParent, "OptOpenCLPage", "cui/ui/optopenclpage.ui", &rSet), maConfig(OpenCLConfig::get()) { - get(mpUseSwInterpreter, "useswinterpreter"); get(mpUseOpenCL, "useopencl"); get(mpOclUsed,"openclused"); get(mpOclNotUsed,"openclnotused"); - mpUseSwInterpreter->Check(officecfg::Office::Common::Misc::UseSwInterpreter::get()); - mpUseSwInterpreter->Enable(!officecfg::Office::Common::Misc::UseSwInterpreter::isReadOnly()); - mpUseOpenCL->Check(maConfig.mbUseOpenCL); mpUseOpenCL->Enable(!officecfg::Office::Common::Misc::UseOpenCL::isReadOnly()); @@ -70,7 +66,6 @@ SvxOpenCLTabPage::~SvxOpenCLTabPage() void SvxOpenCLTabPage::dispose() { - mpUseSwInterpreter.clear(); mpUseOpenCL.clear(); mpOclUsed.clear(); mpOclNotUsed.clear(); @@ -88,12 +83,6 @@ bool SvxOpenCLTabPage::FillItemSet( SfxItemSet* ) bool bModified = false; std::shared_ptr batch(comphelper::ConfigurationChanges::create()); - if (mpUseSwInterpreter->IsValueChangedFromSaved()) - { - officecfg::Office::Common::Misc::UseSwInterpreter::set(mpUseSwInterpreter->IsChecked(), batch); - bModified = true; - } - if (mpUseOpenCL->IsValueChangedFromSaved()) maConfig.mbUseOpenCL = mpUseOpenCL->IsChecked(); @@ -127,9 +116,6 @@ void SvxOpenCLTabPage::Reset( const SfxItemSet* ) { maConfig = OpenCLConfig::get(); - mpUseSwInterpreter->Check(officecfg::Office::Common::Misc::UseSwInterpreter::get()); - mpUseSwInterpreter->SaveValue(); - mpUseOpenCL->Check(maConfig.mbUseOpenCL); mpUseOpenCL->SaveValue(); } diff --git a/cui/source/options/optopencl.hxx b/cui/source/options/optopencl.hxx index cb7878f80646..f7d62eb831c7 100644 --- a/cui/source/options/optopencl.hxx +++ b/cui/source/options/optopencl.hxx @@ -31,7 +31,6 @@ class SvxOpenCLTabPage : public SfxTabPage private: OpenCLConfig maConfig; - VclPtr mpUseSwInterpreter; VclPtr mpUseOpenCL; VclPtr mpOclUsed; diff --git a/cui/uiconfig/ui/optopenclpage.ui b/cui/uiconfig/ui/optopenclpage.ui index 4c956b6f9887..b0dad0b14d15 100644 --- a/cui/uiconfig/ui/optopenclpage.ui +++ b/cui/uiconfig/ui/optopenclpage.ui @@ -25,22 +25,6 @@ True vertical 12 - - - Allow use of Software Interpreter (even when OpenCL is not available) - True - True - False - True - 0 - True - - - False - True - 0 - - Allow use of OpenCL -- cgit