File 0173-drm-vmwgfx-Fix-Ubuntu-17.10-Wayland-black-screen-iss.patch of Package drm.openSUSE_Leap_42.3_Update
From 55e7e521381788ec6395bdc917ac1fcd3a03b47e Mon Sep 17 00:00:00 2001
From: Sinclair Yeh <email@example.com>
Date: Wed, 1 Nov 2017 10:47:05 -0700
Subject: [PATCH] drm/vmwgfx: Fix Ubuntu 17.10 Wayland black screen issue
commit cef75036c40408ba3bc308bcb00a3d440da713fc upstream.
This is an extension of Commit 7c20d213dd3c ("drm/vmwgfx: Work
around mode set failure in 2D VMs")
With Wayland desktop and atomic mode set, during the mode setting
process there is a moment when two framebuffer sized surfaces
are being pinned. This was not an issue with Xorg.
Since this only happens during a mode change, there should be no
performance impact by increasing allowable mem_size.
Signed-off-by: Sinclair Yeh <firstname.lastname@example.org>
Reviewed-by: Thomas Hellstrom <email@example.com>
Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -721,7 +721,7 @@ static int vmw_driver_load(struct drm_de
* allocation taken by fbdev
if (!(dev_priv->capabilities & SVGA_CAP_3D))
- mem_size *= 2;
+ mem_size *= 3;
dev_priv->max_mob_pages = mem_size * 1024 / PAGE_SIZE;