steamcompmgr: Always composite our first frame

AMDGPU gets very very upset if the first commit that also does display bringup+modeset has multiple planes. :(
This commit is contained in:
Joshua Ashton 2022-01-19 23:26:12 +00:00 committed by Joshie
parent 9c8948cec4
commit 497c07387d

View file

@ -1509,6 +1509,7 @@ paint_all()
return; return;
} }
bool bWasFirstFrame = g_bFirstFrame;
g_bFirstFrame = false; g_bFirstFrame = false;
bool bDoComposite = true; bool bDoComposite = true;
@ -1531,7 +1532,7 @@ paint_all()
const bool bOverrideCompositeHack = false; const bool bOverrideCompositeHack = false;
#endif #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 ); int ret = drm_prepare( &g_DRM, &composite, &pipeline );
if ( ret == 0 ) if ( ret == 0 )