diff options
author | Jason Ekstrand <[email protected]> | 2014-11-11 12:16:55 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:01 -0800 |
commit | 20a581260633cb6d0d8ca571e7f3e886298a5733 (patch) | |
tree | eec8d244a2621a19da777c66e41544cf19aa9742 /src/glsl/nir/nir_opcodes.h | |
parent | 02ee1d22a1c64695cc7d6e9eee441e735a3bf6ad (diff) |
nir: Add a fused multiply-add peephole
Diffstat (limited to 'src/glsl/nir/nir_opcodes.h')
-rw-r--r-- | src/glsl/nir/nir_opcodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_opcodes.h b/src/glsl/nir/nir_opcodes.h index 988f691f8d4..35d4634ec9a 100644 --- a/src/glsl/nir/nir_opcodes.h +++ b/src/glsl/nir/nir_opcodes.h @@ -307,6 +307,7 @@ BINOP_HORIZ(vec2, 2, nir_type_unsigned, 1, nir_type_unsigned, 1, nir_type_unsign ARR(src1_size, src2_size, src3_size), \ ARR(nir_type_unsigned, nir_type_unsigned, nir_type_unsigned)) +/* fma(a, b, c) = (a * b) + c */ TRIOP(ffma, nir_type_float) TRIOP(flrp, nir_type_float) |