devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9cc25bf3c2f7affe6c959bce0d63322cd99b5a57

commit 9cc25bf3c2f7affe6c959bce0d63322cd99b5a57
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu May 14 11:49:51 2015 -0400

    evas-drm: Mark framebuffer as dirty before sending
    
    Summary: We should be marking the framebuffer dirty regions Before we
    send the pageflip to the kernel so that the kernel can properly
    optimize drawing dirty regions before scheduling a pageflip.
    
    NB: Slightly optimizes evas drm rendering a bit more. Thanks to Daniel
    Stone for the help :)
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index cfe1b3e..3530087 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -32,12 +32,12 @@ _evas_outbuf_buffer_swap(Outbuf *ob, Eina_Rectangle *rects, 
unsigned int count)
 
    buff = ob->priv.buffer[ob->priv.curr];
 
-   /* if this buffer is not valid, we need to set it */
-   ecore_drm_fb_set(ob->info->info.dev, buff);
-
    /* mark the fb as dirty */
    ecore_drm_fb_dirty(buff, rects, count);
 
+   /* if this buffer is not valid, we need to set it */
+   ecore_drm_fb_set(ob->info->info.dev, buff);
+
    /* send this buffer to the crtc */
    ecore_drm_fb_send(ob->info->info.dev, buff, _evas_outbuf_cb_pageflip, ob);
 }

-- 


Reply via email to