From: Vinson Lee Date: Wed, 8 Aug 2012 07:08:43 +0000 (-0700) Subject: st/mesa: Initialize tgsi_texture_offset Padding field. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34665381713249c29b7da5028396222dfea477c2;p=mesa.git st/mesa: Initialize tgsi_texture_offset Padding field. Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 43c80be13e2..39717b6fd25 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4178,6 +4178,7 @@ translate_tex_offset(struct st_translate *t, offset.SwizzleX = in_offset->SwizzleX; offset.SwizzleY = in_offset->SwizzleY; offset.SwizzleZ = in_offset->SwizzleZ; + offset.Padding = 0; return offset; }