From: Michel Dänzer Date: Wed, 2 Nov 2016 10:48:35 +0000 (+0900) Subject: gallium/radeon: Use flags parameter in radeon_winsys_surface_init X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=356458363d1ee590fe05afb37ca502c2dd733666;p=mesa.git gallium/radeon: Use flags parameter in radeon_winsys_surface_init Fixes valgrind warnings about surf_ws->flags being uninitialized while starting X. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c index 7b85973bf44..6836a1ba3ad 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c @@ -228,7 +228,7 @@ static int radeon_winsys_surface_init(struct radeon_winsys *rws, surf_winsys_to_drm(&surf_drm, tex, flags, bpe, mode, surf_ws); - if (!(surf_ws->flags & RADEON_SURF_IMPORTED)) { + if (!(flags & RADEON_SURF_IMPORTED)) { r = radeon_surface_best(ws->surf_man, &surf_drm); if (r) return r;