diff options
author | Dudemanguy <random342@airmail.cc> | 2023-01-04 21:34:26 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-21 17:08:29 +0000 |
commit | 92a6f2d687e90452c9080a2e0b471ced7557518f (patch) | |
tree | 0676341e88224c4e670e7ed0f3904b04e204b8bd /options/options.h | |
parent | 8c617765fe88a5d5597fb58d4b593161049de710 (diff) | |
download | mpv-92a6f2d687e90452c9080a2e0b471ced7557518f.tar.bz2 mpv-92a6f2d687e90452c9080a2e0b471ced7557518f.tar.xz |
drm: rewrite based around vo_drm_state
A longstanding pain point of the drm VOs is the relative lack of state
sharing. While drm_common does provide some sharing, it's far less than
other platforms like x11 or wayland. What we do here is essentially copy
them by creating a new vo_drm_state struct and using it in vo_drm and
context_drm_egl. Much of the functionality that was essentially
duplicated in both VOs/contexts is now reduced simple functions in
drm_common. The usage of the term 'kms' was also mostly eliminated since
this is libdrm nowadays from a userspace perspective.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/options/options.h b/options/options.h index 5560f40554..86e95dc826 100644 --- a/options/options.h +++ b/options/options.h @@ -66,9 +66,6 @@ typedef struct mp_vo_opts { double timing_offset; int video_sync; - // vo_drm - struct drm_opts *drm_opts; - struct m_geometry android_surface_size; int swapchain_depth; // max number of images to render ahead @@ -360,6 +357,7 @@ typedef struct MPOpts { struct d3d11va_opts *d3d11va_opts; struct cocoa_opts *cocoa_opts; struct macos_opts *macos_opts; + struct drm_opts *drm_opts; struct wayland_opts *wayland_opts; struct dvd_opts *dvd_opts; struct vaapi_opts *vaapi_opts; |