1
0
Fork 0

onscreen/native: Log swapbuffers and N-buffering when MUTTER_DEBUG=kms

(cherry picked from commit afc9b7eeb9cf4b1998e0134e0cf98a3cd26c1059)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Daniel van Vugt 2021-12-10 16:40:58 +08:00 committed by Mingi Sung
parent 4fd33b4fdc
commit 9d61c6dd0e
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

View file

@ -1372,6 +1372,19 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeSwapBuffers,
"Meta::OnscreenNative::swap_buffers_with_damage()");
if (meta_is_topic_enabled (META_DEBUG_KMS))
{
unsigned int frames_pending =
cogl_onscreen_get_pending_frame_count (onscreen);
meta_topic (META_DEBUG_KMS,
"Swap buffers: %u frames pending (%s-buffering)",
frames_pending,
frames_pending == 1 ? "double" :
frames_pending == 2 ? "triple" :
"?");
}
secondary_gpu_fb =
update_secondary_gpu_state_pre_swap_buffers (onscreen,
rectangles,