From c8e351ee3af63aad28d572cd5efb307a8e65e03d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 27 Feb 2019 15:57:23 -0500 Subject: [PATCH] freedreno/ir3: include nopN in expanded instruction count Signed-off-by: Rob Clark --- src/freedreno/ir3/ir3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index ed14c343faa..ee13291fb87 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -873,7 +873,7 @@ void * ir3_assemble(struct ir3 *shader, struct ir3_info *info, int ret = emit[opc_cat(instr->opc)](instr, dwords, info); if (ret) goto fail; - info->instrs_count += 1 + instr->repeat; + info->instrs_count += 1 + instr->repeat + instr->nop; dwords += 2; if (instr->flags & IR3_INSTR_SS) -- 2.30.2