summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-07-16 13:00:52 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-07-16 13:00:52 +0200
commit56503fd13847ae5072af761ac69b923323e053f8 (patch)
tree305e51b79e9f9d5ed95825a216f989bb1d21de79 /src
parent9228bfb37519e4a03183ec89e82a80f39addeeeb (diff)
nv50: fix bogus error message about 3d surfaces
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv50/nv50_miptree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index 115a98dcda4..bc81604508b 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -409,7 +409,9 @@ nv50_miptree_surface_new(struct pipe_context *pipe,
if (mt->layout_3d) {
ns->offset += nv50_mt_zslice_offset(mt, l, z);
- if (z & (NV50_TILE_SIZE_Z(mt->level[l].tile_mode) - 1))
+ /* TODO: switch to depth 1 tiles; but actually this shouldn't happen */
+ if (ns->depth > 1 &&
+ (z & (NV50_TILE_SIZE_Z(mt->level[l].tile_mode) - 1)))
NOUVEAU_ERR("Creating unsupported 3D surface !\n");
} else {
ns->offset += mt->layer_stride * z;