From 29a9ed043bd0946497edf7c4d392ce46041b9817 Mon Sep 17 00:00:00 2001 From: Jonathan Hamilton Date: Wed, 25 Oct 2017 22:44:39 -0700 Subject: Implement dual-source blending in shader For some GLES drivers that don't support dual-source blending, but do support GL_EXT_shader_framebuffer_fetch, this might be useful. --- Source/Core/VideoCommon/ShaderGenCommon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/ShaderGenCommon.cpp') 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"; -- cgit v1.2.3