Mesa (master): softpipe: remove redundant assignments
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 19 18:14:54 UTC 2010
Module: Mesa
Branch: master
Commit: aec3fe82e490efa36c432b2f43cbeebefa91e88f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aec3fe82e490efa36c432b2f43cbeebefa91e88f
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 19 11:14:00 2010 -0700
softpipe: remove redundant assignments
We initialized width/height/depth from pt->width0/height0/depth0 above.
---
src/gallium/drivers/softpipe/sp_texture.c | 5 -----
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 a9436a3..fae72c8 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);
More information about the mesa-commit
mailing list