Mesa (master): radeonsi: initialize the radeon_surface structure

Marek Olšák mareko at kemper.freedesktop.org
Thu Aug 15 00:04:39 UTC 2013


Module: Mesa
Branch: master
Commit: e801b78aa0096a61f77479f66fcb6961c4dc28c8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e801b78aa0096a61f77479f66fcb6961c4dc28c8

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Aug  6 06:23:52 2013 +0200

radeonsi: initialize the radeon_surface structure

this fixes valgrind warnings

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

---

 src/gallium/drivers/radeonsi/r600_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c
index 40c0235..9c0b75b 100644
--- a/src/gallium/drivers/radeonsi/r600_texture.c
+++ b/src/gallium/drivers/radeonsi/r600_texture.c
@@ -523,7 +523,7 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
 					const struct pipe_resource *templ)
 {
 	struct r600_screen *rscreen = (struct r600_screen*)screen;
-	struct radeon_surface surface;
+	struct radeon_surface surface = {0};
 	unsigned array_mode = V_009910_ARRAY_LINEAR_ALIGNED;
 	int r;
 




More information about the mesa-commit mailing list