Skip to content
Snippets Groups Projects
Commit 546fc96f authored by AndreyL ProductEngine's avatar AndreyL ProductEngine
Browse files

MAINT-8721 Enabled benchmarking for Intel GPUs

parent 0e9c0e0d
No related branches found
No related tags found
No related merge requests found
...@@ -407,7 +407,16 @@ bool LLFeatureManager::loadGPUClass() ...@@ -407,7 +407,16 @@ bool LLFeatureManager::loadGPUClass()
if (!gSavedSettings.getBOOL("SkipBenchmark")) if (!gSavedSettings.getBOOL("SkipBenchmark"))
{ {
//get memory bandwidth from benchmark //get memory bandwidth from benchmark
F32 gbps = gpu_benchmark(); F32 gbps;
try
{
gbps = gpu_benchmark();
}
catch (const std::exception& e)
{
gbps = -1.f;
LL_WARNS("RenderInit") << "GPU benchmark failed: " << e.what() << LL_ENDL;
}
if (gbps < 0.f) if (gbps < 0.f)
{ //couldn't bench, use GLVersion { //couldn't bench, use GLVersion
......
...@@ -966,15 +966,6 @@ class ShaderBinder ...@@ -966,15 +966,6 @@ class ShaderBinder
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
F32 gpu_benchmark() F32 gpu_benchmark()
{ {
#if LL_WINDOWS
if (gGLManager.mIsIntel
&& std::string::npos != LLOSInfo::instance().getOSStringSimple().find("Microsoft Windows 8")) // or 8.1
{ // don't run benchmark on Windows 8/8.1 based PCs with Intel GPU (MAINT-8197)
LL_WARNS() << "Skipping gpu_benchmark() for Intel graphics on Windows 8." << LL_ENDL;
return -1.f;
}
#endif
if (!gGLManager.mHasShaderObjects || !gGLManager.mHasTimerQuery) if (!gGLManager.mHasShaderObjects || !gGLManager.mHasTimerQuery)
{ // don't bother benchmarking the fixed function { // don't bother benchmarking the fixed function
// or venerable drivers which don't support accurate timing anyway // or venerable drivers which don't support accurate timing anyway
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment