aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_miptree.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-03-02 19:21:46 +0100
committerChristoph Bumiller <[email protected]>2011-03-02 20:59:53 +0100
commit669de7016ce3e95c6d1e4ee8e41b5bfe95f32105 (patch)
treeb91199703bf1b071c91cd3910b18fc6f02c29311 /src/gallium/drivers/nv50/nv50_miptree.c
parent223d98bb8d49c9e52e498a12980722467ae2bf87 (diff)
nv50: fix tile size calculations
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_miptree.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_miptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index aadffeec36a..ae6b26af1eb 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -61,7 +61,7 @@ static INLINE unsigned
calc_zslice_offset(uint32_t tile_mode, unsigned z, unsigned pitch, unsigned nbh)
{
unsigned tile_h = NV50_TILE_HEIGHT(tile_mode);
- unsigned tile_d_shift = NV50_TILE_DIM_SHIFT(tile_mode, 2);
+ unsigned tile_d_shift = NV50_TILE_DIM_SHIFT(tile_mode, 1);
unsigned tile_d = 1 << tile_d_shift;
/* stride_2d == to next slice within this volume tile */