Remove ALLOW_MODESET workaround

This is no longer needed as of Linux 5.10.

Closes: https://github.com/Plagman/gamescope/issues/67
This commit is contained in:
Simon Ser 2020-12-06 19:04:40 +01:00
parent 072599c037
commit cf8cf60a37

View file

@ -892,8 +892,7 @@ bool drm_prepare( struct drm_t *drm, struct Composite_t *pComposite, struct Vulk
static bool bFirstSwap = true; static bool bFirstSwap = true;
uint32_t flags = DRM_MODE_ATOMIC_NONBLOCK; uint32_t flags = DRM_MODE_ATOMIC_NONBLOCK;
// Temporary hack until we figure out what AMDGPU DC expects when changing the dest rect if ( bFirstSwap == true )
if ( 1 || bFirstSwap == true )
{ {
flags |= DRM_MODE_ATOMIC_ALLOW_MODESET; flags |= DRM_MODE_ATOMIC_ALLOW_MODESET;
} }