From eab5e94862164814c62ef55e29ac8a9286496c04 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 14 Sep 2023 17:35:22 +0800 Subject: [PATCH] kms/impl-device: Rename deadline_timer_failed to deadline_timer_inhibited Because in the next commit we'll reuse the flag for conditional inhibition on platforms where the deadline timer doesn't fail. Part-of: --- src/backends/native/meta-kms-impl-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index bd146e28a..17bfc7ee2 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -98,7 +98,7 @@ typedef struct _MetaKmsImplDevicePrivate GHashTable *crtc_frames; - gboolean deadline_timer_failed; + gboolean deadline_timer_inhibited; } MetaKmsImplDevicePrivate; static void @@ -1345,7 +1345,7 @@ is_using_deadline_timer (MetaKmsImplDevice *impl_device) MetaKmsImplDevicePrivate *priv = meta_kms_impl_device_get_instance_private (impl_device); - if (priv->deadline_timer_failed) + if (priv->deadline_timer_inhibited) { return FALSE; } @@ -1568,7 +1568,7 @@ meta_kms_impl_device_schedule_process (MetaKmsImplDevice *impl_device, g_warning ("Failed to determine deadline: %s", error->message); priv = meta_kms_impl_device_get_instance_private (impl_device); - priv->deadline_timer_failed = TRUE; + priv->deadline_timer_inhibited = TRUE; needs_flush: meta_kms_device_set_needs_flush (meta_kms_crtc_get_device (crtc), crtc);