[Mesa-dev] [PATCH v2] i965: Initialize brw_blorp_const_color_program::prog_data.

Paul Berry stereotype441 at gmail.com
Mon Oct 7 18:02:04 PDT 2013


On 27 September 2013 22:24, Vinson Lee <vlee at freedesktop.org> wrote:

> Fixes "Uninitialized scalar field" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Paul Berry <stereotype441 at gmail.com>


>
> diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
> b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
> index f26f39d..a40b58a 100644
> --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
> @@ -127,6 +127,8 @@
> brw_blorp_const_color_program::brw_blorp_const_color_program(
>       clear_rgba(),
>       base_mrf(0)
>  {
> +   prog_data.first_curbe_grf = 0;
> +   prog_data.persample_msaa_dispatch = false;
>     brw_init_compile(brw, &func, mem_ctx);
>  }
>
> --
> 1.8.3.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131007/67f3a679/attachment.html>


More information about the mesa-dev mailing list