[PR #576] [CLOSED] video_core: implement PM4 disassembler #1642

Closed
opened 2026-02-27 21:13:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/576
Author: @Random06457
Created: 8/25/2024
Status: Closed

Base: mainHead: pm4_disas


📝 Commits (3)

  • db61946 video_core: implement PM4 disassembler
  • b041e25 video_core: fix type correctness of Address() member functions in pm4_cmds.h
  • 594c3ab video_core: fix break statement position

📊 Changes

3 files changed (+333 additions, -20 deletions)

View changed files

📝 src/core/libraries/gnmdriver/gnmdriver.cpp (+300 -4)
📝 src/video_core/amdgpu/liverpool.cpp (+9 -11)
📝 src/video_core/amdgpu/pm4_cmds.h (+24 -5)

📄 Description

This PR adds a simple PM4 disassembler for debugging purpose.

The disassembled PM4 display lists are saved to disk next to their binary version when Config::dumpPM4() is true.

Not all PM4 commands are supported yet but the ones supported by the emulator should disassemble fine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/576 **Author:** [@Random06457](https://github.com/Random06457) **Created:** 8/25/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pm4_disas` --- ### 📝 Commits (3) - [`db61946`](https://github.com/shadps4-emu/shadPS4/commit/db619463dd5626b27c12d432b78b612d61449996) video_core: implement PM4 disassembler - [`b041e25`](https://github.com/shadps4-emu/shadPS4/commit/b041e255f3bcb5d7bd788a11fdf96ae97633b346) video_core: fix type correctness of Address() member functions in pm4_cmds.h - [`594c3ab`](https://github.com/shadps4-emu/shadPS4/commit/594c3ab6f827c6970471c847d82d299953c6a96f) video_core: fix break statement position ### 📊 Changes **3 files changed** (+333 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/gnmdriver/gnmdriver.cpp` (+300 -4) 📝 `src/video_core/amdgpu/liverpool.cpp` (+9 -11) 📝 `src/video_core/amdgpu/pm4_cmds.h` (+24 -5) </details> ### 📄 Description This PR adds a simple PM4 disassembler for debugging purpose. The disassembled PM4 display lists are saved to disk next to their binary version when `Config::dumpPM4()` is true. Not all PM4 commands are supported yet but the ones supported by the emulator should disassemble fine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:13:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1642
No description provided.