Mesa (master): freedreno/ir3: include nopN in expanded instruction count

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Mar 3 18:32:44 UTC 2019


Module: Mesa
Branch: master
Commit: c8e351ee3af63aad28d572cd5efb307a8e65e03d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8e351ee3af63aad28d572cd5efb307a8e65e03d

Author: Rob Clark <robdclark at gmail.com>
Date:   Wed Feb 27 15:57:23 2019 -0500

freedreno/ir3: include nopN in expanded instruction count

Signed-off-by: Rob Clark <robdclark at gmail.com>

---

 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)




More information about the mesa-commit mailing list