projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef63110
)
softpipe: remove redundant assignments
author
Brian Paul
<brianp@vmware.com>
Tue, 19 Jan 2010 18:14:00 +0000
(11:14 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 19 Jan 2010 18:14:00 +0000
(11:14 -0700)
We initialized width/height/depth from pt->width0/height0/depth0 above.
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 a9436a33942b299f0ada7ee10b190ed2e8b190ff..fae72c81aa16256f48401b64a335908af53fa981 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_texture.c
+++ b/
src/gallium/drivers/softpipe/sp_texture.c
@@
-57,13
+57,8
@@
softpipe_texture_layout(struct pipe_screen *screen,
unsigned width = pt->width0;
unsigned height = pt->height0;
unsigned depth = pt->depth0;
-
unsigned buffer_size = 0;
- pt->width0 = width;
- pt->height0 = height;
- pt->depth0 = depth;
-
for (level = 0; level <= pt->last_level; level++) {
spt->stride[level] = util_format_get_stride(pt->format, width);