Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
546fc96f
Commit
546fc96f
authored
6 years ago
by
AndreyL ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-8721 Enabled benchmarking for Intel GPUs
parent
0e9c0e0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llfeaturemanager.cpp
+10
-1
10 additions, 1 deletion
indra/newview/llfeaturemanager.cpp
indra/newview/llglsandbox.cpp
+0
-9
0 additions, 9 deletions
indra/newview/llglsandbox.cpp
with
10 additions
and
10 deletions
indra/newview/llfeaturemanager.cpp
+
10
−
1
View file @
546fc96f
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llglsandbox.cpp
+
0
−
9
View file @
546fc96f
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment