Pushed, thanks.<br><br>Marek<br><br><div class="gmail_quote">On Tue, Feb 8, 2011 at 2:57 AM, Brian Paterni <span dir="ltr">&lt;<a href="mailto:bpaterni@gmail.com">bpaterni@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi all,<br>
<br>
Here&#39;s a small patch which silences a few unitialized bytes warnings in<br>
valgrind:<br>
<br>
diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c<br>
index 096c178..f5cd48d 100644<br>
--- a/src/gallium/winsys/r600/drm/r600_drm.c<br>
+++ b/src/gallium/winsys/r600/drm/r600_drm.c<br>
@@ -67,7 +67,7 @@ unsigned r600_get_clock_crystal_freq(struct radeon *radeon)<br>
<br>
 static int radeon_get_device(struct radeon *radeon)<br>
 {<br>
-       struct drm_radeon_info info;<br>
+       struct drm_radeon_info info = {};<br>
        int r;<br>
<br>
        radeon-&gt;device = 0;<br>
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c<br>
index a939ec6..f170640 100644<br>
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c<br>
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c<br>
@@ -1088,7 +1088,7 @@ void r600_context_draw(struct r600_context *ctx, const struct r600_draw *draw)<br>
<br>
 void r600_context_flush(struct r600_context *ctx)<br>
 {<br>
-       struct drm_radeon_cs drmib;<br>
+       struct drm_radeon_cs drmib = {};<br>
        struct drm_radeon_cs_chunk chunks[2];<br>
        uint64_t chunk_array[2];<br>
        unsigned fence;<br>
diff --git a/src/gallium/winsys/r600/drm/radeon_bo.c b/src/gallium/winsys/r600/drm/radeon_bo.c<br>
index 999de82..3643ddb 100644<br>
--- a/src/gallium/winsys/r600/drm/radeon_bo.c<br>
+++ b/src/gallium/winsys/r600/drm/radeon_bo.c<br>
@@ -98,7 +98,7 @@ struct radeon_bo *radeon_bo(struct radeon *radeon, unsigned handle,<br>
                bo-&gt;size = open_arg.size;<br>
                bo-&gt;shared = TRUE;<br>
        } else {<br>
-               struct drm_radeon_gem_create args;<br>
+               struct drm_radeon_gem_create args = {};<br>
<br>
                args.size = size;<br>
                args.alignment = alignment;<br>
@@ -204,7 +204,7 @@ int radeon_bo_get_tiling_flags(struct radeon *radeon,<br>
                               uint32_t *tiling_flags,<br>
                               uint32_t *pitch)<br>
 {<br>
-       struct drm_radeon_gem_get_tiling args;<br>
+       struct drm_radeon_gem_get_tiling args = {};<br>
        int ret;<br>
<br>
        args.handle = bo-&gt;handle;<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br>