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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nouveau_wfb.c b/src/nouveau_wfb.c
index e02fd1c..d95d162 100644
--- a/src/nouveau_wfb.c
+++ b/src/nouveau_wfb.c
@@ -178,9 +178,9 @@ nouveau_wfb_setup_wrap(ReadMemoryProcPtr *pRead, WriteMemoryProcPtr *pWrite,
/* 8192x8192x4 is 28 bits max, 64 - 28 == 36. */
wfb->multiply_factor = (((1ULL << 36) - 1) / wfb->pitch) + 1;
if (bo->device->chipset < 0xc0)
- wfb->tile_height = bo->tile_mode + 2;
+ wfb->tile_height = (bo->config.nv50.tile_mode >> 4) + 2;
else
- wfb->tile_height = (bo->tile_mode >> 4) + 3;
+ wfb->tile_height = (bo->config.nv50.tile_mode >> 4) + 3;
wfb->horiz_tiles = wfb->pitch / 64;
have_tiled = 1;
}