r600g: silence a few valgrind warnings
authorBrian Paterni <bpaterni@gmail.com>
Tue, 8 Feb 2011 01:57:56 +0000 (19:57 -0600)
committerMarek Olšák <maraeo@gmail.com>
Tue, 8 Feb 2011 11:48:44 +0000 (12:48 +0100)
src/gallium/winsys/r600/drm/r600_drm.c
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/radeon_bo.c

index 096c178aa382f0d05f07b77b1a1d11136566cf7d..f5cd48d39c67367746958bba4f77f0953fb9cee8 100644 (file)
@@ -67,7 +67,7 @@ unsigned r600_get_clock_crystal_freq(struct radeon *radeon)
 
 static int radeon_get_device(struct radeon *radeon)
 {
-       struct drm_radeon_info info;
+       struct drm_radeon_info info = {};
        int r;
 
        radeon->device = 0;
index a939ec61c1df72cea64e9f97488c809901a08b72..f170640407d4089ad237f577f9d0c16e4fe1d352 100644 (file)
@@ -1088,7 +1088,7 @@ void r600_context_draw(struct r600_context *ctx, const struct r600_draw *draw)
 
 void r600_context_flush(struct r600_context *ctx)
 {
-       struct drm_radeon_cs drmib;
+       struct drm_radeon_cs drmib = {};
        struct drm_radeon_cs_chunk chunks[2];
        uint64_t chunk_array[2];
        unsigned fence;
index 999de82646d307e2e6955efdd1aec5e518000ab6..3643ddbcb93ebbd1af40928885fcf3a922bf1039 100644 (file)
@@ -98,7 +98,7 @@ struct radeon_bo *radeon_bo(struct radeon *radeon, unsigned handle,
                bo->size = open_arg.size;
                bo->shared = TRUE;
        } else {
-               struct drm_radeon_gem_create args;
+               struct drm_radeon_gem_create args = {};
 
                args.size = size;
                args.alignment = alignment;
@@ -204,7 +204,7 @@ int radeon_bo_get_tiling_flags(struct radeon *radeon,
                               uint32_t *tiling_flags,
                               uint32_t *pitch)
 {
-       struct drm_radeon_gem_get_tiling args;
+       struct drm_radeon_gem_get_tiling args = {};
        int ret;
 
        args.handle = bo->handle;