diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2023-09-01 15:02:28 +0800 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2023-09-01 15:02:51 +0800 |
commit | affe95e1e31d90dfa88fb94677e2f120e1804d59 (patch) | |
tree | d0340fa344f87553d6503b190ab7c5c73a37e426 | |
parent | a2ecc64bdf50afd4972c0f2cd1c93b08d8b52d35 (diff) | |
download | mesa-tizen_23.1.5.tar.gz mesa-tizen_23.1.5.tar.bz2 mesa-tizen_23.1.5.zip |
Fix hang issue for CTStizen_23.1.5
1. fd_render_gpu will be closed by egl_dri2
2. the default value of fd_display_gpu is 0, wihch will be closed when
terminate app, but fd 0 is also used by tpl thread, when tpl thread fd
is closed here, io error occur, some thread will hang there.
Change-Id: I9aeda77f619535475125b777f1b19275faae450c
-rwxr-xr-x | src/egl/drivers/dri2/platform_tizen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c index d2666c2337b..ef929ed971b 100755 --- a/src/egl/drivers/dri2/platform_tizen.c +++ b/src/egl/drivers/dri2/platform_tizen.c @@ -1702,12 +1702,13 @@ dri2_initialize_tizen(_EGLDisplay *disp) disp->Device = dev; - if(dri2_dpy->fd_render_gpu != tbm_bufmgr_fd) { + /*if(dri2_dpy->fd_render_gpu != tbm_bufmgr_fd) { close(dri2_dpy->fd_render_gpu); } close(tbm_bufmgr_fd); tbm_bufmgr_fd = -1; - dri2_dpy->fd_render_gpu = -1; + dri2_dpy->fd_render_gpu = -1;*/ + dri2_dpy->fd_display_gpu = -1; if (!dri2_setup_extensions(disp)) { err = "DRI2: failed to find required DRI extensions"; |