evas-drm: Check buffer validity in swap function

@bugfix: Check (and set) buffer validity before calling
framebuffer_send. This fixes an issue where buffer was not valid,
causing next_update_get to do full Copies.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-05 07:09:19 +00:00
parent b117d48159
commit 3692f0905c
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ _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 */
if (!buff->valid) evas_drm_outbuf_framebuffer_set(ob, buff);
/* mark the fb as dirty */
_evas_outbuf_buffer_put(ob, buff, rects, count);