diff options
author | Joonbum Ko <joonbum.ko@samsung.com> | 2020-07-21 12:37:49 +0900 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2024-01-18 09:31:55 +0800 |
commit | e0f82d8511fef4165248293ba0cc11bf70168ba7 (patch) | |
tree | 7acfdc33d59d4ff860aa9dae70d4a50e338bb571 /src | |
parent | b5539599b341603d6ac174cf1cf9a26788b96442 (diff) | |
download | mesa-e0f82d8511fef4165248293ba0cc11bf70168ba7.tar.gz mesa-e0f82d8511fef4165248293ba0cc11bf70168ba7.tar.bz2 mesa-e0f82d8511fef4165248293ba0cc11bf70168ba7.zip |
Added ttrace points
Change-Id: Idc9d301b560373d05bc427f171f5f48777deb78c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/egl/drivers/dri2/platform_tizen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c index d15050e03ce..b0995b4ca54 100755 --- a/src/egl/drivers/dri2/platform_tizen.c +++ b/src/egl/drivers/dri2/platform_tizen.c @@ -52,6 +52,8 @@ #include <drm_fourcc.h> +#include "tizen/tizen_utils.h" + int tbm_bufmgr_fd = -1; static void tizen_free_local_buffers(struct dri2_egl_surface *dri2_surf); @@ -227,10 +229,12 @@ tizen_window_dequeue_buffer(struct dri2_egl_surface *dri2_surf) int width, height; int32_t release_fence; + TRACE_BEGIN("DEQUEUE_BUFFER"); dri2_surf->tbm_surface = tpl_surface_dequeue_buffer_with_sync( dri2_surf->tpl_surface, UINT64_MAX, &release_fence); + TRACE_END(); if (!dri2_surf->tbm_surface) return EGL_FALSE; @@ -778,6 +782,7 @@ tizen_swap_buffers_with_damage(_EGLDisplay *disp, dri2_surf->back->age = 1; + TRACE_BEGIN("DRI2_SWAP_BUFERS"); /* The buffer to enqueue should be the buffer in which * the gpu drawing job is completed or after flush. * If this is not guaranteed, it can lead to incorrect output. @@ -788,6 +793,7 @@ tizen_swap_buffers_with_damage(_EGLDisplay *disp, dri2_flush_drawable_for_swapbuffers(disp, draw); dri2_dpy->flush->invalidate(dri2_surf->dri_drawable); } + TRACE_END(); if (dri2_surf->tbm_surface) tizen_window_enqueue_buffer_with_damage(disp, dri2_surf, rects, n_rects); |