From 92a378afc4fd479c957ab666b1b406e3819a927c Mon Sep 17 00:00:00 2001 From: DotDebian Date: Fri, 2 Oct 2026 18:27:13 +0200 Subject: [PATCH] fix(tools): count the debug branches and s_ttracedata_imm as decoded shader instructions SCbranchCdbg decodes SOPP 0x17-0x1a and STtracedata decodes 0x16 and 0x28, so S_CBRANCH_CDBGSYS, S_CBRANCH_CDBGUSER, S_CBRANCH_CDBGSYS_OR_USER, S_CBRANCH_CDBGSYS_AND_USER and S_TTRACEDATA_IMM were reported as missing although the decoder handles them and existing tests cover them. Co-Authored-By: Claude Opus 5.5 --- tools/progress.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/progress.py b/tools/progress.py index c233224b0..27508fb35 100644 --- a/tools/progress.py +++ b/tools/progress.py @@ -30,6 +30,8 @@ OPCODE_VARIANTS = { "SCmpLeU32": ("S_CMPK_LE_U32",), "SCmpLtI32": ("S_CMPK_LT_I32",), "SWaitcnt": ("S_WAITCNT_VSCNT",), + "STtracedata": ("S_TTRACEDATA_IMM",), + "SCbranchCdbg": ("S_CBRANCH_CDBGSYS", "S_CBRANCH_CDBGUSER", "S_CBRANCH_CDBGSYS_OR_USER", "S_CBRANCH_CDBGSYS_AND_USER"), "VAddI32": ("V_ADD_CO_U32",), "VSubrevI32": ("V_SUBREV_CO_U32",), "ImageSample": ("IMAGE_SAMPLE_L", "IMAGE_SAMPLE_B", "IMAGE_SAMPLE_C_LZ", "IMAGE_SAMPLE_L_O"),