From 92a6f2d687e90452c9080a2e0b471ced7557518f Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 4 Jan 2023 21:34:26 -0600 Subject: 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. --- options/options.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'options/options.h') 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; -- cgit v1.2.3