forked from enlightenment/efl
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:
parent
e0fe487856
commit
9cc25bf3c2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue