aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c
index 18c2936caa7..b9bcf3b08bd 100644
--- a/src/freedreno/ir3/ir3.c
+++ b/src/freedreno/ir3/ir3.c
@@ -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;