mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
ir3/postsched: update legalize state for terminators
Terminators might need sync flags/delays and hence have an effect on scheduling decisions. Totals from 13218 (7.50% of 176258) affected shaders: Instrs: 12241764 -> 12237098 (-0.04%); split: -0.14%, +0.10% CodeSize: 23483966 -> 23479174 (-0.02%); split: -0.08%, +0.06% NOPs: 2594291 -> 2589625 (-0.18%); split: -0.67%, +0.49% (ss): 381711 -> 381252 (-0.12%); split: -0.41%, +0.29% (sy): 167625 -> 165596 (-1.21%); split: -1.21%, +0.00% (ss)-stall: 1645060 -> 1615134 (-1.82%); split: -2.11%, +0.29% (sy)-stall: 4920750 -> 4835994 (-1.72%); split: -1.89%, +0.17% Preamble Instrs: 2478730 -> 2478732 (+0.00%); split: -0.00%, +0.00% Cat0: 2881982 -> 2877316 (-0.16%); split: -0.60%, +0.44% Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40952>
This commit is contained in:
parent
5982deb48b
commit
b730dff54e
1 changed files with 6 additions and 1 deletions
|
|
@ -763,8 +763,13 @@ sched_block(struct ir3_postsched_ctx *ctx, struct ir3_block *block)
|
|||
|
||||
sched_dag_destroy(ctx);
|
||||
|
||||
if (terminator)
|
||||
if (terminator) {
|
||||
terminator->flags |= ir3_required_sync_flags(
|
||||
&bd->legalize_state, ctx->v->compiler, terminator);
|
||||
ir3_update_legalize_state(&bd->legalize_state, ctx->v->compiler,
|
||||
terminator);
|
||||
list_addtail(&terminator->node, &block->instr_list);
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue