summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-05-14 10:24:07 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-05-14 11:00:17 +0200
commit94d9bb93013c71cb212ea46458cf063cf2aba2fa (patch)
tree96e3e8ddf9d4dbd8ec5f9d7d4267ea354968124d
parentf006899280506c9704c0105fb9869ce9f67fdf4e (diff)
Pre-R600 EXA: Fix coordinate limits off-by-one error.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21598 . (cherry picked from commit 22e39392297fa11003df90c175db3c449d8f9853)
-rw-r--r--src/radeon_exa_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c
index 59cb46fc..482abcd8 100644
--- a/src/radeon_exa_funcs.c
+++ b/src/radeon_exa_funcs.c
@@ -532,11 +532,11 @@ Bool FUNC_NAME(RADEONDrawInit)(ScreenPtr pScreen)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Setting EXA maxPitchBytes\n");
info->accel_state->exa->maxPitchBytes = 16320;
- info->accel_state->exa->maxX = 8192;
+ info->accel_state->exa->maxX = 8191;
#else
info->accel_state->exa->maxX = 16320 / 4;
#endif
- info->accel_state->exa->maxY = 8192;
+ info->accel_state->exa->maxY = 8191;
if (xf86ReturnOptValBool(info->Options, OPTION_EXA_VSYNC, FALSE)) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "EXA VSync enabled\n");