summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinbong, Lee <jinbong.lee@samsung.com>2024-01-02 05:28:28 +0000
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:56 +0800
commiteb13371eff8428809c4f6c42e649e56259fca33c (patch)
tree5d6f2fdf66799d166dd974b98cd02160c2677ab9
parent4e643fe7bf7c1e37078e69bc81a07176e4ff5780 (diff)
downloadmesa-eb13371eff8428809c4f6c42e649e56259fca33c.tar.gz
mesa-eb13371eff8428809c4f6c42e649e56259fca33c.tar.bz2
mesa-eb13371eff8428809c4f6c42e649e56259fca33c.zip
Add default swap interval for initialize egl_dri2
- if there is no initial setup, then swap_interval function doesn't worked Change-Id: I3c47eb5e6b4ff79bd930fa119a70b714321995b4
-rwxr-xr-xsrc/egl/drivers/dri2/platform_tizen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
index 0f110f31635..3205d0fd47f 100755
--- a/src/egl/drivers/dri2/platform_tizen.c
+++ b/src/egl/drivers/dri2/platform_tizen.c
@@ -1546,6 +1546,7 @@ static const struct dri2_egl_display_vtbl tizen_swrast_display_vtbl = {
.get_dri_drawable = dri2_surface_get_dri_drawable,
};
+
EGLBoolean
dri2_initialize_tizen(_EGLDisplay *disp)
{
@@ -1711,6 +1712,8 @@ dri2_initialize_tizen(_EGLDisplay *disp)
dri2_setup_screen(disp);
+ dri2_setup_swap_interval(disp, 1);
+
if (!tizen_add_configs(disp)) {
err = "DRI2: failed to add configs";
goto cleanup_screen;