mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
ir3/legalize: fix off-by-one error in kill_sched
kill_sched would consider blocks that start right after the current one as starting before it due to an off-by-one error. This resulted in unnecessary branches being inserted. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34110>
This commit is contained in:
parent
8fe25223bd
commit
fb6d933827
1 changed files with 1 additions and 1 deletions
|
|
@ -1392,7 +1392,7 @@ kill_sched(struct ir3 *ir, struct ir3_shader_variant *so)
|
|||
|
||||
foreach_block_rev (block, &ir->block_list) {
|
||||
for (unsigned i = 0; i < 2 && block->successors[i]; i++) {
|
||||
if (block->successors[i]->start_ip <= block->end_ip)
|
||||
if (block->successors[i]->start_ip < block->end_ip)
|
||||
always_ends = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue