GS/HW: Round alpha values for indexed sample of RTA

This commit is contained in:
Stenzek 2024-04-28 20:12:34 +10:00 committed by lightningterror
parent 77a03498c1
commit aa48256010
5 changed files with 5 additions and 5 deletions

View File

@ -339,7 +339,7 @@ uint4 sample_4_index(float4 uv, float uv_w)
if (PS_RTA_SRC_CORRECTION)
{
i = uint4(c * 128.55f); // Denormalize value
i = uint4(round(c * 128.25f)); // Denormalize value
}
else
{

View File

@ -285,7 +285,7 @@ uvec4 sample_4_index(vec4 uv)
c.w = sample_c(uv.zw).a;
#if PS_RTA_SRC_CORRECTION
uvec4 i = uvec4(c * 128.55f); // Denormalize value
uvec4 i = uvec4(round(c * 128.25f)); // Denormalize value
#else
uvec4 i = uvec4(c * 255.5f); // Denormalize value
#endif

View File

@ -532,7 +532,7 @@ uvec4 sample_4_index(vec4 uv)
// Denormalize value
#if PS_RTA_SRC_CORRECTION
uvec4 i = uvec4(c * 128.55f);
uvec4 i = uvec4(round(c * 128.25f));
#else
uvec4 i = uvec4(c * 255.5f);
#endif

View File

@ -492,7 +492,7 @@ struct PSMain
if (PS_RTA_SRC_CORRECTION)
{
i = uint4(c * 128.55f); // Denormalize value
i = uint4(round(c * 128.25f)); // Denormalize value
}
else
{

View File

@ -3,4 +3,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 = 47;
static constexpr u32 SHADER_CACHE_VERSION = 48;