projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675ec43
)
intel/blorp: Don't use ffma directly
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 12 May 2017 18:55:51 +0000
(11:55 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 26 May 2017 14:58:01 +0000
(07:58 -0700)
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>
src/intel/blorp/blorp_blit.c
patch
|
blob
|
history
diff --git
a/src/intel/blorp/blorp_blit.c
b/src/intel/blorp/blorp_blit.c
index 23e33defa7beb22a18e2601c3873ad898e975630..75fc3f5080bfe95bcc7b653ae3882bc2f7222a9d 100644
(file)
--- 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_f
fma(b, src_pos, mul
, offset);
+ return nir_f
add(b, nir_fmul(b, src_pos, mul)
, offset);
}
static inline void