From 1b565e56e94a363e49b2311bf57f38ccd548cc5d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 2 Mar 2020 09:52:14 +0100 Subject: [PATCH] radv/rgp: adjust trace memory/shader clocks to fix frame duration To report microseconds instead of clocks. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_rgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_rgp.c b/src/amd/vulkan/radv_rgp.c index 3daef62ed5f..75a1c79c534 100644 --- a/src/amd/vulkan/radv_rgp.c +++ b/src/amd/vulkan/radv_rgp.c @@ -345,8 +345,8 @@ radv_fill_sqtt_asic_info(struct radv_device *device, if (rad_info->family == CHIP_FIJI || rad_info->chip_class >= GFX9) chunk->flags |= SQTT_FILE_CHUNK_ASIC_INFO_FLAG_PS1_EVENT_TOKENS_ENABLED; - chunk->trace_shader_core_clock = rad_info->max_shader_clock; - chunk->trace_memory_clock = rad_info->max_memory_clock; + chunk->trace_shader_core_clock = rad_info->max_shader_clock * 1000000; + chunk->trace_memory_clock = rad_info->max_memory_clock * 1000000; chunk->device_id = rad_info->pci_id; chunk->device_revision_id = rad_info->pci_rev_id; -- 2.30.2