onscreen/native: Log swapbuffers and N-buffering when MUTTER_DEBUG=kms
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
parent
5a1b32f6fd
commit
4d838f348c
1 changed files with 13 additions and 0 deletions
|
@ -1403,6 +1403,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,
|
||||
|
|
Loading…
Reference in a new issue