From 30f96dfe3153444129f18771a48d4b434c92b37c Mon Sep 17 00:00:00 2001 From: Random06457 <28494085+Random06457@users.noreply.github.com> Date: Thu, 22 Aug 2024 01:37:49 +0900 Subject: [PATCH] video_core: handle PM4 type-2 packets --- src/video_core/amdgpu/liverpool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video_core/amdgpu/liverpool.cpp b/src/video_core/amdgpu/liverpool.cpp index 5b3db603..4af4407e 100644 --- a/src/video_core/amdgpu/liverpool.cpp +++ b/src/video_core/amdgpu/liverpool.cpp @@ -175,6 +175,11 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span dcb, std::span(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);