From: Kenneth Graunke Date: Sun, 12 Jun 2016 22:44:55 +0000 (-0700) Subject: i965: Don't leak scratch BOs for TCS/TES. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=667e5cec760d1908af73a40de28c53848b5b70a0;p=mesa.git i965: Don't leak scratch BOs for TCS/TES. These need to be freed too. Cc: "12.0" Signed-off-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 7bbc128d9a4..a5c658196f1 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)