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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user