microsoft/compiler: correct dxil fma opcode
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 6 Jan 2021 07:51:18 +0000 (08:51 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Jan 2021 15:09:23 +0000 (15:09 +0000)
commitc2fa965cc34668bba2256dbe2a01ff9e8e91b3f3
tree680460a2cff939f94f3c8cbf450db05c5a5206fe
parent317ec8b5011d7d610cc0b8c05f5be28a7d818d42
microsoft/compiler: correct dxil fma opcode

When I originally added the FFMA opcode here, I added the FMAD opcode
instead of the FMA opcode. The reason for this is that it works on
32-bit values as well, so that seemed like a better fit.

But that's not correct, as the FMA opcode isn't a fused operation, so
let's correct the opcode.

This isn't currently in use, because we currently lower away all ffma
opcodes on the NIR level, but that's about to change.

While we're at it, let's also update the opcode name to match the DXIL
documentation.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8349>
src/microsoft/compiler/nir_to_dxil.c