diff options
author | Dudemanguy <random342@airmail.cc> | 2023-11-06 16:35:04 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-07 00:52:46 +0000 |
commit | 2872e929bbe25d845e1aa08a5a366cdc660bb4d0 (patch) | |
tree | c48d9014279489edb5352c9e711b6ec40ec8ac0c /video/out/drm_common.c | |
parent | cf69fa03ca5c5dae0db79c6c96b148088180936a (diff) | |
download | mpv-2872e929bbe25d845e1aa08a5a366cdc660bb4d0.tar.bz2 mpv-2872e929bbe25d845e1aa08a5a366cdc660bb4d0.tar.xz |
present_sync: only save as many entries as the swapchain depth
Saving more than the swapchain depth is just wasteful. We can just save
a copy of the vo_opts here and check the value whenever we're updating
values.
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r-- | video/out/drm_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c index 2b68bac2ff..fcd2a3baee 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -1030,7 +1030,7 @@ bool vo_drm_init(struct vo *vo) drm->ev.version = DRM_EVENT_CONTEXT_VERSION; drm->ev.page_flip_handler = &drm_pflip_cb; - drm->present = mp_present_initialize(drm, VO_MAX_SWAPCHAIN_DEPTH); + drm->present = mp_present_initialize(drm, drm->vo->opts, VO_MAX_SWAPCHAIN_DEPTH); return true; |