From: Ilia Mirkin Date: Thu, 18 Jun 2015 02:18:09 +0000 (-0400) Subject: nvc0/ir: can't have a join on a load with an indirect source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36e3eb6a957f8f20ed187ec88a067fc65cb81432;p=mesa.git nvc0/ir: can't have a join on a load with an indirect source Triggers an INVALID_OPCODE warning on GK208. Seems rare enough to not warrant verification on other chips. Fixes the new piglits: ubo_array_indexing/fs-nonuniform-control-flow.shader_test ubo_array_indexing/vs-nonuniform-control-flow.shader_test Signed-off-by: Ilia Mirkin Cc: "10.5 10.6" --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index b7fcd56724d..ae739eeda83 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -2288,7 +2288,7 @@ FlatteningPass::visit(BasicBlock *bb) insn->op != OP_LINTERP && // probably just nve4 insn->op != OP_PINTERP && // probably just nve4 ((insn->op != OP_LOAD && insn->op != OP_STORE) || - typeSizeof(insn->dType) <= 4) && + (typeSizeof(insn->dType) <= 4 && !insn->src(0).isIndirect(0))) && !insn->isNop()) { insn->join = 1; bb->remove(bb->getExit());