mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
rsx: Properly implement 8-bit signed renormalization for textures
This commit is contained in:
parent
0b22423ab8
commit
14e1214645
7 changed files with 63 additions and 19 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue