Commit 4a99dcef authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

DRI2: Don't waste overlay on a strange 1x1 window created by gnome-shell

We manage only a single hardware overlay. That's a precious shared
resource, which we want to use for zero-copy fullscreen compositing
in gnome-shell. The strange 1x1 window does not really need it.
Fixes https://github.com/ssvb/xf86-video-sunxifb/issues/2

Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent 789460c1
......@@ -339,6 +339,10 @@ static DRI2Buffer2Ptr MaliDRI2CreateBuffer(DrawablePtr pDraw,
if (private->pOverlayWin && private->pOverlayWin != (void *)pDraw)
can_use_overlay = FALSE;
/* Don't waste overlay on some strange 1x1 window created by gnome-shell */
if (pDraw->width == 1 && pDraw->height == 1)
can_use_overlay = FALSE;
/* TODO: try to support other color depths later */
if (pDraw->bitsPerPixel != 32)
can_use_overlay = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment