summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv10
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2008-07-08 01:34:36 +0200
committerStephane Marchesin <[email protected]>2008-07-08 01:34:36 +0200
commit205101dafb0042ebeeab3dd50f549d8a3d3c08ce (patch)
tree43514a19851565d387ff1e20c643d00a543e8b9d /src/gallium/drivers/nv10
parentfec4e427f8df3a6f257b2247dc760430b3dfc258 (diff)
nv10: there are no 3D textures.
Diffstat (limited to 'src/gallium/drivers/nv10')
-rw-r--r--src/gallium/drivers/nv10/nv10_miptree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv10/nv10_miptree.c b/src/gallium/drivers/nv10/nv10_miptree.c
index f1486a35df5..9a68df29250 100644
--- a/src/gallium/drivers/nv10/nv10_miptree.c
+++ b/src/gallium/drivers/nv10/nv10_miptree.c
@@ -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);
}