]> Git Repo - linux.git/commitdiff
drm/vmwgfx: Fix Ubuntu 17.10 Wayland black screen issue
authorSinclair Yeh <[email protected]>
Wed, 1 Nov 2017 17:47:05 +0000 (10:47 -0700)
committerSinclair Yeh <[email protected]>
Wed, 1 Nov 2017 17:56:53 +0000 (10:56 -0700)
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 <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
Cc: [email protected]
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

index e84fee3ec4f333d48519c91ba690770cb5633f17..184340d486c377d38a2f21bb66cc56385a52d37b 100644 (file)
@@ -721,7 +721,7 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
                 * 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;
                dev_priv->prim_bb_mem =
This page took 0.054058 seconds and 4 git commands to generate.