diff options
author | Samuel Pitoiset <[email protected]> | 2020-03-02 09:52:14 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-03-02 12:23:33 +0100 |
commit | 1b565e56e94a363e49b2311bf57f38ccd548cc5d (patch) | |
tree | 88a68b347fc9507720831eff7dfa7c6ed94db6c2 | |
parent | fbd61b3fb66bcc3eb0f65da2c869046c24c35dc8 (diff) |
radv/rgp: adjust trace memory/shader clocks to fix frame duration
To report microseconds instead of clocks.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4018>
-rw-r--r-- | src/amd/vulkan/radv_rgp.c | 4 |
1 files 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; |