From: Rob Clark Date: Mon, 25 May 2020 19:08:03 +0000 (-0700) Subject: freedreno/sched: reset delay counters at start of block X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f598786775f0490333c69065bd42a81d9e71d878;p=mesa.git freedreno/sched: reset delay counters at start of block Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/ir3/ir3_postsched.c b/src/freedreno/ir3/ir3_postsched.c index 91283cb5ea1..fd36fdc0cdd 100644 --- a/src/freedreno/ir3/ir3_postsched.c +++ b/src/freedreno/ir3/ir3_postsched.c @@ -581,6 +581,8 @@ static void sched_block(struct ir3_postsched_ctx *ctx, struct ir3_block *block) { ctx->block = block; + ctx->tex_delay = 0; + ctx->sfu_delay = 0; /* move all instructions to the unscheduled list, and * empty the block's instruction list (to which we will diff --git a/src/freedreno/ir3/ir3_sched.c b/src/freedreno/ir3/ir3_sched.c index bd5471d7f02..6448987e3c2 100644 --- a/src/freedreno/ir3/ir3_sched.c +++ b/src/freedreno/ir3/ir3_sched.c @@ -979,6 +979,8 @@ sched_block(struct ir3_sched_ctx *ctx, struct ir3_block *block) ctx->addr0 = NULL; ctx->addr1 = NULL; ctx->pred = NULL; + ctx->tex_delay = 0; + ctx->sfu_delay = 0; /* move all instructions to the unscheduled list, and * empty the block's instruction list (to which we will