Skip to content

Commit

Permalink
#2590 Apple silicon pass
Browse files Browse the repository at this point in the history
  • Loading branch information
RunitaiLinden committed Sep 17, 2024
1 parent 1ba4d74 commit cdc2625
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
14 changes: 12 additions & 2 deletions indra/newview/featuretable_mac.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version 60
version 61
// The version number above should be incremented IF AND ONLY IF some
// change has been made that is sufficiently important to justify
// resetting the graphics preferences of all users to the recommended
Expand Down Expand Up @@ -68,7 +68,8 @@ RenderFSAASamples 1 3
RenderMaxTextureIndex 1 16
RenderGLContextCoreProfile 1 1
RenderGLMultiThreadedTextures 1 0
RenderGLMultiThreadedMedia 1 0
RenderGLMultiThreadedMedia 1 1
RenderAppleUseMultGL 1 1
RenderReflectionsEnabled 1 1
RenderReflectionProbeDetail 1 2
RenderScreenSpaceReflections 1 1
Expand Down Expand Up @@ -381,6 +382,15 @@ list Intel
RenderAnisotropic 1 0
RenderFSAASamples 1 0

// AppleGPU and NonAppleGPU can be thought of as Apple silicon vs Intel Mac
list AppleGPU
RenderGLMultiThreadedMedia 1 1
RenderAppleUseMultGL 1 1

list NonAppleGPU
RenderGLMultiThreadedMedia 1 0
RenderAppleUseMultGL 1 0

list GL3
RenderFSAASamples 0 0
RenderReflectionProbeDetail 0 0
Expand Down
8 changes: 8 additions & 0 deletions indra/newview/llfeaturemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,14 @@ void LLFeatureManager::applyBaseMasks()
{
maskFeatures("Intel");
}
if (gGLManager.mIsApple)
{
maskFeatures("AppleGPU");
}
else
{
maskFeatures("NonAppleGPU");
}
if (gGLManager.mGLVersion < 3.f)
{
maskFeatures("OpenGLPre30");
Expand Down

0 comments on commit cdc2625

Please sign in to comment.