projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d77b80
)
softpipe: don't special case PIPE_TEXTURE_CUBE in softpipe_resource_layout()
author
Brian Paul
<brianp@vmware.com>
Mon, 29 Sep 2014 16:17:15 +0000
(10:17 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 30 Sep 2014 18:08:49 +0000
(12:08 -0600)
As with the previous patch for llvmpipe.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/softpipe/sp_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_texture.c
b/src/gallium/drivers/softpipe/sp_texture.c
index c2df71e41a520af50882868398cf7b5df33aeaac..e1ea5df24ca420a1dbe836cf8a9ae597c855c2dc 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_texture.c
+++ b/
src/gallium/drivers/softpipe/sp_texture.c
@@
-68,8
+68,9
@@
softpipe_resource_layout(struct pipe_screen *screen,
nblocksy = util_format_get_nblocksy(pt->format, height);
if (pt->target == PIPE_TEXTURE_CUBE)
- slices = 6;
- else if (pt->target == PIPE_TEXTURE_3D)
+ assert(pt->array_size == 6);
+
+ if (pt->target == PIPE_TEXTURE_3D)
slices = depth;
else
slices = pt->array_size;