mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
37bea3fea7
commit
8c4f0b1353
1 changed files with 2 additions and 1 deletions
|
|
@ -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()) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue