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:
parent
a1d560e836
commit
88852d187c
1 changed files with 6 additions and 0 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue