From f0309be0de71d072d50db0e482bcbc42b649402a Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Tue, 17 May 2022 10:10:26 -0400 Subject: [PATCH] SWDEV-334315 - Correct instruction timing API info Change-Id: I9d291adac076d36776dc7316b411bd093230ca01 --- rocclr/device/pal/palgpuopen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rocclr/device/pal/palgpuopen.cpp b/rocclr/device/pal/palgpuopen.cpp index a1a4a53af3..3187782674 100644 --- a/rocclr/device/pal/palgpuopen.cpp +++ b/rocclr/device/pal/palgpuopen.cpp @@ -608,6 +608,13 @@ Pal::Result RgpCaptureMgr::BeginRGPTrace(VirtualGPU* gpu) { gpu->eventEnd(MainEngine, trace_.begin_sqtt_event_); } + if (result == Pal::Result::Success) { + GpuUtil::SampleTraceApiInfo sample_trace_api_info = {}; + sample_trace_api_info.instructionTraceMode = (inst_tracing_enabled_) ? + GpuUtil::InstructionTraceMode::FullFrame : GpuUtil::InstructionTraceMode::Disabled; + trace_.gpa_session_->SetSampleTraceApiInfo(sample_trace_api_info, trace_.gpa_sample_id_); + } + // Submit the trace-begin command buffer if (result == Pal::Result::Success) { static constexpr bool NeedFlush = true;