The TGSI backend avoids TGSI_OPCODE_FMA (and thus OP_FMA) pre-nvc0,
replacing it with TGSI_OPCODE_MAD in that case.
Noticed when looking at native-NIR stats and finding that load
optimization wasn't taking place on the unsupported opcode.
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15543>
case nir_op_ffloor:
return OP_FLOOR;
case nir_op_ffma:
+ /* No FMA op pre-nvc0 */
+ if (info->target < 0xc0)
+ return OP_MAD;
return OP_FMA;
case nir_op_flog2:
return OP_LG2;