summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-04 21:34:26 -0600
committerDudemanguy <random342@airmail.cc>2023-01-21 17:08:29 +0000
commit92a6f2d687e90452c9080a2e0b471ced7557518f (patch)
tree0676341e88224c4e670e7ed0f3904b04e204b8bd /video/out/vo.h
parent8c617765fe88a5d5597fb58d4b593161049de710 (diff)
downloadmpv-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 'video/out/vo.h')
-rw-r--r--video/out/vo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 98e13cd890..05882064a2 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -458,6 +458,7 @@ struct vo {
struct vo_cocoa_state *cocoa;
struct vo_wayland_state *wl;
struct vo_android_state *android;
+ struct vo_drm_state *drm;
struct mp_hwdec_devices *hwdec_devs;
struct input_ctx *input_ctx;
struct osd_state *osd;