radv,aco: implement nir_op_ffma

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9805>
This commit is contained in:
Rhys Perry
2021-03-24 17:17:38 +00:00
committed by Marge Bot
parent c5f02a1cd3
commit 165ca5088b
4 changed files with 32 additions and 3 deletions
+1 -3
View File
@@ -3112,9 +3112,7 @@ combine_vop3p(opt_ctx& ctx, aco_ptr<Instruction>& instr)
/* check for fneg modifiers */
if (instr_info.can_use_input_modifiers[(int)instr->opcode]) {
/* at this point, we only have 2-operand instructions */
assert(instr->operands.size() == 2);
for (unsigned i = 0; i < 2; i++) {
for (unsigned i = 0; i < instr->operands.size(); i++) {
Operand& op = instr->operands[i];
if (!op.isTemp())
continue;