1
0
Fork 0

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

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 2172c3cf65
commit 61aa358b75
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

View file

@ -1321,6 +1321,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,