diff options
author | Ilia Mirkin <[email protected]> | 2017-01-14 18:55:25 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-01-23 20:37:14 -0500 |
commit | 8c764a2321ad51dacd5538b0a59f3ca446d80747 (patch) | |
tree | 54263f9f4c45958d7eaf8ca2f9da9de3d181bdc4 /src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | |
parent | e1346f25bf6e40496c8db868fe03e20b900c41e4 (diff) |
nvc0: add support for MUL_ZERO_WINS property
This sets the dnz flag on all the relevant multiplication operations. At
emission time, this will only be supported by nvc0+, so nv50 will need a
different solution.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index 04b6af2471b..c99680613f1 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -1730,6 +1730,7 @@ AlgebraicOpt::tryADDToMADOrSAD(Instruction *add, operation toOp) add->op = toOp; add->subOp = src->getInsn()->subOp; // potentially mul-high + add->dnz = src->getInsn()->dnz; add->dType = src->getInsn()->dType; // sign matters for imad hi add->sType = src->getInsn()->sType; |