This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 11cd98e119901f1e06da491b0c8791850150dfe5
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Tue Feb 13 14:28:57 2024 +0000

    ecore drm2 - use last plane found not first. makes it work on rk3588
    
    this is a temporary hack until things change a bit...
---
 src/lib/ecore_drm2/ecore_drm2_plane.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 6dfa0bcb85..dd7a6691b4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -43,7 +43,7 @@ ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb, int x, int
 {
    Eina_List *l;
    Ecore_Drm2_Plane *plane;
-   Ecore_Drm2_Plane_State *pstate;
+   Ecore_Drm2_Plane_State *pstate, *pstate_chosen = NULL;
 
    if (!_ecore_drm2_use_atomic) return NULL;
 
@@ -68,12 +68,12 @@ ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb, int x, int
                continue;
 
              /* if we reach here, this FB can go on the cursor plane */
-             goto out;
+             pstate_chosen = pstate;
           }
         else if (pstate->type.value == DRM_PLANE_TYPE_OVERLAY)
           {
              /* there are no size checks for an overlay plane */
-             goto out;
+             pstate_chosen = pstate;
           }
         else if (pstate->type.value == DRM_PLANE_TYPE_PRIMARY)
           {
@@ -82,10 +82,15 @@ ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb, int x, int
                continue;
 
              /* if we reach here, this FB can go on the primary plane */
-             goto out;
+             pstate_chosen = pstate;
           }
      }
 
+   if (pstate_chosen)
+     {
+        pstate = pstate_chosen;
+        goto out;
+     }
    return NULL;
 
 out:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to