aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-02-11 09:26:30 -0500
committerDave Airlie <airlied@redhat.com>2009-02-19 21:21:11 -0500
commit2ebed176a7ee126448d34fc336afb2ea0238c280 (patch)
tree42a0ee990068af7be1a359d41ea141f4236a4c40 /drivers
parent8d59bae5d9aae10ab230561519bfb97962509bcb (diff)
drm/i915: Set framebuffer alignment based upon the fence constraints.
Set the request alignment to 0, and leave it up to i915_gem_object_pin() to set the appropriate alignment to match the fence covering the object. Eric Anholt mentioned that the pinning code is meant to choose the maximum of the request alignment and that of the fence covering the object... However currently, the pinning code will only apply the fence constraints if the supplied alignment is 0. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index bbdd72909a11..a440d0db5ccc 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -377,10 +377,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
377 alignment = 64 * 1024; 377 alignment = 64 * 1024;
378 break; 378 break;
379 case I915_TILING_X: 379 case I915_TILING_X:
380 if (IS_I9XX(dev)) 380 /* pin() will align the object as required by fence */
381 alignment = 1024 * 1024; 381 alignment = 0;
382 else
383 alignment = 512 * 1024;
384 break; 382 break;
385 case I915_TILING_Y: 383 case I915_TILING_Y:
386 /* FIXME: Is this true? */ 384 /* FIXME: Is this true? */