]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/i915: Fix cursor physical address choice to match the 2D driver.
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 21 Jan 2009 03:10:54 +0000 (19:10 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 22 Jan 2009 12:29:03 +0000 (22:29 +1000)
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c

index 57e8eb636a77a6ce79d2437f139bd665ee1f190a..ee64b7301f6722300bc4362ac5c84010e9355562 100644 (file)
@@ -944,11 +944,14 @@ static int i915_load_modeset_init(struct drm_device *dev)
        dev->mode_config.fb_base = drm_get_resource_start(dev, fb_bar) &
                0xff000000;
 
-       if (IS_MOBILE(dev) || (IS_I9XX(dev) && !IS_I965G(dev) && !IS_G33(dev)))
+       if (IS_MOBILE(dev) || IS_I9XX(dev))
                dev_priv->cursor_needs_physical = true;
        else
                dev_priv->cursor_needs_physical = false;
 
+       if (IS_I965G(dev) || IS_G33(dev))
+               dev_priv->cursor_needs_physical = false;
+
        ret = i915_probe_agp(dev, &agp_size, &prealloc_size);
        if (ret)
                goto kfree_devname;