e_plane: set 1 to set/unset_counter when fb_target enter hwc 16/179016/4
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 14 May 2018 10:13:51 +0000 (19:13 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 31 May 2018 04:04:30 +0000 (04:04 +0000)
plane should be synchronize set/unset th fb_target
even if fb_target enter hwc

Change-Id: I70ec8a92540422ac115a8b2c3f2d3c46c73da49c

src/bin/e_plane.c

index 6b41aea..0a050c1 100644 (file)
@@ -731,7 +731,7 @@ _e_plane_fb_target_all_set_unset_counter_reset(E_Plane *fb_target)
         /* reset the unset_counter */
         if (plane->unset_counter > 0)
           {
-             plane->unset_counter = 0;
+             plane->unset_counter = 1;
 
              if (plane_trace_debug)
                ELOGF("E_PLANE", " Plane(%p) Unset Counter Reset", NULL, NULL, plane);
@@ -740,7 +740,7 @@ _e_plane_fb_target_all_set_unset_counter_reset(E_Plane *fb_target)
         /* reset the set_counter */
         if (plane->set_counter > 0)
           {
-             plane->set_counter = 0;
+             plane->set_counter = 1;
 
              if (plane_trace_debug)
                ELOGF("E_PLANE", " Plane(%p) Set Counter Reset", NULL, NULL, plane);