aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-07 11:01:39 +0100
committerEric Anholt <eric@anholt.net>2010-08-09 11:24:36 -0700
commit6eeefaf3c86b8937db8ad930c48bfb592fc5e32e (patch)
treec73c07925f9bc2d23d62271e95fe083a764a3640 /drivers/gpu/drm/i915/intel_overlay.c
parent560b85bb750c3c539641993dd508b61260c9e874 (diff)
downloadkernel_samsung_espresso10-6eeefaf3c86b8937db8ad930c48bfb592fc5e32e.zip
kernel_samsung_espresso10-6eeefaf3c86b8937db8ad930c48bfb592fc5e32e.tar.gz
kernel_samsung_espresso10-6eeefaf3c86b8937db8ad930c48bfb592fc5e32e.tar.bz2
drm/i915: Apply i830 errata for cursor alignment
i830 requires 32bpp cursors to be aligned to 16KB, so we have to expose the alignment parameter to i915_gem_attach_phys_object(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_overlay.c')
-rw-r--r--drivers/gpu/drm/i915/intel_overlay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 9ae61aa..4f00390 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -1367,7 +1367,8 @@ void intel_setup_overlay(struct drm_device *dev)
overlay->flip_addr = overlay->reg_bo->gtt_offset;
} else {
ret = i915_gem_attach_phys_object(dev, reg_bo,
- I915_GEM_PHYS_OVERLAY_REGS);
+ I915_GEM_PHYS_OVERLAY_REGS,
+ 0);
if (ret) {
DRM_ERROR("failed to attach phys overlay regs\n");
goto out_free_bo;