drm: always set DRM_MODE_ATOMIC_ALLOW_MODESET for now.

That seems to make DC happier when we change the src and dst rects.
This commit is contained in:
Pierre-Loup A. Griffais 2020-01-18 03:40:51 +00:00
parent bb52b60301
commit b306714f3c

View file

@ -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;