video_core: handle PM4 type-2 packets

This commit is contained in:
Random06457 2024-08-22 01:37:49 +09:00
parent e4254ebdaa
commit 30f96dfe31

View file

@ -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);