mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
rsx: Decompiler fixups for conditional execution
- Cond actually obeys vector mask
This commit is contained in:
parent
f9aea076ae
commit
fe6ff8622a
3 changed files with 16 additions and 2 deletions
|
@ -310,7 +310,9 @@ void VertexProgramDecompiler::AddCodeCond(const std::string& dst, const std::str
|
|||
}
|
||||
|
||||
// NOTE: dst = _select(dst, src, cond) is equivalent to dst = cond? src : dst;
|
||||
const auto cond = ShaderVariable(dst).match_size(GetRawCond());
|
||||
const auto dst_var = ShaderVariable(dst);
|
||||
const auto raw_cond = dst_var.add_mask(GetRawCond());
|
||||
const auto cond = dst_var.match_size(raw_cond);
|
||||
AddCode(dst + " = _select(" + dst + ", " + src + ", " + cond + ");");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue