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:
@ -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,
|
||||
|
Reference in New Issue
Block a user