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.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-05-14 11:49:51 -04:00
parent e0fe487856
commit 9cc25bf3c2
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}