summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-07-12 19:47:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-07-12 19:47:46 +0100
commit3a7c25ff8ddd45c9d9eca5cc2228552847ca9e7d (patch)
tree03849cf7a28a7a2e1622777c635790d9507a0b18
parent56e5816252afbc7dd555c308ca678fce7ee584cc (diff)
video: Apply overlay stride errata for i830 and i845
Due to an erratum on these chipsets, the overlay stride must be a multiple of 256 bytes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/intel_video.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel_video.c b/src/intel_video.c
index 11fd7fad..f99cad89 100644
--- a/src/intel_video.c
+++ b/src/intel_video.c
@@ -1383,6 +1383,11 @@ intel_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, sh
* stride must be at least 512 bytes. Take the easy fix
* and align on 512 bytes unconditionally. */
pitchAlignMask = 511;
+ else if (IS_I830(intel) || IS_845G(intel))
+ /* Harsh, errata on these chipsets limit the stride to be
+ * a multiple of 256 bytes.
+ */
+ pitchAlignMask = 255;
else
pitchAlignMask = 63;
}