aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-05-25 12:08:03 -0700
committerMarge Bot <[email protected]>2020-06-16 20:56:15 +0000
commitf598786775f0490333c69065bd42a81d9e71d878 (patch)
treed1808eba48233134f1e681ba84dfe4aa8f5c3f2e
parent6717fd57192f84495a18523623d5f903fb09da3c (diff)
freedreno/sched: reset delay counters at start of block
Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5280>
-rw-r--r--src/freedreno/ir3/ir3_postsched.c2
-rw-r--r--src/freedreno/ir3/ir3_sched.c2
2 files changed, 4 insertions, 0 deletions
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