From 7beee68f8d8617557990a5f860d9d1f99c4ba009 Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Sat, 2 Jun 2018 12:53:54 +0200 Subject: 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. --- video/out/drm_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/drm_common.h') 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; -- cgit v1.2.3