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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user