[Intel-gfx] [PATCH] Check display stride limit when allocate front buffer
Eric Anholt
eric at anholt.net
Wed Sep 10 20:19:15 CEST 2008
On Wed, 2008-09-10 at 10:33 +0800, Zhenyu Wang wrote:
> Subject: [PATCH] Check display stride limit when allocate front buffer
>
> ---
> src/i830_memory.c | 27 +++++++++++++++++++++++++++
> 1 files changed, 27 insertions(+), 0 deletions(-)
>
> diff --git a/src/i830_memory.c b/src/i830_memory.c
> index 443cc4e..2119012 100644
> --- a/src/i830_memory.c
> +++ b/src/i830_memory.c
> @@ -158,6 +158,27 @@ i830_get_fence_size(ScrnInfoPtr pScrn, unsigned long size)
> }
>
> static Bool
> +i830_display_stride_ok(ScrnInfoPtr pScrn, int stride, Bool tiling)
> +{
> + I830Ptr pI830 = I830PTR(pScrn);
> + int limit = KB(32);
> +
> + if ((IS_845G(pI830) || IS_I85X(pI830)) && tiling)
> + limit = KB(8);
For 855 and 865 the limit I see for DSP[AB]STRIDE in the docs is 8kb,
always (though, of course, 865 doesn't have B).
--
Eric Anholt
eric at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20080910/b81b2dea/attachment.sig>
More information about the Intel-gfx
mailing list