RSX: Fix for default value of temp reg

This commit is contained in:
vlj 2015-05-23 00:04:42 +02:00 committed by Vincent Lejeune
parent 727f54dd32
commit 312ff7e8f5
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ std::string FragmentProgramDecompiler::GetMask()
std::string FragmentProgramDecompiler::AddReg(u32 index, int fp16) std::string FragmentProgramDecompiler::AddReg(u32 index, int fp16)
{ {
return m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), std::string(fp16 ? "h" : "r") + std::to_string(index), getFloatTypeName(4) + "(0.0)"); return m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), std::string(fp16 ? "h" : "r") + std::to_string(index), getFloatTypeName(4) + "(0., 0., 0., 0.)");
} }
bool FragmentProgramDecompiler::HasReg(u32 index, int fp16) bool FragmentProgramDecompiler::HasReg(u32 index, int fp16)

View File

@ -152,7 +152,7 @@ void VertexProgramDecompiler::SetDST(bool is_sca, std::string value)
if (d0.cond_update_enable_0 && d0.cond_update_enable_1) if (d0.cond_update_enable_0 && d0.cond_update_enable_1)
{ {
dest = m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), "cc" + std::to_string(d0.cond_reg_sel_1), getFloatTypeName(4) + "(0.0)") + mask; dest = m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), "cc" + std::to_string(d0.cond_reg_sel_1), getFloatTypeName(4) + "(0., 0., 0., 0.)") + mask;
} }
else if (d3.dst != 0x1f || (is_sca ? d3.sca_dst_tmp != 0x3f : d0.dst_tmp != 0x3f)) else if (d3.dst != 0x1f || (is_sca ? d3.sca_dst_tmp != 0x3f : d0.dst_tmp != 0x3f))
{ {