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>
This commit is contained in:
parent
56e5816252
commit
3a7c25ff8d
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue