mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
tgsi: Initialize Padding struct fields.
Fix uninitialized scalar variable defects report by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
88128516d4
commit
0f6a3a7de3
1 changed files with 4 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ tgsi_default_declaration( void )
|
|||
declaration.Semantic = 0;
|
||||
declaration.Invariant = 0;
|
||||
declaration.Local = 0;
|
||||
declaration.Padding = 0;
|
||||
|
||||
return declaration;
|
||||
}
|
||||
|
|
@ -199,6 +200,7 @@ tgsi_default_declaration_interp( void )
|
|||
di.Interpolate = TGSI_INTERPOLATE_CONSTANT;
|
||||
di.Centroid = 0;
|
||||
di.CylindricalWrap = 0;
|
||||
di.Padding = 0;
|
||||
|
||||
return di;
|
||||
}
|
||||
|
|
@ -215,6 +217,7 @@ tgsi_build_declaration_interp(unsigned interpolate,
|
|||
di.Interpolate = interpolate;
|
||||
di.Centroid = centroid;
|
||||
di.CylindricalWrap = cylindrical_wrap;
|
||||
di.Padding = 0;
|
||||
|
||||
declaration_grow(declaration, header);
|
||||
|
||||
|
|
@ -262,6 +265,7 @@ tgsi_default_declaration_resource(void)
|
|||
dr.Resource = TGSI_TEXTURE_BUFFER;
|
||||
dr.Raw = 0;
|
||||
dr.Writable = 0;
|
||||
dr.Padding = 0;
|
||||
|
||||
return dr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue