From: Drew Davenport Date: Mon, 27 Jan 2020 18:13:19 +0000 (-0700) Subject: radeonsi: Clear uninitialized variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d99ff54cc3fb1dd85044f8971f6686138a5f149;p=mesa.git radeonsi: Clear uninitialized variable |view| was not initialized leading to flaky test failures in SkQP test unitTest_ES2BlendWithNoTexture. Fixes: 029bfa3d253 "radeonsi: add ability to bind images as image buffers" Reviewed-by: Bas Nieuwenhuizen Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 193029820e5..fa2174bac5d 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -903,7 +903,7 @@ void si_update_ps_colorbuf0_slot(struct si_context *sctx) if (surf) { struct si_texture *tex = (struct si_texture*)surf->texture; - struct pipe_image_view view; + struct pipe_image_view view = {0}; assert(tex); assert(!tex->is_depth);