derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2653fd3fda175d6f2ee5e484af2dd0df265746b7

commit 2653fd3fda175d6f2ee5e484af2dd0df265746b7
Author: Derek Foreman <[email protected]>
Date:   Wed May 10 16:10:49 2017 -0500

    gl_drm: Fix rendering problems with dmabuf
    
    Somehow this long standing bug wasn't obvious until wayland 1.13.0 made
    some additions to an opaque structure.
    
    This changed the frequency that new buffers came to us with the exact
    same pointer value of a buffer that had just been freed.
    
    This shortcut in eng_image_native_set has always been wrong - we need to
    proceed to the end to make sure we pick up new dmabuf attributes.
---
 src/modules/evas/engines/gl_drm/evas_engine.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c 
b/src/modules/evas/engines/gl_drm/evas_engine.c
index 06095d4..fca3305 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -1105,14 +1105,6 @@ eng_image_native_set(void *data, void *image, void 
*native)
         if (ns->type == EVAS_NATIVE_SURFACE_WL_DMABUF)
           {
              wl_buf = ns->data.wl_dmabuf.resource;
-             if (img->native.data)
-               {
-                  Evas_Native_Surface *ens;
-
-                  ens = img->native.data;
-                  if (ens->data.wl_dmabuf.resource == wl_buf)
-                    return img;
-               }
           }
         else if (ns->type == EVAS_NATIVE_SURFACE_WL)
           {

-- 


Reply via email to