Fix uninitialized scalar variable defects report by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
declaration.Semantic = 0;
declaration.Invariant = 0;
declaration.Local = 0;
+ declaration.Padding = 0;
return declaration;
}
di.Interpolate = TGSI_INTERPOLATE_CONSTANT;
di.Centroid = 0;
di.CylindricalWrap = 0;
+ di.Padding = 0;
return di;
}
di.Interpolate = interpolate;
di.Centroid = centroid;
di.CylindricalWrap = cylindrical_wrap;
+ di.Padding = 0;
declaration_grow(declaration, header);
dr.Resource = TGSI_TEXTURE_BUFFER;
dr.Raw = 0;
dr.Writable = 0;
+ dr.Padding = 0;
return dr;
}