EXA: Added back the maxPitchPixels initialization code.
This doesn't add real value yet, but it will be useful once I add code that splits large render operations into smaller parts if necessary.
This commit is contained in:
parent
c11a27ef85
commit
cfe549d1ba
15
exa/exa.c
15
exa/exa.c
|
@ -726,6 +726,21 @@ exaDriverInit (ScreenPtr pScreen,
|
||||||
"non-NULL\n", pScreen->myNum);
|
"non-NULL\n", pScreen->myNum);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If the driver doesn't set any max pitch values, we'll just assume
|
||||||
|
* that there's a limitation by pixels, and that it's the same as
|
||||||
|
* maxX.
|
||||||
|
*
|
||||||
|
* We want maxPitchPixels or maxPitchBytes to be set so we can check
|
||||||
|
* pixmaps against the max pitch in exaCreatePixmap() -- it matters
|
||||||
|
* whether a pixmap is rejected because of its pitch or
|
||||||
|
* because of its width.
|
||||||
|
*/
|
||||||
|
if (!pScreenInfo->maxPitchPixels && !pScreenInfo->maxPitchBytes)
|
||||||
|
{
|
||||||
|
pScreenInfo->maxPitchPixels = pScreenInfo->maxX;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
ps = GetPictureScreenIfSet(pScreen);
|
ps = GetPictureScreenIfSet(pScreen);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue