devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=258ce60930ea709495db228bde874e6248d66827

commit 258ce60930ea709495db228bde874e6248d66827
Author: Chris Michael <[email protected]>
Date:   Wed Feb 12 07:30:58 2014 +0000

    evas-drm: Call framebuffer_set earlier in the process so that the screen 
gets
    updated sooner.
    
    @bugfix: set framebuffer on crtc earlier in process
    @bugfix: Set the rendered image's alpha flag to be equal to the output 
buffer's
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index 256f1b6..b4941f9 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -33,7 +33,7 @@ _evas_outbuf_buffer_new(Outbuf *ob, Buffer *buffer)
         return EINA_FALSE;
      }
 
-   /* evas_drm_outbuf_framebuffer_set(ob, buffer); */
+   evas_drm_outbuf_framebuffer_set(ob, buffer);
 
    return EINA_TRUE;
 }
@@ -62,7 +62,8 @@ _evas_outbuf_buffer_put(Outbuf *ob, Buffer *buffer, 
Eina_Rectangle *rects, unsig
 
    if (ob->priv.sent != buffer)
      {
-        if (!buffer->valid) evas_drm_outbuf_framebuffer_set(ob, buffer);
+        /* DBG("Send New Buffer: %d", buffer->fb); */
+        /* if (!buffer->valid) evas_drm_outbuf_framebuffer_set(ob, buffer); */
         if (!evas_drm_framebuffer_send(ob, buffer, rects, count))
           ERR("Could not send buffer");
      }
@@ -300,7 +301,8 @@ evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int 
w, int h, int *cx, i
              return NULL;
           }
 
-        img->cache_entry.flags.alpha |= ob->destination_alpha;
+        img->cache_entry.flags.alpha = ob->destination_alpha;
+//        img->cache_entry.flags.alpha |= ob->destination_alpha;
 
 #ifdef EVAS_CSERVE2
         if (evas_cserve2_use_get())
@@ -318,6 +320,7 @@ evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int 
w, int h, int *cx, i
         if (cy) *cy = 0;
         if (cw) *cw = w;
         if (ch) *ch = h;
+
         return img;
      }
 

-- 


Reply via email to