[Mesa-dev] [PATCH v3 14/19] nir/vtn/opencl: support fma
Karol Herbst
kherbst at redhat.com
Fri Mar 23 19:33:51 UTC 2018
Signed-off-by: Karol Herbst <kherbst at 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
More information about the mesa-dev
mailing list