[Mesa-dev] [PATCH 1/4] silences some valgrind warnings
Alex Deucher
alexdeucher at gmail.com
Tue Jan 25 11:20:50 PST 2011
Thanks Tim, I've applied the 2 r600g patches.
Alex
On Mon, Jan 24, 2011 at 10:59 AM, Tim Wiederhake <twied at gmx.net> wrote:
> ==5547== Conditional jump or move depends on uninitialised value(s)
> ==5547== at 0x8FE745D: r600_drm_winsys_create (r600_drm.c:86)
> ---
> src/gallium/winsys/r600/drm/r600_drm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
> index 69b0a1d..6fc147f 100644
> --- a/src/gallium/winsys/r600/drm/r600_drm.c
> +++ b/src/gallium/winsys/r600/drm/r600_drm.c
> @@ -73,7 +73,7 @@ static int radeon_drm_get_tiling(struct radeon *radeon)
> {
> struct drm_radeon_info info;
> int r;
> - uint32_t tiling_config;
> + uint32_t tiling_config = 0;
>
> info.request = RADEON_INFO_TILING_CONFIG;
> info.value = (uintptr_t)&tiling_config;
> --
> 1.7.2.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list