i965: Don't leak scratch BOs for TCS/TES.

These need to be freed too.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 667e5cec76)
This commit is contained in:
Kenneth Graunke 2016-06-12 15:44:55 -07:00 committed by Emil Velikov
parent 5e41ac197f
commit 9edc2f1828

View file

@ -1097,6 +1097,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)