rsx: Shader decompiler cleanup and improvements

- Improve support for float16_t by minimizing mixed inputs to functions
(ambiguous overloads)
- Minimize amount of downcasts in code by using opcode flags
- Re-enable float16_t support for vulkan
This commit is contained in:
kd-11 2019-04-13 13:20:50 +03:00 committed by kd-11
parent a668560c68
commit 06a85f00d1
11 changed files with 162 additions and 113 deletions

View file

@ -241,7 +241,8 @@ std::string VertexProgramDecompiler::Format(const std::string& code)
}
},
{ "$cond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetCond), this) },
{ "$ifbcond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetOptionalBranchCond), this) }
{ "$ifbcond", std::bind(std::mem_fn(&VertexProgramDecompiler::GetOptionalBranchCond), this) },
{ "$Ty", [this](){ return getFloatTypeName(4); } }
};
return fmt::replace_all(code, repl_list);