mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
i965: remove if conditions from scratch_bo unref
brw_bo_unreference handles NULL case Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
70cd05d6ac
commit
eeb3515c3f
1 changed files with 6 additions and 10 deletions
|
|
@ -1061,16 +1061,12 @@ intelDestroyContext(__DRIcontext * driContextPriv)
|
|||
brw_draw_destroy(brw);
|
||||
|
||||
brw_bo_unreference(brw->curbe.curbe_bo);
|
||||
if (brw->vs.base.scratch_bo)
|
||||
brw_bo_unreference(brw->vs.base.scratch_bo);
|
||||
if (brw->tcs.base.scratch_bo)
|
||||
brw_bo_unreference(brw->tcs.base.scratch_bo);
|
||||
if (brw->tes.base.scratch_bo)
|
||||
brw_bo_unreference(brw->tes.base.scratch_bo);
|
||||
if (brw->gs.base.scratch_bo)
|
||||
brw_bo_unreference(brw->gs.base.scratch_bo);
|
||||
if (brw->wm.base.scratch_bo)
|
||||
brw_bo_unreference(brw->wm.base.scratch_bo);
|
||||
|
||||
brw_bo_unreference(brw->vs.base.scratch_bo);
|
||||
brw_bo_unreference(brw->tcs.base.scratch_bo);
|
||||
brw_bo_unreference(brw->tes.base.scratch_bo);
|
||||
brw_bo_unreference(brw->gs.base.scratch_bo);
|
||||
brw_bo_unreference(brw->wm.base.scratch_bo);
|
||||
|
||||
brw_destroy_hw_context(brw->bufmgr, brw->hw_ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue