mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 15:02:40 +00:00
video_core: handle PM4 type-2 packets
This commit is contained in:
parent
e4254ebdaa
commit
30f96dfe31
@ -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…
Reference in New Issue
Block a user