mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radv: restore sampling CPU/GPU clocks before starting SQTT trace
This was removed by mistake in "radv/rgp: Use common trace trigger" and it introduced a regression with RGP queue events. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22779>
This commit is contained in:
parent
55e48d7e0f
commit
661d28cfec
1 changed files with 5 additions and 0 deletions
|
|
@ -580,6 +580,11 @@ radv_handle_sqtt(VkQueue _queue)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Sample CPU/GPU clocks before starting the trace. */
|
||||
if (!radv_sqtt_sample_clocks(queue->device)) {
|
||||
fprintf(stderr, "radv: Failed to sample clocks\n");
|
||||
}
|
||||
|
||||
radv_begin_sqtt(queue);
|
||||
assert(!queue->device->sqtt_enabled);
|
||||
queue->device->sqtt_enabled = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue