summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-11-18 09:43:15 -0600
committerDerek Foreman <derekf@osg.samsung.com>2016-11-18 09:43:15 -0600
commit8a7c154a57861afab62b4f87b250831df84d4f99 (patch)
tree85023a727cc7202cd282f0c273b83a744c1e584e
parentaa3479570d0ee48865a1beeeff95fd280178d2d7 (diff)
gl_drm: Release any unqueued buffer before starting a render
If there's a "next" buffer set, we're better off freeing it before we start to render. This lets us keep gbm from allocating an extra buffer which it currently never frees.
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index e225b42586..1f8ae744eb 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -583,6 +583,7 @@ evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth)
583Render_Engine_Swap_Mode 583Render_Engine_Swap_Mode
584evas_outbuf_buffer_state_get(Outbuf *ob) 584evas_outbuf_buffer_state_get(Outbuf *ob)
585{ 585{
586 ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
586 /* check for valid output buffer */ 587 /* check for valid output buffer */
587 if (!ob) return MODE_FULL; 588 if (!ob) return MODE_FULL;
588 589