[GPU] Remove unused FinalizeTrace
This commit is contained in:
parent
603150af64
commit
81bc33523a
|
@ -125,7 +125,6 @@ void CommandProcessor::EndTracing() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert_true(trace_state_ == TraceState::kStreaming);
|
assert_true(trace_state_ == TraceState::kStreaming);
|
||||||
FinalizeTrace();
|
|
||||||
trace_state_ = TraceState::kDisabled;
|
trace_state_ = TraceState::kDisabled;
|
||||||
trace_writer_.Close();
|
trace_writer_.Close();
|
||||||
}
|
}
|
||||||
|
@ -751,7 +750,6 @@ bool CommandProcessor::ExecutePacketType3(RingBuffer* reader, uint32_t packet) {
|
||||||
trace_writer_.WriteEvent(EventCommand::Type::kSwap);
|
trace_writer_.WriteEvent(EventCommand::Type::kSwap);
|
||||||
trace_writer_.Flush();
|
trace_writer_.Flush();
|
||||||
if (trace_state_ == TraceState::kSingleFrame) {
|
if (trace_state_ == TraceState::kSingleFrame) {
|
||||||
FinalizeTrace();
|
|
||||||
trace_state_ = TraceState::kDisabled;
|
trace_state_ = TraceState::kDisabled;
|
||||||
trace_writer_.Close();
|
trace_writer_.Close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,7 +252,6 @@ class CommandProcessor {
|
||||||
virtual bool IssueCopy() = 0;
|
virtual bool IssueCopy() = 0;
|
||||||
|
|
||||||
virtual void InitializeTrace() = 0;
|
virtual void InitializeTrace() = 0;
|
||||||
virtual void FinalizeTrace() = 0;
|
|
||||||
|
|
||||||
Memory* memory_ = nullptr;
|
Memory* memory_ = nullptr;
|
||||||
kernel::KernelState* kernel_state_ = nullptr;
|
kernel::KernelState* kernel_state_ = nullptr;
|
||||||
|
|
|
@ -2331,8 +2331,6 @@ void D3D12CommandProcessor::InitializeTrace() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void D3D12CommandProcessor::FinalizeTrace() {}
|
|
||||||
|
|
||||||
bool D3D12CommandProcessor::IssueCopy() {
|
bool D3D12CommandProcessor::IssueCopy() {
|
||||||
#if XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
#if XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
||||||
SCOPE_profile_cpu_f("gpu");
|
SCOPE_profile_cpu_f("gpu");
|
||||||
|
|
|
@ -216,7 +216,6 @@ class D3D12CommandProcessor : public CommandProcessor {
|
||||||
bool IssueCopy() override;
|
bool IssueCopy() override;
|
||||||
|
|
||||||
void InitializeTrace() override;
|
void InitializeTrace() override;
|
||||||
void FinalizeTrace() override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr uint32_t kQueueFrames = 3;
|
static constexpr uint32_t kQueueFrames = 3;
|
||||||
|
|
|
@ -53,8 +53,6 @@ bool NullCommandProcessor::IssueCopy() { return true; }
|
||||||
|
|
||||||
void NullCommandProcessor::InitializeTrace() {}
|
void NullCommandProcessor::InitializeTrace() {}
|
||||||
|
|
||||||
void NullCommandProcessor::FinalizeTrace() {}
|
|
||||||
|
|
||||||
} // namespace null
|
} // namespace null
|
||||||
} // namespace gpu
|
} // namespace gpu
|
||||||
} // namespace xe
|
} // namespace xe
|
|
@ -46,7 +46,6 @@ class NullCommandProcessor : public CommandProcessor {
|
||||||
bool IssueCopy() override;
|
bool IssueCopy() override;
|
||||||
|
|
||||||
void InitializeTrace() override;
|
void InitializeTrace() override;
|
||||||
void FinalizeTrace() override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace null
|
} // namespace null
|
||||||
|
|
|
@ -1333,8 +1333,6 @@ bool VulkanCommandProcessor::IssueCopy() {
|
||||||
|
|
||||||
void VulkanCommandProcessor::InitializeTrace() {}
|
void VulkanCommandProcessor::InitializeTrace() {}
|
||||||
|
|
||||||
void VulkanCommandProcessor::FinalizeTrace() {}
|
|
||||||
|
|
||||||
} // namespace vulkan
|
} // namespace vulkan
|
||||||
} // namespace gpu
|
} // namespace gpu
|
||||||
} // namespace xe
|
} // namespace xe
|
||||||
|
|
|
@ -98,7 +98,6 @@ class VulkanCommandProcessor : public CommandProcessor {
|
||||||
bool IssueCopy() override;
|
bool IssueCopy() override;
|
||||||
|
|
||||||
void InitializeTrace() override;
|
void InitializeTrace() override;
|
||||||
void FinalizeTrace() override;
|
|
||||||
|
|
||||||
xe::ui::vulkan::VulkanDevice* device_ = nullptr;
|
xe::ui::vulkan::VulkanDevice* device_ = nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue