view: add and fix the trace log of view 10/263810/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 10 Sep 2021 05:17:17 +0000 (14:17 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 10 Sep 2021 06:43:44 +0000 (15:43 +0900)
Change-Id: I8a65d730ad9e26494a0b1e8600dfaa969fc8f167

src/lib/pepper/view.c

index 3699c5f..7eedc4a 100644 (file)
@@ -36,7 +36,7 @@ pepper_view_mark_dirty(pepper_view_t *view, uint32_t flag)
        int             i;
 
        if (view->dirty & flag) {
-               PEPPER_TRACE("pepper_view_mark_dirty view:%p, dirty:%x, flag:%x\n", view, view->dirty, flag);
+               PEPPER_TRACE("view:%p, dirty:%x, flag:%x\n", view, view->dirty, flag);
                return;
        }
 
@@ -165,18 +165,22 @@ pepper_view_update(pepper_view_t *view)
                view->dirty &= ~PEPPER_VIEW_ACTIVE_DIRTY;
 
        if (!view->dirty) {
-               PEPPER_TRACE("pepper_view_update view:%p not dirty\n", view);
+               PEPPER_TRACE("view:%p not dirty\n", view);
                return;
        }
 
+       PEPPER_TRACE("view:%p dirty\n", view);
+
        view->active = active;
 
        /* Damage for the view unmap will be handled by assigning NULL plane. */
        if (!view->active) {
-               PEPPER_TRACE("pepper_view_update view:%p not active\n", view);
+               PEPPER_TRACE("view:%p not active\n", view);
                return;
        }
 
+       PEPPER_TRACE("view:%p active\n", view);
+
        /* We treat the modification as unmapping and remapping the view. So,
         * damage for the unmap and damage for the remap.
         *
@@ -251,6 +255,8 @@ pepper_view_update(pepper_view_t *view)
                }
        }
 
+       PEPPER_TRACE("view:%p output_overlap:%d\n", view, view->output_overlap);
+
        /* Mark the plane entries as damaged. */
        for (i = 0; i < PEPPER_MAX_OUTPUT_COUNT; i++)
                view->plane_entries[i].need_damage = PEPPER_TRUE;