summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2019-04-19 18:15:59 +0900
committerSooChan Lim <sc1.lim@samsung.com>2019-06-03 06:23:35 +0000
commitfee4a2053305a9b976e88b85a1c63064127e791b (patch)
tree094a014f978c729bef8450057c57e8b5142033ba
parent685ebcc62f6a43d67939ce05bde6aebe7f683e43 (diff)
downloadmesa-fee4a2053305a9b976e88b85a1c63064127e791b.tar.gz
mesa-fee4a2053305a9b976e88b85a1c63064127e791b.tar.bz2
mesa-fee4a2053305a9b976e88b85a1c63064127e791b.zip
Changed the calling order of the enqueue_buffer.submit/tizen/20190603.062347accepted/tizen/unified/20190604.014616
- The buffer to enqueue should be the buffer in which the gpu drawing job is completed or after flush. - If this is not guaranteed, it can lead to incorrect output. Change-Id: Ic0246ebe52031cd006d636a0a55f02a5f675f61a Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--src/egl/drivers/dri2/platform_tizen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
index f9dcbf2790a..353cfd5ff3d 100644
--- a/src/egl/drivers/dri2/platform_tizen.c
+++ b/src/egl/drivers/dri2/platform_tizen.c
@@ -697,9 +697,6 @@ tizen_swap_buffers_with_damage(_EGLDriver *drv, _EGLDisplay *disp,
dri2_surf->back->age = 1;
- if (dri2_surf->tbm_surface)
- tizen_window_enqueue_buffer_with_damage(disp, dri2_surf, rects, n_rects);
-
if (dri2_dpy->swrast) {
dri2_dpy->core->swapBuffers(dri2_surf->dri_drawable);
} else {
@@ -707,6 +704,9 @@ tizen_swap_buffers_with_damage(_EGLDriver *drv, _EGLDisplay *disp,
dri2_dpy->flush->invalidate(dri2_surf->dri_drawable);
}
+ if (dri2_surf->tbm_surface)
+ tizen_window_enqueue_buffer_with_damage(disp, dri2_surf, rects, n_rects);
+
return EGL_TRUE;
}