mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
rsx/fp: Give abs higher prio as it invalidates any precision checks
This commit is contained in:
parent
f5addbf751
commit
df7d52b177
1 changed files with 1 additions and 1 deletions
|
@ -399,8 +399,8 @@ template<typename T> std::string FragmentProgramDecompiler::GetSRC(T src)
|
||||||
if (strncmp(swizzle.c_str(), f, 4) != 0) ret += "." + swizzle;
|
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)
|
//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 (src.abs) ret = "abs(" + ret + ")";
|
||||||
|
if (src1.input_prec_mod) ret = ClampValue(ret, src1.input_prec_mod);
|
||||||
if (src.neg) ret = "-" + ret;
|
if (src.neg) ret = "-" + ret;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue