From b306714f3cddb0ee0d554fb418c99b8244ccaa77 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Sat, 18 Jan 2020 03:40:51 +0000 Subject: [PATCH] drm: always set DRM_MODE_ATOMIC_ALLOW_MODESET for now. That seems to make DC happier when we change the src and dst rects. --- src/drm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drm.cpp b/src/drm.cpp index 54925b5..39b64e8 100644 --- a/src/drm.cpp +++ b/src/drm.cpp @@ -749,7 +749,8 @@ bool drm_can_avoid_composite( struct drm_t *drm, struct Composite_t *pComposite, uint32_t flags = DRM_MODE_ATOMIC_NONBLOCK; uint32_t blob_id; - if ( bFirstSwap == true ) + // Temporary hack until we figure out what AMDGPU DC expects when changing the dest rect + if ( 1 || bFirstSwap == true ) { flags |= DRM_MODE_ATOMIC_ALLOW_MODESET; bFirstSwap = false;