diff options
author | Rob Clark <[email protected]> | 2020-05-14 16:02:55 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-19 16:06:17 +0000 |
commit | c953794cd6e4a5767b0739b1effc48b066e2a29c (patch) | |
tree | 43a3c2def58e77c10681c15869be5754d9e7594e /src/freedreno | |
parent | c3630c9d29b7bc7dbdf7d914d39782b4d02c5520 (diff) |
freedreno/ir3/legalize: report progress
It always does something. Just return true for IR3_PASS()
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3.h | 2 | ||||
-rw-r--r-- | 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; } |