mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
video_core: handle PM4 type-2 packets
This commit is contained in:
parent
e4254ebdaa
commit
30f96dfe31
1 changed files with 5 additions and 0 deletions
|
@ -175,6 +175,11 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span<const u32> dcb, std::span<c
|
|||
while (!dcb.empty()) {
|
||||
const auto* header = reinterpret_cast<const PM4Header*>(dcb.data());
|
||||
const u32 type = header->type;
|
||||
if (type == 2) {
|
||||
// Type 2 are filler packets that don't do anything
|
||||
dcb = dcb.subspan(1);
|
||||
continue;
|
||||
}
|
||||
if (type != 3) {
|
||||
// No other types of packets were spotted so far
|
||||
UNREACHABLE_MSG("Invalid PM4 type {}", type);
|
||||
|
|
Loading…
Add table
Reference in a new issue