summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorVille Syrjälä2015-06-11 15:31:16 +0200
committerDaniel Vetter2015-06-15 18:08:35 +0200
commit44c5905e8e977b1dd9bb99bcd5686464fa0aa247 (patch)
tree41de9a4b74f34f2e9ff89b616d702f3649be71e2 /drivers/gpu/drm/i915/intel_display.c
parentdrm/i915: Align DSPSURF to 128k on VLV/CHV (diff)
downloadkernel-qcow2-linux-44c5905e8e977b1dd9bb99bcd5686464fa0aa247.tar.gz
kernel-qcow2-linux-44c5905e8e977b1dd9bb99bcd5686464fa0aa247.tar.xz
kernel-qcow2-linux-44c5905e8e977b1dd9bb99bcd5686464fa0aa247.zip
drm/i915: Drop the 64k linear scanout alignment on gen2/3
The docs don't support the 64k linear scanout alignment we impose on gen2/3. And it really makes no sense since we have no DSPSURF register, so the only thing that the hardware will see is the linear offset which will be just pixel aligned anyway. There is one case where 64k comes into the picture, and that's FBC. The start of the line length buffer corresponds to a 64k aligned address of the uncompressed framebuffer. So if the uncompressed fb is not 64k aligned, the first actually used entry in the line length buffer will not be byte 0. There are 32 extra entries in the line length buffer to account for this extra alignment so we shouldn't have to worry about it when mapping the uncompressed fb to the GTT. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e94a9a0a6d91..a806f1598a46 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2339,7 +2339,7 @@ static unsigned int intel_linear_alignment(struct drm_i915_private *dev_priv)
else if (INTEL_INFO(dev_priv)->gen >= 4)
return 4 * 1024;
else
- return 64 * 1024;
+ return 0;
}
int