nv10: there are no 3D textures.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 7 Jul 2008 23:34:36 +0000 (01:34 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Mon, 7 Jul 2008 23:34:36 +0000 (01:34 +0200)
src/gallium/drivers/nv10/nv10_miptree.c

index f1486a35df52d127d9e80c96ff6d792f06a698b8..9a68df29250a68706dea5e33fa328e3dddbbb4e6 100644 (file)
@@ -11,7 +11,7 @@ nv10_miptree_layout(struct nv10_miptree *nv10mt)
 {
        struct pipe_texture *pt = &nv10mt->base;
        boolean swizzled = FALSE;
-       uint width = pt->width[0], height = pt->height[0], depth = pt->depth[0];
+       uint width = pt->width[0], height = pt->height[0];
        uint offset = 0;
        int nr_faces, l, f;
 
@@ -24,7 +24,6 @@ nv10_miptree_layout(struct nv10_miptree *nv10mt)
        for (l = 0; l <= pt->last_level; l++) {
                pt->width[l] = width;
                pt->height[l] = height;
-               pt->depth[l] = depth;
                pt->nblocksx[l] = pf_get_nblocksx(&pt->block, width);
                pt->nblocksy[l] = pf_get_nblocksy(&pt->block, height);
 
@@ -39,7 +38,6 @@ nv10_miptree_layout(struct nv10_miptree *nv10mt)
 
                width  = MAX2(1, width  >> 1);
                height = MAX2(1, height >> 1);
-               depth  = MAX2(1, depth  >> 1);
 
        }