aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-10-04 14:13:22 -0400
committerDave Airlie <airlied@redhat.com>2011-10-05 05:17:14 -0400
commit56d1c78df52323cdcd937505dccaa5d665dfab97 (patch)
treeb358c5d21fbf0016507ba554fbf517e549fb4869 /drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
parentd991ef0395596c4aeabcded322011d3f5fa9e74e (diff)
vmwgfx: Add screen object support
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
index 4a4e5ccd40d6..7fc8e7de180b 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
@@ -27,7 +27,6 @@
27 27
28#include "vmwgfx_kms.h" 28#include "vmwgfx_kms.h"
29 29
30#define VMWGFX_LDU_NUM_DU 8
31 30
32#define vmw_crtc_to_ldu(x) \ 31#define vmw_crtc_to_ldu(x) \
33 container_of(x, struct vmw_legacy_display_unit, base.crtc) 32 container_of(x, struct vmw_legacy_display_unit, base.crtc)
@@ -384,9 +383,9 @@ int vmw_kms_init_legacy_display_system(struct vmw_private *dev_priv)
384 drm_mode_create_dirty_info_property(dev_priv->dev); 383 drm_mode_create_dirty_info_property(dev_priv->dev);
385 384
386 if (dev_priv->capabilities & SVGA_CAP_MULTIMON) { 385 if (dev_priv->capabilities & SVGA_CAP_MULTIMON) {
387 for (i = 0; i < VMWGFX_LDU_NUM_DU; ++i) 386 for (i = 0; i < VMWGFX_NUM_DISPLAY_UNITS; ++i)
388 vmw_ldu_init(dev_priv, i); 387 vmw_ldu_init(dev_priv, i);
389 ret = drm_vblank_init(dev, VMWGFX_LDU_NUM_DU); 388 ret = drm_vblank_init(dev, VMWGFX_NUM_DISPLAY_UNITS);
390 } else { 389 } else {
391 /* for old hardware without multimon only enable one display */ 390 /* for old hardware without multimon only enable one display */
392 vmw_ldu_init(dev_priv, 0); 391 vmw_ldu_init(dev_priv, 0);