e_plane:remove pp_pending data only dpms off 97/186897/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 16 Aug 2018 09:55:04 +0000 (18:55 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 16 Aug 2018 09:55:11 +0000 (18:55 +0900)
Change-Id: I011549447ba9db9fff09e89e35609d6bc6103fa0
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_plane.c

index 9692698..f4abaf7 100644 (file)
@@ -1064,7 +1064,7 @@ _e_plane_pp_layer_commit_handler(tdm_layer *layer, unsigned int sequence,
      ELOGF("E_PLANE", "PP Layer Commit Handler Plane(%p)", NULL, NULL, plane);
 
    output = plane->output;
-   if (e_output_dpms_get(output))
+   if (e_output_dpms_get(output) == E_OUTPUT_DPMS_OFF)
      {
         _e_plane_pp_pending_data_remove(plane);
 
@@ -1187,7 +1187,7 @@ _e_plane_pp_layer_data_commit(E_Plane *plane, E_Plane_Commit_Data *data)
    EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE);
 
    output = plane->output;
-   if (e_output_dpms_get(output))
+   if (e_output_dpms_get(output) == E_OUTPUT_DPMS_OFF)
      {
         _e_plane_pp_pending_data_remove(plane);
         goto fail;
@@ -1315,7 +1315,7 @@ _e_plane_pp_commit_handler(tdm_pp *pp, tbm_surface_h tsurface_src, tbm_surface_h
      }
 
    output = plane->output;
-   if (e_output_dpms_get(output))
+   if (e_output_dpms_get(output) == E_OUTPUT_DPMS_OFF)
      {
         _e_plane_pp_pending_data_remove(plane);
         tbm_surface_queue_release(plane->pp_tqueue, tsurface_dst);
@@ -1346,7 +1346,7 @@ _e_plane_pp_commit(E_Plane *plane, E_Plane_Commit_Data *data)
            data->buffer_ref.buffer ? data->buffer_ref.buffer->resource : NULL, data);
 
    output = plane->output;
-   if (e_output_dpms_get(output))
+   if (e_output_dpms_get(output) == E_OUTPUT_DPMS_OFF)
      {
         _e_plane_pp_pending_data_remove(plane);
         return EINA_FALSE;