diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-06-06 15:56:53 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-06-27 17:08:56 +0200 |
| commit | cf283fb44769b0a2de647193bb31d55d5d25595b (patch) | |
| tree | deadb1f5234a648d7cd4c1b6c19eaa8dcd4fd9dc /ui/dbus-listener.c | |
| parent | f43bf0a73b3903770e2bc919b12f9dad5407773d (diff) | |
| download | focaccia-qemu-cf283fb44769b0a2de647193bb31d55d5d25595b.tar.gz focaccia-qemu-cf283fb44769b0a2de647193bb31d55d5d25595b.zip | |
ui/dbus: add some GL traces
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230606115658.677673-17-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui/dbus-listener.c')
| -rw-r--r-- | ui/dbus-listener.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c index e92eff66e3..8605dffd8a 100644 --- a/ui/dbus-listener.c +++ b/ui/dbus-listener.c @@ -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); @@ -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, @@ -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); |