[Mesa-dev] [PATCH] st/mesa: Initialize tgsi_texture_offset Padding field.
Jose Fonseca
jfonseca at vmware.com
Wed Aug 8 06:29:17 PDT 2012
Looks good.
Jose
----- Original Message -----
> Fixes uninitialized scalar variable defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> 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 43c80be..39717b6 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;
> }
> --
> 1.7.11.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list