From e801b78aa0096a61f77479f66fcb6961c4dc28c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 6 Aug 2013 06:23:52 +0200 Subject: [PATCH] radeonsi: initialize the radeon_surface structure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this fixes valgrind warnings Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/r600_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c index 40c0235b5c4..9c0b75b6656 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; -- 2.30.2