We have native FMA which works for graphics usage (unlike Midgard where
it's really reserved for compute for various reasons), let's use it.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>
case nir_op_u2f64:
return BI_CONVERT;
+ case nir_op_ffma:
case nir_op_fmul:
return BI_FMA;
void bifrost_compile_shader_nir(nir_shader *nir, panfrost_program *program, unsigned product_id);
static const nir_shader_compiler_options bifrost_nir_options = {
- .lower_ffma = true,
.lower_scmp = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_bitfield_extract_to_shifts = true,
.vectorize_io = true,
+ .fuse_ffma = true,
.use_interpolated_input_intrinsics = true
};