[Mesa-dev] [PATCH] gallium/u_blitter: fix some shader memory leaks

Marek Olšák maraeo at gmail.com
Wed Jul 9 11:02:32 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Jul 9, 2014 at 5:42 PM, Brian Paul <brianp at vmware.com> wrote:
> The _msaa shaders weren't getting freed.
> Cc: "10.2" <mesa-stable at lists.freedesktop.org>
> ---
>  src/gallium/auxiliary/util/u_blitter.c |    9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
> index db0d1b8..20fbd80 100644
> --- a/src/gallium/auxiliary/util/u_blitter.c
> +++ b/src/gallium/auxiliary/util/u_blitter.c
> @@ -383,6 +383,15 @@ void util_blitter_destroy(struct blitter_context *blitter)
>        if (ctx->fs_texfetch_stencil[i])
>           ctx->delete_fs_state(pipe, ctx->fs_texfetch_stencil[i]);
>
> +      if (ctx->fs_texfetch_col_msaa[i])
> +         ctx->delete_fs_state(pipe, ctx->fs_texfetch_col_msaa[i]);
> +      if (ctx->fs_texfetch_depth_msaa[i])
> +         ctx->delete_fs_state(pipe, ctx->fs_texfetch_depth_msaa[i]);
> +      if (ctx->fs_texfetch_depthstencil_msaa[i])
> +         ctx->delete_fs_state(pipe, ctx->fs_texfetch_depthstencil_msaa[i]);
> +      if (ctx->fs_texfetch_stencil_msaa[i])
> +         ctx->delete_fs_state(pipe, ctx->fs_texfetch_stencil_msaa[i]);
> +
>        for (j = 0; j< Elements(ctx->fs_resolve[i]); j++)
>           for (f = 0; f < 2; f++)
>              if (ctx->fs_resolve[i][j][f])
> --
> 1.7.10.4
>
> _______________________________________________
> 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