mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
tgsi: Initialize tgsi_declaration_dimension padding.
Silence this Coverity defect. Uninitialized scalar variable (UNINIT) uninit_use: Using uninitialized value dim. Field dim.Padding is uninitialized. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7300>
This commit is contained in:
parent
7278f90039
commit
b07b943f30
1 changed files with 1 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ tgsi_default_declaration_dimension()
|
|||
struct tgsi_declaration_dimension dim;
|
||||
|
||||
dim.Index2D = 0;
|
||||
dim.Padding = 0;
|
||||
|
||||
return dim;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue