mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
freedreno: Skip CPU/GPU timestamp sync when not supported.
Fixes immediate segfaults in perfetto-enabled builds on pre-a6xx. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20660>
This commit is contained in:
parent
79bbfb3168
commit
327f736627
1 changed files with 3 additions and 0 deletions
|
|
@ -312,6 +312,9 @@ sync_timestamp(struct fd_context *ctx)
|
|||
uint64_t cpu_ts = perfetto::base::GetBootTimeNs().count();
|
||||
uint64_t gpu_ts;
|
||||
|
||||
if (!ctx->ts_to_ns)
|
||||
return;
|
||||
|
||||
if (cpu_ts < next_clock_sync_ns)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue