freedreno/ir3: number instructions from one

ra_block_compute_live_ranges() treats zero as "not yet defined", so
probably best to not let this be a valid instruction #

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
This commit is contained in:
Rob Clark 2020-01-15 14:23:23 -08:00 committed by Marge Bot
parent 0f78c32492
commit 4a7a6c9ef0
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ ir3_clear_mark(struct ir3 *ir)
unsigned
ir3_count_instructions(struct ir3 *ir)
{
unsigned cnt = 0;
unsigned cnt = 1;
foreach_block (block, &ir->block_list) {
block->start_ip = cnt;
block->end_ip = cnt;