drm/vmwgfx: Default to explicit crtc placement for screen targets and screen objects
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 12 Feb 2016 08:59:50 +0000 (09:59 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 14 Mar 2016 13:59:25 +0000 (14:59 +0100)
Enables using multiple framebuffers. For legacy display units,
explicit crtc placement is not supported due to hardware limitations.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c

index 8a3d3c9f2d9f5a1f199a245a175be83015e92b59..0ea22fd112c9ccb892bf4e7367b6fcd41c5d323e 100644 (file)
@@ -516,7 +516,7 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit)
        sou->base.pref_width = dev_priv->initial_width;
        sou->base.pref_height = dev_priv->initial_height;
        sou->base.pref_mode = NULL;
-       sou->base.is_implicit = true;
+       sou->base.is_implicit = false;
 
        drm_connector_init(dev, connector, &vmw_sou_connector_funcs,
                           DRM_MODE_CONNECTOR_VIRTUAL);
index fe42a2cefb86638613af32191b00464fe3d68b6a..b949102ad8646f0541bfd8697d8854ce9fc6b878 100644 (file)
@@ -1109,7 +1109,7 @@ static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit)
        stdu->base.pref_active = (unit == 0);
        stdu->base.pref_width  = dev_priv->initial_width;
        stdu->base.pref_height = dev_priv->initial_height;
-       stdu->base.is_implicit = true;
+       stdu->base.is_implicit = false;
 
        drm_connector_init(dev, connector, &vmw_stdu_connector_funcs,
                           DRM_MODE_CONNECTOR_VIRTUAL);