]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:55 +0000 (12:07 +0200)
This makes debugging nicer, compared to trying to remember what the
IDs are.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/vc4/vc4_firmware_kms.c

index d18a1dae51a2275846c9826b5bf1ba57ae97b55c..e49ce68b607a7ffc2329e3235362f3bc21ed5cbb 100644 (file)
@@ -267,7 +267,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 =