aco: gfx940 has no mad f32 instruction

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35655>
This commit is contained in:
nihui 2025-06-26 11:49:55 +08:00 committed by Marge Bot
parent 37bea3fea7
commit 8c4f0b1353

View file

@ -3910,7 +3910,8 @@ combine_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
(mad32 && !legacy && !mad_mix && ctx.program->dev.has_fast_fma32) ||
(mad_mix && ctx.program->dev.fused_mad_mix);
bool has_mad = mad_mix ? !ctx.program->dev.fused_mad_mix
: ((mad32 && ctx.program->gfx_level < GFX10_3) ||
: ((mad32 && ctx.program->gfx_level < GFX10_3 &&
ctx.program->family != CHIP_GFX940) ||
(mad16 && ctx.program->gfx_level <= GFX9));
bool can_use_fma = has_fma && (!(info.parent_instr->definitions[0].isPrecise() ||
instr->definitions[0].isPrecise()) ||