mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Small fixes
This commit is contained in:
parent
4b8d6b6919
commit
d93ce95a36
3 changed files with 16 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ void GLFragmentDecompilerThread::AddCode(std::string code, bool append_mask)
|
|||
if(!src0.exec_if_eq && !src0.exec_if_gr && !src0.exec_if_lt) return;
|
||||
|
||||
const std::string mask = GetMask().c_str();
|
||||
std::string cond = "";
|
||||
std::string cond;
|
||||
|
||||
if(!src0.exec_if_gr || !src0.exec_if_lt || !src0.exec_if_eq)
|
||||
{
|
||||
|
|
@ -70,26 +70,22 @@ void GLFragmentDecompilerThread::AddCode(std::string code, bool append_mask)
|
|||
code = "clamp(" + code + ", 0.0, 1.0)";
|
||||
}
|
||||
|
||||
if(!dst.no_dest)
|
||||
{
|
||||
std::string dest;
|
||||
std::string dest;
|
||||
|
||||
if(dst.no_dest)
|
||||
{
|
||||
if(dst.set_cond)
|
||||
{
|
||||
dest = m_parr.AddParam(PARAM_NONE , "vec4", std::string(dst.fp16 ? "hc" : "rc") + std::to_string(src0.cond_reg_index));
|
||||
}
|
||||
else
|
||||
{
|
||||
dest = AddReg(dst.dest_reg, dst.fp16);
|
||||
}
|
||||
|
||||
code = cond + dest + mask + " = " + code + (append_mask ? mask : "");
|
||||
}
|
||||
else
|
||||
{
|
||||
code = cond + code + (append_mask ? mask : "");
|
||||
dest = AddReg(dst.dest_reg, dst.fp16);
|
||||
}
|
||||
|
||||
code = cond + (dest.length() ? dest + mask + " = " : "") + code + (append_mask ? mask : "");
|
||||
|
||||
main += "\t" + code + ";\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue