mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-03 17:38:25 +02:00
aco/optimizer: only create v_fma_legacy_f32 when denorms are disabled
For some reasons, this instruction always flushes denorms. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41649>
This commit is contained in:
parent
ea54dea3a4
commit
19e56904f2
1 changed files with 1 additions and 1 deletions
|
|
@ -4308,7 +4308,7 @@ combine_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
add_opt(v_mul_f32, v_fma_f32, 0x3, "120", create_fma_cb);
|
||||
add_opt(s_mul_f32, v_fma_f32, 0x3, "120", create_fma_cb);
|
||||
}
|
||||
if (ctx.program->gfx_level >= GFX10_3)
|
||||
if (ctx.program->gfx_level >= GFX10_3 && ctx.fp_mode.denorm32 == 0)
|
||||
add_opt(v_mul_legacy_f32, v_fma_legacy_f32, 0x3, "120", create_fma_cb);
|
||||
} else if (info.opcode == aco_opcode::v_add_f16) {
|
||||
if (ctx.program->gfx_level < GFX9 && ctx.fp_mode.denorm16_64 == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue