mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-15 09:17:59 -05:00
shader_recompiler: translate f64 to f32 when unsupported on host
This commit is contained in:
@ -280,6 +280,9 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
|
||||
RemoveUnreachableBlocks(program);
|
||||
|
||||
// Replace instructions before the SSA rewrite
|
||||
if (!host_info.support_float64) {
|
||||
Optimization::LowerFp64ToFp32(program);
|
||||
}
|
||||
if (!host_info.support_float16) {
|
||||
Optimization::LowerFp16ToFp32(program);
|
||||
}
|
||||
|
Reference in New Issue
Block a user