aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-01-15 14:23:23 -0800
committerMarge Bot <[email protected]>2020-02-01 02:40:22 +0000
commit4a7a6c9ef0eb6b26d8410591353142207689d085 (patch)
tree5b1b4bff50240b010fde769357885208d0984ccf /src/freedreno
parent0f78c32492ed096649b015a4967d6d56c18dd14a (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
Diffstat (limited to 'src/freedreno')
-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;