diff options
author | Jason Ekstrand <[email protected]> | 2017-05-12 11:55:51 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-05-26 07:58:01 -0700 |
commit | 302c0488cf37c145a538b7560c2aeea1b75e6890 (patch) | |
tree | abd18444dfecd9145f8258146511bd3b432d1b59 /src/intel/blorp | |
parent | 675ec434f38bb4b8084a6751ff1ee205be408247 (diff) |
intel/blorp: Don't use ffma directly
It isn't supported prior to gen6 and, on gen6+, NIR will fuse the fmul
and fadd into an ffma automatically for us anyway.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r-- | src/intel/blorp/blorp_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index 23e33defa7b..75fc3f5080b 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -135,7 +135,7 @@ blorp_blit_apply_transform(nir_builder *b, nir_ssa_def *src_pos, nir_ssa_def *mul = nir_vec2(b, nir_channel(b, coord_transform, 0), nir_channel(b, coord_transform, 2)); - return nir_ffma(b, src_pos, mul, offset); + return nir_fadd(b, nir_fmul(b, src_pos, mul), offset); } static inline void |