rsx: Properly implement 8-bit signed renormalization for textures

This commit is contained in:
kd-11 2024-06-02 04:55:30 +03:00 committed by kd-11
parent 0b22423ab8
commit 14e1214645
7 changed files with 63 additions and 19 deletions

View file

@ -68,12 +68,12 @@ void FragmentProgramDecompiler::SetDst(std::string code, u32 flags)
if (dst.fp16 && device_props.has_native_half_support && !(flags & OPFLAGS::skip_type_cast))
{
// Cast to native data type
code = ClampValue(code, 1);
code = ClampValue(code, RSX_FP_PRECISION_HALF);
}
if (dst.saturate)
{
code = ClampValue(code, 4);
code = ClampValue(code, RSX_FP_PRECISION_SATURATE);
}
else if (dst.prec)
{