video_core: Implement sceGnmInsertPushColorMarker (#989)

This commit is contained in:
korenkonder 2024-10-10 18:03:12 +03:00 committed by GitHub
parent 3982ef7188
commit 6e986f8133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 4 deletions

View file

@ -226,6 +226,17 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span<const u32> dcb, std::span<c
}
break;
}
case PM4CmdNop::PayloadType::DebugColorMarkerPush: {
const auto marker_sz = nop->header.count.Value() * 2;
const std::string_view label{reinterpret_cast<const char*>(&nop->data_block[1]),
marker_sz};
const u32 color = *reinterpret_cast<const u32*>(
reinterpret_cast<const u8*>(&nop->data_block[1]) + marker_sz);
if (rasterizer) {
rasterizer->ScopedMarkerInsertColor(label, color);
}
break;
}
case PM4CmdNop::PayloadType::DebugMarkerPop: {
if (rasterizer) {
rasterizer->ScopeMarkerEnd();