From 497c07387dd999641a76b546456449cd1206a586 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 19 Jan 2022 23:26:12 +0000 Subject: [PATCH] steamcompmgr: Always composite our first frame AMDGPU gets very very upset if the first commit that also does display bringup+modeset has multiple planes. :( --- src/steamcompmgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index eb26cc9..23544cf 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -1509,6 +1509,7 @@ paint_all() return; } + bool bWasFirstFrame = g_bFirstFrame; g_bFirstFrame = false; bool bDoComposite = true; @@ -1531,7 +1532,7 @@ paint_all() const bool bOverrideCompositeHack = false; #endif - if ( BIsNested() == false && alwaysComposite == false && bCapture == false && bOverrideCompositeHack == false ) + if ( BIsNested() == false && alwaysComposite == false && bCapture == false && bOverrideCompositeHack == false && bWasFirstFrame == false ) { int ret = drm_prepare( &g_DRM, &composite, &pipeline ); if ( ret == 0 )