summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderGenCommon.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-01-05 23:42:43 +0100
committerGitHub <noreply@github.com>2018-01-05 23:42:43 +0100
commitdc08b73db19b8d59ec9ba373a4fb8d7d8639c9e3 (patch)
treef637ed6ba4099e0505b31283d141a0da2ff0db26 /Source/Core/VideoCommon/ShaderGenCommon.cpp
parent1cf1e7cde07abf5642c48da1f9a0f82b99b9de24 (diff)
parentc709f3c2d150ed35a33a32e45f7c3fe9605f682f (diff)
Merge pull request #6141 from JonnyH/WIP/shader-framebuffer-fetch2
Implement dual-source blending in shader
Diffstat (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp')
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp
index c6b29c8088..8cc7e54f5c 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.cpp
+++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp
@@ -32,6 +32,7 @@ ShaderHostConfig ShaderHostConfig::GetCurrent()
bits.backend_bitfield = g_ActiveConfig.backend_info.bSupportsBitfield;
bits.backend_dynamic_sampler_indexing =
g_ActiveConfig.backend_info.bSupportsDynamicSamplerIndexing;
+ bits.backend_shader_framebuffer_fetch = g_ActiveConfig.backend_info.bSupportsFramebufferFetch;
return bits;
}
@@ -68,9 +69,9 @@ std::string GetDiskShaderCacheFileName(APIType api_type, const char* type, bool
if (include_host_config)
{
- // We're using 20 bits, so 5 hex characters.
+ // We're using 21 bits, so 6 hex characters.
ShaderHostConfig host_config = ShaderHostConfig::GetCurrent();
- filename += StringFromFormat("-%05X", host_config.bits);
+ filename += StringFromFormat("-%06X", host_config.bits);
}
filename += ".cache";