mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 07:10:20 +01:00
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:
parent
5e41ac197f
commit
9edc2f1828
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue