radeonsi: initialize the radeon_surface structure
authorMarek Olšák <marek.olsak@amd.com>
Tue, 6 Aug 2013 04:23:52 +0000 (06:23 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 15 Aug 2013 00:03:03 +0000 (02:03 +0200)
this fixes valgrind warnings

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/r600_texture.c

index 40c0235b5c492b0d4947f9389aae3226e0ffd461..9c0b75b66568d47317f4f34a5e80cb9f8cee3a2f 100644 (file)
@@ -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;