GS-hw: Remove remaining 24bit destination checks for Ad.

This commit is contained in:
lightningterror 2022-09-01 00:48:35 +02:00
parent cb2a21ef19
commit 6279ae63ce
4 changed files with 4 additions and 4 deletions

View File

@ -890,7 +890,7 @@ PS_OUTPUT ps_main(PS_INPUT input)
if (PS_BLEND_C == 1 && PS_CLR_HW > 3) if (PS_BLEND_C == 1 && PS_CLR_HW > 3)
{ {
float4 RT = trunc(RtTexture.Load(int3(input.p.xy, 0)) * 255.0f + 0.1f); float4 RT = trunc(RtTexture.Load(int3(input.p.xy, 0)) * 255.0f + 0.1f);
alpha_blend = (PS_DFMT == FMT_24) ? 1.0f : RT.a / 128.0f; alpha_blend = RT.a / 128.0f;
} }
else else
{ {

View File

@ -938,7 +938,7 @@ void ps_main()
#else #else
vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f); vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f);
#endif #endif
float alpha_blend = (PS_DFMT == FMT_24) ? 1.0f : RT.a / 128.0f; float alpha_blend = RT.a / 128.0f;
#else #else
float alpha_blend = C.a / 128.0f; float alpha_blend = C.a / 128.0f;
#endif #endif

View File

@ -1194,7 +1194,7 @@ void main()
#if (PS_BLEND_C == 1 && PS_CLR_HW > 3) #if (PS_BLEND_C == 1 && PS_CLR_HW > 3)
vec4 RT = trunc(subpassLoad(RtSampler) * 255.0f + 0.1f); vec4 RT = trunc(subpassLoad(RtSampler) * 255.0f + 0.1f);
float alpha_blend = (PS_DFMT == FMT_24) ? 1.0f : RT.a / 128.0f; float alpha_blend = RT.a / 128.0f;
#else #else
float alpha_blend = C.a / 128.0f; float alpha_blend = C.a / 128.0f;
#endif #endif

View File

@ -941,7 +941,7 @@ struct PSMain
C.a = 128.0f; C.a = 128.0f;
} }
float alpha_blend = SW_AD_TO_HW ? (PS_DFMT == FMT_24 ? 1.f : trunc(current_color.a * 255.5f) / 128.f) : (C.a / 128.f); float alpha_blend = SW_AD_TO_HW ? (trunc(current_color.a * 255.5f) / 128.f) : (C.a / 128.f);
if (PS_DFMT == FMT_16) if (PS_DFMT == FMT_16)
{ {