diff --git a/src/backends/native/meta-kms-update.h b/src/backends/native/meta-kms-update.h index c4d120d92..321002f6d 100644 --- a/src/backends/native/meta-kms-update.h +++ b/src/backends/native/meta-kms-update.h @@ -39,6 +39,7 @@ typedef enum _MetaKmsAssignPlaneFlag META_KMS_ASSIGN_PLANE_FLAG_NONE = 0, META_KMS_ASSIGN_PLANE_FLAG_FB_UNCHANGED = 1 << 0, META_KMS_ASSIGN_PLANE_FLAG_ALLOW_FAIL = 1 << 1, + META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT = 1 << 2, } MetaKmsAssignPlaneFlag; enum _MetaKmsPageFlipListenerFlag diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index 133bfc8ea..7510af203 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -1277,7 +1277,7 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen, test_update = meta_kms_update_new (kms_device); meta_crtc_kms_assign_primary_plane (crtc_kms, fb, test_update, - META_KMS_ASSIGN_PLANE_FLAG_NONE); + META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT); meta_topic (META_DEBUG_KMS, "Posting direct scanout test update for CRTC %u (%s) synchronously", @@ -1399,7 +1399,7 @@ meta_onscreen_native_direct_scanout (CoglOnscreen *onscreen, onscreen_native->view, onscreen_native->crtc, kms_update, - META_KMS_ASSIGN_PLANE_FLAG_NONE, + META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT, NULL, 0);