From: Rob Clark Date: Thu, 14 May 2020 23:02:55 +0000 (-0700) Subject: freedreno/ir3/legalize: report progress X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c953794cd6e4a5767b0739b1effc48b066e2a29c;p=mesa.git freedreno/ir3/legalize: report progress It always does something. Just return true for IR3_PASS() Signed-off-by: Rob Clark Part-of: --- 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; }