diff options
author | jinbong, Lee <jinbong.lee@samsung.com> | 2024-01-03 11:34:09 +0000 |
---|---|---|
committer | Jinbong Lee <jinbong.lee@samsung.com> | 2024-01-03 11:51:47 +0000 |
commit | dbd7aa888711a44f23fc6f638c5fef7b01f2ed17 (patch) | |
tree | 1c59171448bc45303a796305b296a36dcb7447fe | |
parent | 28eb214bf13d1cb157239df5dd45808358ab577e (diff) | |
download | mesa-accepted/tizen_unified_riscv.tar.gz mesa-accepted/tizen_unified_riscv.tar.bz2 mesa-accepted/tizen_unified_riscv.zip |
Remove useless & unsafe unlock/lock codeaccepted/tizen/unified/x/20240226.135043accepted/tizen/unified/riscv/20240108.035927accepted/tizen/unified/20240226.134013accepted/tizen/unified/20240105.165031accepted/tizen_unified_riscv
- there is no blocking function in tizen_window_enqueue_buffer_with_damage
- So there is no blocking to other EGL calls
- In additionally, it can cause some broken situation in multi-threaded egl api call,
- because of display's Mutex protection is not working during unlocked time.
Change-Id: Ib683a8478b5ba1a8f855f675d70407e5b34bd26c
-rwxr-xr-x | src/egl/drivers/dri2/platform_tizen.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c index 37ecaa68abc..64bb7f907c5 100755 --- a/src/egl/drivers/dri2/platform_tizen.c +++ b/src/egl/drivers/dri2/platform_tizen.c @@ -297,12 +297,6 @@ tizen_window_enqueue_buffer_with_damage(_EGLDisplay *disp, struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); int fence_fd = -1; - /* To avoid blocking other EGL calls, release the display mutex before - * we enter tizen_window_enqueue_buffer() and re-acquire the mutex upon - * return. - */ - simple_mtx_unlock(&disp->Mutex); - fence_fd = dri2_surf->out_fence_fd; if (fence_fd >= 0 && dri2_surf->is_frontbuffer_mode) { @@ -325,8 +319,6 @@ tizen_window_enqueue_buffer_with_damage(_EGLDisplay *disp, dri2_surf->tbm_surface = NULL; dri2_surf->back = NULL; - simple_mtx_lock(&disp->Mutex); - if (dri2_surf->dri_image_back) { dri2_dpy->image->destroyImage(dri2_surf->dri_image_back); dri2_surf->dri_image_back = NULL; |