diff options
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r-- | src/nv_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index b241ac7..094067d 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -856,13 +856,13 @@ NVMapMem(ScrnInfoPtr pScrn) { NVPtr pNv = NVPTR(pScrn); struct nouveau_device *dev = pNv->dev; - uint32_t tile_mode = 0, tile_flags = 0; + uint32_t tile_mode = 0, tile_flags = NOUVEAU_BO_TILE_SCANOUT; int ret, size; size = pScrn->displayWidth * (pScrn->bitsPerPixel >> 3); if (pNv->Architecture >= NV_ARCH_50 && pNv->tiled_scanout) { tile_mode = 4; - tile_flags = pScrn->bitsPerPixel == 16 ? 0x7000 : 0x7a00; + tile_flags |= pScrn->bitsPerPixel == 16 ? 0x7000 : 0x7a00; size *= NOUVEAU_ALIGN(pScrn->virtualY, (1 << (tile_mode + 2))); } else { size *= pScrn->virtualY; |