freedreno/ir3: fix infinite recursion in sched

One more case we need to handle.  One of the src instructions for the
indirect could also end up being ourself.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark
2015-03-18 09:51:57 -04:00
parent 62cc003b7d
commit aee26d292f
@@ -283,7 +283,7 @@ static int trysched(struct ir3_sched_ctx *ctx,
* on ourself (ie. avoid infinite recursion):
*/
foreach_ssa_src(src, indirect) {
if (src == instr)
if ((src == instr) || (src->address == instr))
continue;
delay = trysched(ctx, src);
if (delay)