diff options
| author | Stenzek <stenzek@gmail.com> | 2018-07-17 13:24:36 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-07-19 21:47:42 +1000 |
| commit | 3323265d9113c5c2cf4f3ca92766458411ac8b5e (patch) | |
| tree | 93f0ef804f2f0f9178b536c6781d9404fc76de13 /Source/Core/VideoCommon/ShaderCache.cpp | |
| parent | b30342d38f372ac987322d9d01d9296eb2511f79 (diff) | |
FramebufferManager: Dynamic selection of EFB depth format
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderCache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp index 13b1bfc0fc..f369118962 100644 --- a/Source/Core/VideoCommon/ShaderCache.cpp +++ b/Source/Core/VideoCommon/ShaderCache.cpp @@ -10,6 +10,7 @@ #include "Core/ConfigManager.h" #include "Core/Host.h" +#include "VideoCommon/FramebufferManagerBase.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/Statistics.h" #include "VideoCommon/VertexLoaderManager.h" @@ -26,6 +27,7 @@ bool ShaderCache::Initialize() { m_api_type = g_ActiveConfig.backend_info.api_type; m_host_config = ShaderHostConfig::GetCurrent(); + m_efb_depth_format = FramebufferManagerBase::GetEFBDepthFormat(); m_efb_multisamples = g_ActiveConfig.iMultisamples; // Create the async compiler, and start the worker threads. @@ -441,7 +443,7 @@ AbstractPipelineConfig ShaderCache::GetGXPipelineConfig( config.depth_state = depth_state; config.blending_state = blending_state; config.framebuffer_state.color_texture_format = AbstractTextureFormat::RGBA8; - config.framebuffer_state.depth_texture_format = AbstractTextureFormat::D32F; + config.framebuffer_state.depth_texture_format = m_efb_depth_format; config.framebuffer_state.per_sample_shading = m_host_config.ssaa; config.framebuffer_state.samples = m_efb_multisamples; return config; |
