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()) {
|
while (!dcb.empty()) {
|
||||||
const auto* header = reinterpret_cast<const PM4Header*>(dcb.data());
|
const auto* header = reinterpret_cast<const PM4Header*>(dcb.data());
|
||||||
const u32 type = header->type;
|
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) {
|
if (type != 3) {
|
||||||
// No other types of packets were spotted so far
|
// No other types of packets were spotted so far
|
||||||
UNREACHABLE_MSG("Invalid PM4 type {}", type);
|
UNREACHABLE_MSG("Invalid PM4 type {}", type);
|
||||||
|
|
Loading…
Reference in New Issue