drm/vc4: Name the primary and cursor planes in fkms.
authorEric Anholt <eric@anholt.net>
Thu, 2 Feb 2017 01:09:18 +0000 (17:09 -0800)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:00 +0000 (00:08 +0100)
This makes debugging nicer, compared to trying to remember what the
IDs are.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_firmware_kms.c

index 78c3430..d9a5551 100644 (file)
@@ -265,7 +265,7 @@ static struct drm_plane *vc4_fkms_plane_init(struct drm_device *dev,
        ret = drm_universal_plane_init(dev, plane, 0xff,
                                       &vc4_plane_funcs,
                                       primary ? &xrgb8888 : &argb8888, 1, NULL,
-                                      type, NULL);
+                                      type, primary ? "primary" : "cursor");
 
        if (type == DRM_PLANE_TYPE_PRIMARY) {
                vc4_plane->fbinfo =