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 <topi.pohjolainen@intel.com>
This commit is contained in:
Jason Ekstrand 2017-05-12 11:55:51 -07:00
parent 675ec434f3
commit 302c0488cf
1 changed files with 1 additions and 1 deletions

View File

@ -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