onscreen/native: Log kms debug messages when doing test commits
This helps identify the origin of other KMS debug logs logged during processing. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2854>
This commit is contained in:
parent
51ff3fa194
commit
9752ddf2cf
@ -1240,6 +1240,7 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen,
|
||||
MetaCrtcKms *crtc_kms = META_CRTC_KMS (crtc);
|
||||
MetaGpuKms *gpu_kms;
|
||||
MetaKmsDevice *kms_device;
|
||||
MetaKmsCrtc *kms_crtc;
|
||||
MetaKms *kms;
|
||||
MetaKmsUpdate *test_update;
|
||||
g_autoptr (MetaKmsFeedback) kms_feedback = NULL;
|
||||
@ -1247,10 +1248,17 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen,
|
||||
|
||||
gpu_kms = META_GPU_KMS (meta_crtc_get_gpu (crtc));
|
||||
kms_device = meta_gpu_kms_get_kms_device (gpu_kms);
|
||||
kms_crtc = meta_crtc_kms_get_kms_crtc (crtc_kms);
|
||||
kms = meta_kms_device_get_kms (kms_device);
|
||||
test_update = meta_kms_update_new (kms_device);
|
||||
|
||||
test_update = meta_kms_update_new (kms_device);
|
||||
meta_crtc_kms_assign_primary_plane (crtc_kms, fb, test_update);
|
||||
|
||||
meta_topic (META_DEBUG_KMS,
|
||||
"Posting direct scanout test update for CRTC %u (%s) synchronously",
|
||||
meta_kms_crtc_get_id (kms_crtc),
|
||||
meta_kms_device_get_path (kms_device));
|
||||
|
||||
kms_feedback = meta_kms_post_test_update_sync (kms, test_update);
|
||||
meta_kms_update_free (test_update);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user