summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-06 06:23:52 +0200
committerMarek Olšák <[email protected]>2013-08-15 02:03:03 +0200
commite801b78aa0096a61f77479f66fcb6961c4dc28c8 (patch)
tree07e18bd3aa8668637523520392c5fb10d0376f51 /src/gallium/drivers/radeonsi
parent731c6aa52d0ed23b2f4a7345bca3de6e3f4ffa80 (diff)
radeonsi: initialize the radeon_surface structure
this fixes valgrind warnings Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/r600_texture.c2
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 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;