mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
rsx/fp/vp: Epsilon value is too large!
- Original epsilon value was 1.E-10 which nvidia linux driver could not read properly -- Restores the original value represented in decimal notation
This commit is contained in:
parent
c05d164eee
commit
648fc92184
2 changed files with 3 additions and 3 deletions
|
@ -195,12 +195,12 @@ std::string FragmentProgramDecompiler::AddX2d()
|
|||
//Failure to catch causes infinite values since theres alot of rcp(0)
|
||||
std::string FragmentProgramDecompiler::NotZero(const std::string& code)
|
||||
{
|
||||
return "(max(abs(" + code + "), 0.000001) * sign(" + code + "))";
|
||||
return "(max(abs(" + code + "), 0.0000000001) * sign(" + code + "))";
|
||||
}
|
||||
|
||||
std::string FragmentProgramDecompiler::NotZeroPositive(const std::string& code)
|
||||
{
|
||||
return "max(abs(" + code + "), 0.000001)";
|
||||
return "max(abs(" + code + "), 0.0000000001)";
|
||||
}
|
||||
|
||||
std::string FragmentProgramDecompiler::ClampValue(const std::string& code, u32 precision)
|
||||
|
|
|
@ -376,7 +376,7 @@ void VertexProgramDecompiler::SetDSTSca(const std::string& code)
|
|||
|
||||
std::string VertexProgramDecompiler::NotZeroPositive(const std::string& code)
|
||||
{
|
||||
return "max(" + code + ", 0.000001)";
|
||||
return "max(" + code + ", 0.0000000001)";
|
||||
}
|
||||
|
||||
std::string VertexProgramDecompiler::BuildFuncBody(const FuncInfo& func)
|
||||
|
|
Loading…
Add table
Reference in a new issue