summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.h
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2018-06-02 12:53:54 +0200
committerJan Ekström <jeebjp@gmail.com>2018-07-09 02:17:47 +0300
commit7beee68f8d8617557990a5f860d9d1f99c4ba009 (patch)
tree592bd1673b1edd902746e4bf39d9c7406d69f987 /video/out/drm_common.h
parent1298b9d201fc61cfffc6f82d78ae27fc294655b7 (diff)
downloadmpv-7beee68f8d8617557990a5f860d9d1f99c4ba009.tar.bz2
mpv-7beee68f8d8617557990a5f860d9d1f99c4ba009.tar.xz
context_drm_egl: Fix CRTC setup and release code when using atomic
The previous code did not save enough information about the old state, and could end up changing what plane the fbcon:s FB got attached to, or in worse case causing a blank screen (observed in some multi-screen setups on Sandy Bridge). In addition refactor the handling of drmModeModeInfo property blobs to not leak, as well as enable reuse of already created blobs.
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r--video/out/drm_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h
index 4d1e2a9e3f..3f144102ec 100644
--- a/video/out/drm_common.h
+++ b/video/out/drm_common.h
@@ -32,7 +32,7 @@ struct kms {
int fd;
drmModeConnector *connector;
drmModeEncoder *encoder;
- drmModeModeInfo mode;
+ struct drm_mode mode;
uint32_t crtc_id;
int card_no;
struct drm_atomic_context *atomic_context;