summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
diff options
context:
space:
mode:
authorKarol Herbst <kherbst@redhat.com>2018-06-30 23:09:27 +0200
committerIlia Mirkin <imirkin@alum.mit.edu>2019-02-06 19:35:57 -0500
commit815a8e59c6d462a7008653ea9e3010d40b6ba589 (patch)
tree4b1355b4119f726557b8519fe4714ab6413aaada /src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
parent12669d29705a26478aa691cb454149628be65f17 (diff)
gm107/ir: add fp64 rcp
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: 19.0 <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp2
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 7d28c5f6e52..5d69ce2ab7c 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
@@ -129,7 +129,7 @@ NVC0LegalizeSSA::handleRCPRSQ(Instruction *i)
bld.mkSplit(src, 4, i->getSrc(0));
int chip = prog->getTarget()->getChipset();
- if (chip >= NVISA_GK104_CHIPSET && chip < NVISA_GM107_CHIPSET) {
+ if (chip >= NVISA_GK104_CHIPSET && (i->op == OP_RCP || chip < NVISA_GM107_CHIPSET)) {
handleRCPRSQLib(i, src);
return;
}