kms/device: Replace get_plane*() with has_plane*()

There might not be a single plane that is "for" a CRTC, so remove the
API that made it appear as if it did. The existing users only cared if
there was some plane for said CRTC, so replace the getters with API that
just checks the existance at all.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3428>
This commit is contained in:
Jonas Ådahl
2023-11-28 22:16:09 +01:00
committed by Marge Bot
parent 48c7caadd2
commit 3b46b4a099
4 changed files with 12 additions and 26 deletions

View File

@ -1772,10 +1772,8 @@ meta_kms_impl_device_simple_initable_init (GInitable *initable,
for (l = meta_kms_device_get_crtcs (device); l; l = l->next)
{
MetaKmsCrtc *crtc = l->data;
MetaKmsPlane *plane;
plane = meta_kms_device_get_cursor_plane_for (device, crtc);
if (plane)
if (meta_kms_device_has_cursor_plane_for (device, crtc))
continue;
meta_topic (META_DEBUG_KMS,