[Mesa-dev] [PATCH 2/2] st/mesa: remove unnecessary memset()/zero call

Brian Paul brianp at vmware.com
Tue Jan 10 10:41:33 PST 2012


The u_surface_default_template() function does the memset()/zero now.
---
 src/mesa/state_tracker/st_manager.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index c0af3ce..b83cb23 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -222,7 +222,6 @@ st_framebuffer_validate(struct st_framebuffer *stfb,
          continue;
       }
 
-      memset(&surf_tmpl, 0, sizeof(surf_tmpl));
       u_surface_default_template(&surf_tmpl, textures[i],
                                  PIPE_BIND_RENDER_TARGET);
       ps = st->pipe->create_surface(st->pipe, textures[i], &surf_tmpl);
-- 
1.7.3.4



More information about the mesa-dev mailing list