Don't setup fb compression if fb is not tiling

This commit is contained in:
Zhenyu Wang 2007-11-14 22:13:30 +08:00
parent 539b669d6e
commit 8cea3c8cfa
1 changed files with 3 additions and 0 deletions

View File

@ -2560,6 +2560,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
"Attempting memory allocation with %s buffers.\n",
(i & 1) ? "untiled" : "tiled");
if (!pI830->tiling && pI830->fb_compression)
pI830->fb_compression = FALSE;
if (i830_allocate_2d_memory(pScrn) &&
i830_allocate_3d_memory(pScrn))
{