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:
parent
4fd33b4fdc
commit
9d61c6dd0e
1 changed files with 13 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue