• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2021 Igalia S.L.
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #include "tu_device.h"
7 #include "tu_perfetto.h"
8 
9 /* Including tu_device.h in tu_perfetto.cc doesn't work, so
10  * we need some helper methods to access tu_device.
11  */
12 
13 struct tu_perfetto_state *
tu_device_get_perfetto_state(struct tu_device * dev)14 tu_device_get_perfetto_state(struct tu_device *dev)
15 {
16     return &dev->perfetto;
17 }
18 
19 uint32_t
tu_u_trace_submission_data_get_submit_id(const struct tu_u_trace_submission_data * data)20 tu_u_trace_submission_data_get_submit_id(const struct tu_u_trace_submission_data *data)
21 {
22     return data->submission_id;
23 }
24