diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2024-07-09 12:22:34 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2024-07-09 16:26:30 +0900 |
commit | 5a779832bfd998dc4fff022376e11f87abef84ad (patch) | |
tree | 396939f8ca18a7e70a261a36879f2278c2ee68f6 | |
parent | 7868c435410969751f80677ebdf95e9d5488e31b (diff) | |
download | libtdm-vc4-5a779832bfd998dc4fff022376e11f87abef84ad.tar.gz libtdm-vc4-5a779832bfd998dc4fff022376e11f87abef84ad.tar.bz2 libtdm-vc4-5a779832bfd998dc4fff022376e11f87abef84ad.zip |
hwc: Get ownership of acquire_fence fd when fd is set to tdm backend
It is better to transfer ownership when fd is set in tdm for fd management.
Change-Id: I097243d06f8c467876927573f2260732f845ecbc
-rw-r--r-- | src/tdm_vc4_hwc_window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tdm_vc4_hwc_window.c b/src/tdm_vc4_hwc_window.c index 011fb59..9cdd347 100644 --- a/src/tdm_vc4_hwc_window.c +++ b/src/tdm_vc4_hwc_window.c @@ -204,8 +204,7 @@ vc4_hwc_window_set_acquire_fence(hal_tdm_hwc_window *hwc_window, int acquire_fen hwc_window_data->acquire_fence = -1; } - if (acquire_fence >= 0) - hwc_window_data->acquire_fence = dup(acquire_fence); + hwc_window_data->acquire_fence = acquire_fence; return HAL_TDM_ERROR_NONE; } |