diff options
author | Pierre Moreau <pierre.morrow@free.fr> | 2016-03-19 17:56:03 +0100 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-03-19 15:59:52 -0400 |
commit | 9184d9a0bbe8a8b88d676a20f95d66ceee9eaf21 (patch) | |
tree | 4dad93a56997d4c4620a04083e5c9bff34ff7a64 | |
parent | 789e0965941533b0eeb2bc822012985e7c36d9c9 (diff) | |
download | external_mesa3d-9184d9a0bbe8a8b88d676a20f95d66ceee9eaf21.zip external_mesa3d-9184d9a0bbe8a8b88d676a20f95d66ceee9eaf21.tar.gz external_mesa3d-9184d9a0bbe8a8b88d676a20f95d66ceee9eaf21.tar.bz2 |
nvc0/ir: Use double constant in handleSQRT
Fixes: a100d89d0998 (nv50,nvc0: Fix invalid constant.)
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index 6f1ebef..c88a269 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -1782,7 +1782,7 @@ NVC0LoweringPass::handleSQRT(Instruction *i) { if (i->dType == TYPE_F64) { Value *pred = bld.getSSA(1, FILE_PREDICATE); - Value *zero = bld.loadImm(NULL, 0); + Value *zero = bld.loadImm(NULL, 0.0); Value *dst = bld.getSSA(8); bld.mkOp1(OP_RSQ, i->dType, dst, i->getSrc(0)); bld.mkCmp(OP_SET, CC_LE, i->dType, pred, i->dType, i->getSrc(0), zero); |