diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2012-02-09 16:56:46 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-13 12:01:35 +0000 |
commit | eb4f923b1ceac8a618469c51ff249bd89bc0dfa4 (patch) | |
tree | 4bd78f324d55c67bc58b2aa9944f157f0e96cfc0 /drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | |
parent | b5ec427e8d8c66ea1bb9a3bf09663c1361ecf0b6 (diff) | |
download | op-kernel-dev-eb4f923b1ceac8a618469c51ff249bd89bc0dfa4.zip op-kernel-dev-eb4f923b1ceac8a618469c51ff249bd89bc0dfa4.tar.gz |
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_ldu.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index f77b184..070fb23 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c @@ -354,8 +354,8 @@ static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) INIT_LIST_HEAD(&ldu->active); ldu->base.pref_active = (unit == 0); - ldu->base.pref_width = 800; - ldu->base.pref_height = 600; + ldu->base.pref_width = dev_priv->initial_width; + ldu->base.pref_height = dev_priv->initial_height; ldu->base.pref_mode = NULL; ldu->base.is_implicit = true; |