]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 16 Feb 2018 22:11:43 +0000 (17:11 -0500)
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 7dd233eed677c1689492ab95bc86475330d2d63b..e6097046fb25361bc61d657083d95b634232aabc 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,
-                                      type, NULL);
+                                      type, primary ? "primary" : "cursor");
 
        if (type == DRM_PLANE_TYPE_PRIMARY) {
                vc4_plane->fbinfo =