Skip to content

Commit

Permalink
ui/dbus: add some GL traces
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
elmarco committed Jun 27, 2023
1 parent f43bf0a commit cf283fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/dbus-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ static void dbus_call_update_gl(DisplayChangeListener *dcl,
{
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);

trace_dbus_update_gl(x, y, w, h);

glFlush();
#ifdef CONFIG_GBM
graphic_hw_gl_block(ddl->dcl.con, true);
Expand Down Expand Up @@ -212,6 +214,8 @@ static void dbus_scanout_texture(DisplayChangeListener *dcl,
uint32_t x, uint32_t y,
uint32_t w, uint32_t h)
{
trace_dbus_scanout_texture(tex_id, backing_y_0_top,
backing_width, backing_height, x, y, w, h);
#ifdef CONFIG_GBM
QemuDmaBuf dmabuf = {
.width = backing_width,
Expand Down Expand Up @@ -421,6 +425,8 @@ static void dbus_gl_gfx_switch(DisplayChangeListener *dcl,
{
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);

trace_dbus_gl_gfx_switch(new_surface);

ddl->ds = new_surface;
if (ddl->ds) {
int width = surface_width(ddl->ds);
Expand Down
3 changes: 3 additions & 0 deletions ui/trace-events
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ dbus_mouse_set_pos(unsigned int x, unsigned int y) "x=%u, y=%u"
dbus_mouse_rel_motion(int dx, int dy) "dx=%d, dy=%d"
dbus_touch_send_event(unsigned int kind, uint32_t num_slot, uint32_t x, uint32_t y) "kind=%u, num_slot=%u, x=%d, y=%d"
dbus_update(int x, int y, int w, int h) "x=%d, y=%d, w=%d, h=%d"
dbus_update_gl(int x, int y, int w, int h) "x=%d, y=%d, w=%d, h=%d"
dbus_clipboard_grab_failed(void) ""
dbus_clipboard_register(const char *bus_name) "peer %s"
dbus_clipboard_unregister(const char *bus_name) "peer %s"
dbus_scanout_texture(uint32_t tex_id, bool backing_y_0_top, uint32_t backing_width, uint32_t backing_height, uint32_t x, uint32_t y, uint32_t w, uint32_t h) "tex_id:%u y0top:%d back:%ux%u %u+%u-%ux%u"
dbus_gl_gfx_switch(void *p) "surf: %p"

0 comments on commit cf283fb

Please sign in to comment.