[Mesa-dev] [PATCH] st/mesa: initialize have_fma in constructor

Brian Paul brianp at vmware.com
Thu Mar 26 16:37:23 PDT 2015


On 03/26/2015 05:33 PM, Ilia Mirkin wrote:
> Spotted by Coverity.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>   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 b619326..e97ab83 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -3465,6 +3465,7 @@ glsl_to_tgsi_visitor::glsl_to_tgsi_visitor()
>      shader = NULL;
>      options = NULL;
>      have_sqrt = false;
> +   have_fma = false;
>   }
>
>   glsl_to_tgsi_visitor::~glsl_to_tgsi_visitor()
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list