diff options
author | Ilia Mirkin <[email protected]> | 2015-12-10 12:18:51 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-01-08 11:54:09 +0200 |
commit | 070dbfa8106ff8263ac547517f084b25a182b1a4 (patch) | |
tree | 45d67226c57ce98a4cc26f8049202885e615c17b | |
parent | ceb00fb1b9aefeca8ef36631786d343c0612ca83 (diff) |
nv50/ir: can't have predication and immediates
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: "11.0 11.1" <[email protected]>
(cherry picked from commit 6aca7fecb7f7b6c67cf0315e781060a8d1d4b704)
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 3 |
1 files changed, 3 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 bb7f4911c21..fa6a04bc589 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -2659,6 +2659,9 @@ NV50PostRaConstantFolding::visit(BasicBlock *bb) i->getSrc(0)->reg.data.id >= 64) break; + if (i->getPredicate()) + break; + def = i->getSrc(1)->getInsn(); if (def && def->op == OP_MOV && def->src(0).getFile() == FILE_IMMEDIATE) { vtmp = i->getSrc(1); |