steamcompmgr: HACK! Always composite with a cursor

Cursor plane on AMDGPU is very broken with both rotation and overlay planes that are not screen sized. Workaround for now.
This commit is contained in:
Joshua Ashton 2022-01-30 00:10:47 +00:00
parent a1d560e836
commit 88852d187c

View file

@ -1613,11 +1613,16 @@ paint_all()
}
}
bool bDrewCursor = false;
// Draw cursor if we need to
if (input) {
int nLayerCountBefore = composite.nLayerCount;
global_focus.cursor->paint(
input, w == input ? override : nullptr,
&composite, &pipeline);
int nLayerCountAfter = composite.nLayerCount;
bDrewCursor = nLayerCountAfter > nLayerCountBefore;
}
if ( !bValidContents || ( BIsNested() == false && g_DRM.paused == true ) )
@ -1657,6 +1662,7 @@ paint_all()
bNeedsComposite |= bWasFirstFrame;
bNeedsComposite |= composite.useFSRLayer0;
bNeedsComposite |= bNeedsNearest;
bNeedsComposite |= bDrewCursor;
if ( !bNeedsComposite )
{