diff options
author | Kenneth Graunke <[email protected]> | 2016-06-12 15:44:55 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-06-13 12:22:06 -0700 |
commit | 667e5cec760d1908af73a40de28c53848b5b70a0 (patch) | |
tree | e5e0fe1574b3621e1e0346017a13eb2d42ad05c2 | |
parent | a4a59172482d50318a5ae7f99021bcf0125e0f53 (diff) |
i965: Don't leak scratch BOs for TCS/TES.
These need to be freed too.
Cc: "12.0" <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |