diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2012-02-09 10:56:46 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-13 07:01:35 -0500 |
commit | eb4f923b1ceac8a618469c51ff249bd89bc0dfa4 (patch) | |
tree | 4bd78f324d55c67bc58b2aa9944f157f0e96cfc0 /drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | |
parent | b5ec427e8d8c66ea1bb9a3bf09663c1361ecf0b6 (diff) |
vmwgfx: Pick up the initial size from the width and height regs
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index 97aca0bf94d0..6deaf2f8bab1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | |||
@@ -449,8 +449,8 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit) | |||
449 | sou->active_implicit = false; | 449 | sou->active_implicit = false; |
450 | 450 | ||
451 | sou->base.pref_active = (unit == 0); | 451 | sou->base.pref_active = (unit == 0); |
452 | sou->base.pref_width = 800; | 452 | sou->base.pref_width = dev_priv->initial_width; |
453 | sou->base.pref_height = 600; | 453 | sou->base.pref_height = dev_priv->initial_height; |
454 | sou->base.pref_mode = NULL; | 454 | sou->base.pref_mode = NULL; |
455 | sou->base.is_implicit = true; | 455 | sou->base.is_implicit = true; |
456 | 456 | ||