mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
rsx/fp: Give abs higher prio as it invalidates any precision checks
This commit is contained in:
parent
f5addbf751
commit
df7d52b177
@ -399,8 +399,8 @@ template<typename T> std::string FragmentProgramDecompiler::GetSRC(T src)
|
||||
if (strncmp(swizzle.c_str(), f, 4) != 0) ret += "." + swizzle;
|
||||
|
||||
//Warning: Modifier order matters. e.g neg should be applied after precision clamping (tested with Naruto UNS)
|
||||
if (src1.input_prec_mod) ret = ClampValue(ret, src1.input_prec_mod);
|
||||
if (src.abs) ret = "abs(" + ret + ")";
|
||||
if (src1.input_prec_mod) ret = ClampValue(ret, src1.input_prec_mod);
|
||||
if (src.neg) ret = "-" + ret;
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user