summaryrefslogtreecommitdiff
path: root/src/nouveau_wfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nouveau_wfb.c')
-rw-r--r--src/nouveau_wfb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nouveau_wfb.c b/src/nouveau_wfb.c
index 47a0a93..e02fd1c 100644
--- a/src/nouveau_wfb.c
+++ b/src/nouveau_wfb.c
@@ -177,12 +177,12 @@ nouveau_wfb_setup_wrap(ReadMemoryProcPtr *pRead, WriteMemoryProcPtr *pWrite,
wfb->pitch = ppix->devKind;
/* 8192x8192x4 is 28 bits max, 64 - 28 == 36. */
wfb->multiply_factor = (((1ULL << 36) - 1) / wfb->pitch) + 1;
- wfb->tile_height = bo->tile_mode + 2;
+ if (bo->device->chipset < 0xc0)
+ wfb->tile_height = bo->tile_mode + 2;
+ else
+ wfb->tile_height = (bo->tile_mode >> 4) + 3;
wfb->horiz_tiles = wfb->pitch / 64;
have_tiled = 1;
-
- if (1 /* NV_ARCH_C0, FIXME */)
- wfb->tile_height = (bo->tile_mode >> 4) + 3;
}
out: