diff --git a/src/backends/native/meta-kms-types.h b/src/backends/native/meta-kms-types.h index 8e035ac1a..b216dc019 100644 --- a/src/backends/native/meta-kms-types.h +++ b/src/backends/native/meta-kms-types.h @@ -80,6 +80,7 @@ typedef enum _MetaKmsUpdateFlag { META_KMS_UPDATE_FLAG_NONE = 0, META_KMS_UPDATE_FLAG_TEST_ONLY = 1 << 0, + META_KMS_UPDATE_FLAG_MODE_SET = 1 << 1, } MetaKmsUpdateFlag; typedef enum _MetaKmsPlaneType MetaKmsPlaneType; diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index a2cb6329a..18b240328 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -873,8 +873,9 @@ post_mode_set_updates (MetaRendererNative *renderer_native) NULL, NULL); - feedback = meta_kms_device_process_update_sync (kms_device, kms_update, - META_KMS_UPDATE_FLAG_NONE); + feedback = + meta_kms_device_process_update_sync (kms_device, kms_update, + META_KMS_UPDATE_FLAG_MODE_SET); } } diff --git a/src/tests/native-kms-device.c b/src/tests/native-kms-device.c index 5d0800362..fde193c1a 100644 --- a/src/tests/native-kms-device.c +++ b/src/tests/native-kms-device.c @@ -283,7 +283,7 @@ meta_test_kms_device_mode_set (void) meta_get_mode_rect (mode), META_KMS_ASSIGN_PLANE_FLAG_NONE); feedback = meta_kms_device_process_update_sync (device, update, - META_KMS_UPDATE_FLAG_NONE); + META_KMS_UPDATE_FLAG_MODE_SET); meta_kms_feedback_unref (feedback); g_assert_nonnull (meta_kms_crtc_get_current_state (crtc)); @@ -347,7 +347,7 @@ meta_test_kms_device_power_save (void) meta_get_mode_rect (mode), META_KMS_ASSIGN_PLANE_FLAG_NONE); feedback = meta_kms_device_process_update_sync (device, update, - META_KMS_UPDATE_FLAG_NONE); + META_KMS_UPDATE_FLAG_MODE_SET); meta_kms_feedback_unref (feedback); g_assert_true (meta_kms_crtc_is_active (crtc)); @@ -384,7 +384,7 @@ meta_test_kms_device_power_save (void) meta_get_mode_rect (mode), META_KMS_ASSIGN_PLANE_FLAG_NONE); feedback = meta_kms_device_process_update_sync (device, update, - META_KMS_UPDATE_FLAG_NONE); + META_KMS_UPDATE_FLAG_MODE_SET); meta_kms_feedback_unref (feedback); g_assert_true (meta_kms_crtc_is_active (crtc));