rsx/vp: Properly initialize output registers.

- All registers tested on hw show contents to be 0, 0, 0, 1.
  Make default output registers match this pattern.
This commit is contained in:
kd-11 2020-01-04 15:02:59 +03:00 committed by kd-11
parent b88fb43acc
commit 7f09def94e

View file

@ -66,7 +66,7 @@ std::string VertexProgramDecompiler::GetDST(bool is_sca)
const auto reg_type = getFloatTypeName(4);
const auto reg_name = std::string("dst_reg") + std::to_string(d3.dst);
const auto default_value = (d3.dst == 0 ? reg_type + "(0.0f, 0.0f, 0.0f, 1.0f)" : reg_type + "(0.0, 0.0, 0.0, 0.0)");
const auto default_value = reg_type + "(0.0f, 0.0f, 0.0f, 1.0f)";
ret += m_parr.AddParam(PF_PARAM_OUT, reg_type, reg_name, default_value) + mask;
}
}