From 68c73c5be15a92df94092c46f1506b6f3a87f8bb Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 4 Nov 2023 11:00:43 +0100 Subject: [PATCH] GS/VK: Make sure feedback loop is enabled for SW_AD_TO_HW blend. (#10225) Fixes Colin McRae Rally 2005 on Vulkan. Possible others as well on basic blend with barriers or Medium blend with barriers disabled. Bump shader cache version. --- bin/resources/shaders/vulkan/tfx.glsl | 2 +- pcsx2/ShaderCacheVersion.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/resources/shaders/vulkan/tfx.glsl b/bin/resources/shaders/vulkan/tfx.glsl index 4d8ff1c2a6..7da3a3cfa2 100644 --- a/bin/resources/shaders/vulkan/tfx.glsl +++ b/bin/resources/shaders/vulkan/tfx.glsl @@ -305,7 +305,7 @@ void main() #define SW_BLEND_NEEDS_RT (SW_BLEND && (PS_BLEND_A == 1 || PS_BLEND_B == 1 || PS_BLEND_C == 1 || PS_BLEND_D == 1)) #define SW_AD_TO_HW (PS_BLEND_C == 1 && PS_A_MASKED) -#define PS_FEEDBACK_LOOP_IS_NEEDED (PS_TEX_IS_FB == 1 || PS_FBMASK || SW_BLEND_NEEDS_RT || (PS_DATE >= 5)) +#define PS_FEEDBACK_LOOP_IS_NEEDED (PS_TEX_IS_FB == 1 || PS_FBMASK || SW_BLEND_NEEDS_RT || SW_AD_TO_HW || (PS_DATE >= 5)) #define NEEDS_TEX (PS_TFX != 4) diff --git a/pcsx2/ShaderCacheVersion.h b/pcsx2/ShaderCacheVersion.h index bcb01de855..36f62612ec 100644 --- a/pcsx2/ShaderCacheVersion.h +++ b/pcsx2/ShaderCacheVersion.h @@ -15,4 +15,4 @@ /// Version number for GS and other shaders. Increment whenever any of the contents of the /// shaders change, to invalidate the cache. -static constexpr u32 SHADER_CACHE_VERSION = 35; +static constexpr u32 SHADER_CACHE_VERSION = 36;