mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
rsx: Copypasta fix
- r1 is always float4 never half4. Its a full-width register unlike the other outputs which are optionally half-width.
This commit is contained in:
parent
f1d474f932
commit
e04b6cd7c0
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@ std::string FragmentProgramDecompiler::BuildCode()
|
||||||
if (m_ctrl & CELL_GCM_SHADER_CONTROL_DEPTH_EXPORT)
|
if (m_ctrl & CELL_GCM_SHADER_CONTROL_DEPTH_EXPORT)
|
||||||
{
|
{
|
||||||
// Hw tests show that the depth export register is default-initialized to 0 and not wpos.z!!
|
// Hw tests show that the depth export register is default-initialized to 0 and not wpos.z!!
|
||||||
m_parr.AddParam(PF_PARAM_NONE, float4_type, "r1", init_value);
|
m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), "r1", init_value);
|
||||||
shader_is_valid = (!!temp_registers[1].h1_writes);
|
shader_is_valid = (!!temp_registers[1].h1_writes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue