diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index 06f0cb427..934ea630c 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -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);