mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 12:10:45 +01:00
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 <charmainel@vmware.com>
This commit is contained in:
parent
66a1b3a1da
commit
7844263f07
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue