[D3D12] Fixed stability issues (Graphics lost) on AMD GPUs

- This includes infamous 6000 series crashes and crashes on newer drivers for 7000 and 9000 series

Issue was caused by returning invalid (negative) address from MaxAs opcode.

Currently it is unknown if this behaviour is correct and should be checked on console, so slight graphical issues might be present
This commit is contained in:
Gliniak 2025-04-28 23:08:05 +02:00
parent 900a02efff
commit 674870d881
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ void DxbcShaderTranslator::ProcessScalarAluOperation(
}
a_.OpMax(dxbc::Dest::R(system_temp_ps_pc_p0_a0_, 0b1000),
dxbc::Src::R(system_temp_ps_pc_p0_a0_, dxbc::Src::kWWWW),
dxbc::Src::LF(-256.0f));
dxbc::Src::LF(0.0f));
a_.OpMin(dxbc::Dest::R(system_temp_ps_pc_p0_a0_, 0b1000),
dxbc::Src::R(system_temp_ps_pc_p0_a0_, dxbc::Src::kWWWW),
dxbc::Src::LF(255.0f));