summaryrefslogtreecommitdiff
path: root/lib/mesa/src/freedreno/vulkan/tu_perfetto_util.c
blob: 6d9b9921e4f47d80dfec98c01952f089ed6f728a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright © 2021 Igalia S.L.
 * SPDX-License-Identifier: MIT
 */

#include "tu_device.h"
#include "tu_perfetto.h"

/* Including tu_device.h in tu_perfetto.cc doesn't work, so
 * we need some helper methods to access tu_device.
 */

struct tu_perfetto_state *
tu_device_get_perfetto_state(struct tu_device *dev)
{
    return &dev->perfetto;
}

uint32_t
tu_u_trace_submission_data_get_submit_id(const struct tu_u_trace_submission_data *data)
{
    return data->submission_id;
}