mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
tu: Use MESA_TRACE_SCOPE instead of _BEGIN/_END
The MESA_TRACE_SCOPE macro is an exact replacement for this. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25308>
This commit is contained in:
parent
f60a9d89c1
commit
57c6e79db5
1 changed files with 2 additions and 4 deletions
|
|
@ -101,9 +101,8 @@ struct tu_virtio_device {
|
|||
};
|
||||
|
||||
#define virtio_ioctl(fd, name, args) ({ \
|
||||
MESA_TRACE_BEGIN(#name); \
|
||||
MESA_TRACE_SCOPE(#name); \
|
||||
int ret = drmIoctl((fd), DRM_IOCTL_ ## name, (args)); \
|
||||
MESA_TRACE_END(); \
|
||||
ret; \
|
||||
})
|
||||
|
||||
|
|
@ -236,10 +235,9 @@ out_unlock:
|
|||
return ret;
|
||||
|
||||
if (sync) {
|
||||
MESA_TRACE_BEGIN("virtio_execbuf sync");
|
||||
MESA_TRACE_SCOPE("virtio_execbuf sync");
|
||||
sync_wait(fence_fd, -1);
|
||||
close(fence_fd);
|
||||
MESA_TRACE_END();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue