diff options
author | Brian Paul <[email protected]> | 2014-07-15 10:38:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-07-29 09:16:23 -0600 |
commit | 7844263f07dfbf7c2a5f7bee152cb62c6aac00b2 (patch) | |
tree | 0e54100eb624efa271ff2a4814b93f77c226e55a /src/gallium/drivers | |
parent | 66a1b3a1da5cbb75d727c9b4751a06bdd403f0f9 (diff) |
svga: remove unneeded depth==1 assertion in svga_texture_view_surface()
We can create 3D texture views. Avoids an assertion in piglit
fbo-generatemipmap-3d test and allows it to pass.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c index c538e36366c..616312010fb 100644 --- a/src/gallium/drivers/svga/svga_surface.c +++ b/src/gallium/drivers/svga/svga_surface.c @@ -127,7 +127,6 @@ svga_texture_view_surface(struct svga_context *svga, key->size.height = u_minify(tex->b.b.height0, start_mip); key->size.depth = zslice_pick < 0 ? u_minify(tex->b.b.depth0, start_mip) : 1; key->cachable = 1; - assert(key->size.depth == 1); if (tex->b.b.target == PIPE_TEXTURE_CUBE && face_pick < 0) { key->flags |= SVGA3D_SURFACE_CUBEMAP; |