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

git pushed a commit to branch devs/devilhorns/apos
in repository efl.

View the commit online.

commit 68424aa5ca4fbf624ae1de6b17af0a998abce4f5
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Wed Nov 6 07:26:57 2024 -0500

    ecore_drm2: When applying crtc changes we can handle 'active' changes
    in the modeset function also
---
 src/lib/ecore_drm2/ecore_drm2_crtcs.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_crtcs.c b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
index 53001f0a79..784cc14f6e 100644
--- a/src/lib/ecore_drm2/ecore_drm2_crtcs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
@@ -313,15 +313,18 @@ _ecore_drm2_crtcs_changes_apply(Ecore_Drm2_Crtc *crtc)
    cstate = crtc->state.current;
    pstate = crtc->state.pending;
 
-   if (pstate->changes & ECORE_DRM2_CRTC_STATE_MODE)
+   if (pstate->changes &
+       (ECORE_DRM2_CRTC_STATE_MODE | ECORE_DRM2_CRTC_STATE_ACTIVE))
      {
 	if (!_ecore_drm2_crtcs_mode_set(crtc))
 	  return EINA_FALSE;
 
-	pstate->changes &= ~ECORE_DRM2_CRTC_STATE_MODE;
-     }
+        if (pstate->changes & ECORE_DRM2_CRTC_STATE_MODE)
+          pstate->changes &= ~ECORE_DRM2_CRTC_STATE_MODE;
 
-   /* TODO: add gamma */
+        if (pstate->changes & ECORE_DRM2_CRTC_STATE_ACTIVE)
+          pstate->changes &= ~ECORE_DRM2_CRTC_STATE_ACTIVE;
+     }
 
    /* copy pending state to current on success */
    memcpy(cstate, pstate, sizeof(Ecore_Drm2_Crtc_State));

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

Reply via email to