[Mesa-dev] [Mesa-stable] [PATCH] i965: Don't leak scratch BOs for TCS/TES.

Chris Forbes chrisf at ijw.co.nz
Mon Jun 13 01:26:31 UTC 2016


Reviewed-by: Chris Forbes <chrisforbes at google.com>

On Mon, Jun 13, 2016 at 12:03 PM, Kenneth Graunke <kenneth at whitecape.org>
wrote:

> These need to be freed too.
>
> Cc: "12.0" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c
> b/src/mesa/drivers/dri/i965/brw_context.c
> index 7bbc128..a5c6581 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -1100,6 +1100,10 @@ intelDestroyContext(__DRIcontext * driContextPriv)
>     drm_intel_bo_unreference(brw->curbe.curbe_bo);
>     if (brw->vs.base.scratch_bo)
>        drm_intel_bo_unreference(brw->vs.base.scratch_bo);
> +   if (brw->tcs.base.scratch_bo)
> +      drm_intel_bo_unreference(brw->tcs.base.scratch_bo);
> +   if (brw->tes.base.scratch_bo)
> +      drm_intel_bo_unreference(brw->tes.base.scratch_bo);
>     if (brw->gs.base.scratch_bo)
>        drm_intel_bo_unreference(brw->gs.base.scratch_bo);
>     if (brw->wm.base.scratch_bo)
> --
> 2.8.3
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160613/c5e98622/attachment.html>


More information about the mesa-dev mailing list