diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-04-17 16:55:47 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-04-17 16:55:47 +0800 |
commit | 602613e397bdf0cf701a6a7748f9343875864466 (patch) | |
tree | 835610cf0b35a1fe049ab1a395d7566c7248f94d /src/i830_exa.c | |
parent | 5a1f7351c5bfa9f12cf718036ccc43f66787ce11 (diff) |
Set EXA pitch limit for pre-965 chipset
Diffstat (limited to 'src/i830_exa.c')
-rw-r--r-- | src/i830_exa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i830_exa.c b/src/i830_exa.c index 9b5bb936..9e43bf71 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -510,11 +510,17 @@ I830EXAInit(ScreenPtr pScreen) pI830->EXADriverPtr->pixmapPitchAlign = 16; pI830->EXADriverPtr->maxX = 8192; pI830->EXADriverPtr->maxY = 8192; + /* maxPitch setting not necessary on 965, as hw support + * exa max pitch 128KB. */ } else { pI830->EXADriverPtr->pixmapOffsetAlign = 4; pI830->EXADriverPtr->pixmapPitchAlign = 16; pI830->EXADriverPtr->maxX = 2048; pI830->EXADriverPtr->maxY = 2048; +#if EXA_VERSION_MINOR >= 3 + pI830->EXADriverPtr->maxPitchPixels = pI830->EXADriverPtr->maxX; + pI830->EXADriverPtr->maxPitchBytes = KB(8); +#endif } /* Sync */ |