summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-19 11:14:00 -0700
committerBrian Paul <brianp@vmware.com>2010-01-19 11:14:00 -0700
commitaec3fe82e490efa36c432b2f43cbeebefa91e88f (patch)
tree2bdfe6e86612da680c8b4810036e326bcb72742e /src
parentef631104d51d011ef1dbaf7b4aeba274ae103ad7 (diff)
softpipe: remove redundant assignments
We initialized width/height/depth from pt->width0/height0/depth0 above.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index a9436a3394..fae72c81aa 100644
--- 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);