fix(tools): count the debug branches and s_ttracedata_imm as decoded shader instructions #380
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/380"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by DotDebian on 2026-10-02T16:27:24Z.
What
tools/progress.pymatchesRdnaOpcodeenum names against the ISA list, so an instruction decoded through a shared opcode is counted as missing. Two SOPP cases are already decoded and covered by tests onmain:SCbranchCdbgdecodes SOPP0x17-0x1a:S_CBRANCH_CDBGSYS,S_CBRANCH_CDBGUSER,S_CBRANCH_CDBGSYS_OR_USER,S_CBRANCH_CDBGSYS_AND_USER.debugBranchTestsintests/Graphics.cpprecompiles all four.STtracedatadecodes SOPP0x16and0x28(S_TTRACEDATA_IMM).tests/execution/CacheControl.cppruns0xbfa80001.This adds both to
OPCODE_VARIANTS, as7bcde3badid for the other shared opcodes. Shaders go from 695/1166 to 700/1166. No emulator code changes.SCbranchCdbgstill appears in the page's list of opcode names absent from AMD's list, likeVAddI32andVSubrevI32already do.Tested
Windows 11, MinGW-w64 GCC 15.2.0.
python tools/progress.pybefore and after, then--compare: +5 implemented (the five names above), nothing else moves.ctest: 100% tests passed out of 108.agc_driver_graphicsandagc_driver_cache_control, the two tests that exercise these encodings, pass and are not skipped. With the0x17-0x1aand0x28cases removed fromdecodeSoppOpcodelocally, both fail (unsupported SOPP opcode), so they do cover the decoding. No test added: the change is in the reporting script only.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code