backend-drm: Print whenever a view could not placed on the primary due to
authorMarius Vlad <marius.vlad@collabora.com>
Sat, 19 Oct 2019 15:18:38 +0000 (18:18 +0300)
committerDaniel Stone <daniels@collabora.com>
Mon, 11 Nov 2019 16:51:48 +0000 (16:51 +0000)
invalid size

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/backend-drm/state-propose.c

index 08f5c1293bb8e0b2de5d3204d4a06704aaba38c3..779eb9ff3eb3eb082399db4d291ac046d9faf29b 100644 (file)
@@ -420,8 +420,12 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state,
 
        /* Check the view spans exactly the output size, calculated in the
         * logical co-ordinate space. */
-       if (!weston_view_matches_output_entirely(ev, &output->base))
+       if (!weston_view_matches_output_entirely(ev, &output->base)) {
+               drm_debug(b, "\t\t\t\t[%s] not placing view %p on %s: "
+                            " view does not match output entirely\n",
+                            p_name, ev, p_name);
                return NULL;
+       }
 
        /* If the surface buffer has an in-fence fd, but the plane doesn't
         * support fences, we can't place the buffer on this plane. */