freedreno/sched: reset delay counters at start of block

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5280>
This commit is contained in:
Rob Clark 2020-05-25 12:08:03 -07:00 committed by Marge Bot
parent 6717fd5719
commit f598786775
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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