From 34665381713249c29b7da5028396222dfea477c2 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 8 Aug 2012 00:08:43 -0700 Subject: [PATCH] st/mesa: Initialize tgsi_texture_offset Padding field. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2