mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 00:42:48 +00:00
liverpool: Add scope markers for graphics/compute queues.
This commit is contained in:
parent
c6b32edefd
commit
52caa3a887
@ -224,6 +224,10 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span<const u32> dcb, std::span<c
|
|||||||
RESUME_GFX(ce_task);
|
RESUME_GFX(ce_task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rasterizer) {
|
||||||
|
rasterizer->ScopeMarkerBegin("dcb");
|
||||||
|
}
|
||||||
|
|
||||||
const auto base_addr = reinterpret_cast<uintptr_t>(dcb.data());
|
const auto base_addr = reinterpret_cast<uintptr_t>(dcb.data());
|
||||||
while (!dcb.empty()) {
|
while (!dcb.empty()) {
|
||||||
const auto* header = reinterpret_cast<const PM4Header*>(dcb.data());
|
const auto* header = reinterpret_cast<const PM4Header*>(dcb.data());
|
||||||
@ -701,6 +705,10 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span<const u32> dcb, std::span<c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rasterizer) {
|
||||||
|
rasterizer->ScopeMarkerEnd();
|
||||||
|
}
|
||||||
|
|
||||||
if (ce_task.handle) {
|
if (ce_task.handle) {
|
||||||
ASSERT_MSG(ce_task.handle.done(), "Partially processed CCB");
|
ASSERT_MSG(ce_task.handle.done(), "Partially processed CCB");
|
||||||
ce_task.handle.destroy();
|
ce_task.handle.destroy();
|
||||||
@ -714,6 +722,10 @@ Liverpool::Task Liverpool::ProcessCompute(std::span<const u32> acb, u32 vqid) {
|
|||||||
FIBER_ENTER(acb_task_name[vqid]);
|
FIBER_ENTER(acb_task_name[vqid]);
|
||||||
const auto& queue = asc_queues[{vqid}];
|
const auto& queue = asc_queues[{vqid}];
|
||||||
|
|
||||||
|
if (rasterizer) {
|
||||||
|
rasterizer->ScopeMarkerBegin(fmt::format("acb[{}]", vqid));
|
||||||
|
}
|
||||||
|
|
||||||
auto base_addr = reinterpret_cast<uintptr_t>(acb.data());
|
auto base_addr = reinterpret_cast<uintptr_t>(acb.data());
|
||||||
while (!acb.empty()) {
|
while (!acb.empty()) {
|
||||||
const auto* header = reinterpret_cast<const PM4Header*>(acb.data());
|
const auto* header = reinterpret_cast<const PM4Header*>(acb.data());
|
||||||
@ -878,6 +890,10 @@ Liverpool::Task Liverpool::ProcessCompute(std::span<const u32> acb, u32 vqid) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rasterizer) {
|
||||||
|
rasterizer->ScopeMarkerEnd();
|
||||||
|
}
|
||||||
|
|
||||||
FIBER_EXIT;
|
FIBER_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user