From c953794cd6e4a5767b0739b1effc48b066e2a29c Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 14 May 2020 16:02:55 -0700 Subject: [PATCH] freedreno/ir3/legalize: report progress It always does something. Just return true for IR3_PASS() Signed-off-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3.h | 2 +- src/freedreno/ir3/ir3_legalize.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index e40cd0b374c..4140607962b 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -1217,7 +1217,7 @@ struct ir3_ra_reg_set * ir3_ra_alloc_reg_set(struct ir3_compiler *compiler); int ir3_ra(struct ir3_shader_variant *v, struct ir3_instruction **precolor, unsigned nprecolor); /* legalize: */ -void ir3_legalize(struct ir3 *ir, struct ir3_shader_variant *so, int *max_bary); +bool ir3_legalize(struct ir3 *ir, struct ir3_shader_variant *so, int *max_bary); static inline bool ir3_has_latency_to_hide(struct ir3 *ir) diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c index 2b1f3b94d8b..a143c4dc2f9 100644 --- a/src/freedreno/ir3/ir3_legalize.c +++ b/src/freedreno/ir3/ir3_legalize.c @@ -707,7 +707,7 @@ nop_sched(struct ir3 *ir) } } -void +bool ir3_legalize(struct ir3 *ir, struct ir3_shader_variant *so, int *max_bary) { struct ir3_legalize_ctx *ctx = rzalloc(ir, struct ir3_legalize_ctx); @@ -747,4 +747,6 @@ ir3_legalize(struct ir3 *ir, struct ir3_shader_variant *so, int *max_bary) mark_xvergence_points(ir); ralloc_free(ctx); + + return true; } -- 2.30.2