st/mesa: Initialize tgsi_texture_offset Padding field.
authorVinson Lee <vlee@freedesktop.org>
Wed, 8 Aug 2012 07:08:43 +0000 (00:08 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 9 Aug 2012 05:36:27 +0000 (22:36 -0700)
Fixes uninitialized scalar variable defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 43c80be13e2066cbe105384147fc47d45d90080c..39717b6fd25f675573dc3def3de4f2489811bcd6 100644 (file)
@@ -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;
 }