Signed-off-by: Karol Herbst <kher...@redhat.com>
---
 src/compiler/spirv/vtn_opencl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/spirv/vtn_opencl.c b/src/compiler/spirv/vtn_opencl.c
index 3c5ecd22452..723a7edf9c2 100644
--- a/src/compiler/spirv/vtn_opencl.c
+++ b/src/compiler/spirv/vtn_opencl.c
@@ -58,6 +58,7 @@ static nir_op
 nir_alu_op_for_opencl_opcode(struct vtn_builder *b, enum OpenCLstd opcode)
 {
    switch (opcode) {
+   case Fma: return nir_op_ffma;
    case SHadd: return nir_op_ihadd;
    case UHadd: return nir_op_uhadd;
    default:
@@ -236,6 +237,7 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, 
uint32_t ext_opcode,
    switch (ext_opcode) {
    case SHadd:
    case UHadd:
+   case Fma:
       handle_instr(b, ext_opcode, w, count, handle_alu);
       return true;
    case Vloadn:
-- 
2.14.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to