freedreno/ir3: include nopN in expanded instruction count
authorRob Clark <robdclark@gmail.com>
Wed, 27 Feb 2019 20:57:23 +0000 (15:57 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 3 Mar 2019 18:27:50 +0000 (13:27 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3.c

index ed14c343faa48b616a2fef3051738868d029cee2..ee13291fb87d95b6435512270f2e77bde00bf141 100644 (file)
@@ -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)