mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 13:35:30 +03:00
Add perfetto tracepoints to async record
This commit is contained in:
parent
6dfef095e8
commit
a3f38c0cf7
@ -37,6 +37,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CommandRecordThread::ProcessSlot(Slot *slot) {
|
void CommandRecordThread::ProcessSlot(Slot *slot) {
|
||||||
|
TRACE_EVENT_FMT("gpu", "ProcessSlot: 0x{:X}, execution: {}", slot, slot->executionNumber);
|
||||||
auto &gpu{*state.gpu};
|
auto &gpu{*state.gpu};
|
||||||
|
|
||||||
vk::RenderPass lRenderPass;
|
vk::RenderPass lRenderPass;
|
||||||
@ -129,6 +130,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
|
|
||||||
slot = recordThread.AcquireSlot();
|
slot = recordThread.AcquireSlot();
|
||||||
cycle = slot->Reset(gpu);
|
cycle = slot->Reset(gpu);
|
||||||
|
slot->executionNumber = executionNumber;
|
||||||
allocator = &slot->allocator;
|
allocator = &slot->allocator;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -411,12 +413,12 @@ namespace skyline::gpu::interconnect {
|
|||||||
for (const auto &callback : flushCallbacks)
|
for (const auto &callback : flushCallbacks)
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
|
executionNumber++;
|
||||||
|
|
||||||
if (!slot->nodes.empty()) {
|
if (!slot->nodes.empty()) {
|
||||||
TRACE_EVENT("gpu", "CommandExecutor::Submit");
|
TRACE_EVENT("gpu", "CommandExecutor::Submit");
|
||||||
SubmitInternal();
|
SubmitInternal();
|
||||||
}
|
}
|
||||||
ResetInternal();
|
ResetInternal();
|
||||||
|
|
||||||
executionNumber++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
std::shared_ptr<FenceCycle> cycle;
|
std::shared_ptr<FenceCycle> cycle;
|
||||||
boost::container::stable_vector<node::NodeVariant> nodes;
|
boost::container::stable_vector<node::NodeVariant> nodes;
|
||||||
LinearAllocatorState<> allocator;
|
LinearAllocatorState<> allocator;
|
||||||
|
u32 executionNumber;
|
||||||
|
|
||||||
Slot(GPU &gpu);
|
Slot(GPU &gpu);
|
||||||
|
|
||||||
@ -151,7 +152,7 @@ namespace skyline::gpu::interconnect {
|
|||||||
std::shared_ptr<FenceCycle> cycle; //!< The fence cycle that this command executor uses to wait for the GPU to finish executing commands
|
std::shared_ptr<FenceCycle> cycle; //!< The fence cycle that this command executor uses to wait for the GPU to finish executing commands
|
||||||
LinearAllocatorState<> *allocator;
|
LinearAllocatorState<> *allocator;
|
||||||
ContextTag tag; //!< The tag associated with this command executor, any tagged resource locking must utilize this tag
|
ContextTag tag; //!< The tag associated with this command executor, any tagged resource locking must utilize this tag
|
||||||
size_t executionNumber{};
|
u32 executionNumber{};
|
||||||
|
|
||||||
CommandExecutor(const DeviceState &state);
|
CommandExecutor(const DeviceState &state);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user