projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b76ee9
)
st/mesa: remove unneded PIPE_TEXTURE_CUBE check in st_texture_create()
author
Brian Paul
<brianp@vmware.com>
Mon, 29 Sep 2014 16:11:41 +0000
(10:11 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 30 Sep 2014 18:08:49 +0000
(12:08 -0600)
Earlier in the function we assert layers==6 for PIPE_TEXTURE_CUBE so
there's no reason to special-case the pt.array_size = layers assignment.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_texture.c
b/src/mesa/state_tracker/st_texture.c
index 2cd95ecdfa4be3218c732323d74f62716fe65834..5996b7d1b74a9128210d92e6f5b567c2033609cd 100644
(file)
--- a/
src/mesa/state_tracker/st_texture.c
+++ b/
src/mesa/state_tracker/st_texture.c
@@
-88,7
+88,7
@@
st_texture_create(struct st_context *st,
pt.width0 = width0;
pt.height0 = height0;
pt.depth0 = depth0;
- pt.array_size =
(target == PIPE_TEXTURE_CUBE ? 6 : layers)
;
+ pt.array_size =
layers
;
pt.usage = PIPE_USAGE_DEFAULT;
pt.bind = bind;
pt.flags = 0;