projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66a1b3a
)
svga: remove unneeded depth==1 assertion in svga_texture_view_surface()
author
Brian Paul
<brianp@vmware.com>
Tue, 15 Jul 2014 16:38:40 +0000
(10:38 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 29 Jul 2014 15:16:23 +0000
(09:16 -0600)
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>
src/gallium/drivers/svga/svga_surface.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_surface.c
b/src/gallium/drivers/svga/svga_surface.c
index c538e36366c34b14e3c3886f58bd14244b29e3df..616312010fb3a458811dd3d6a2bc198015a14c1a 100644
(file)
--- 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;