projects
/
platform
/
upstream
/
libva-intel-driver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3760a
)
i965_drv_video: deallocate all unused surfaces
author
Xiang, Haihao
<haihao.xiang@intel.com>
Sat, 9 Jul 2011 03:44:15 +0000
(11:44 +0800)
committer
Gwenole Beauchesne
<gwenole.beauchesne@intel.com>
Thu, 25 Aug 2011 12:29:01 +0000
(14:29 +0200)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen6_mfc.c
patch
|
blob
|
history
diff --git
a/src/gen6_mfc.c
b/src/gen6_mfc.c
index
a3ec369
..
a96c840
100644
(file)
--- a/
src/gen6_mfc.c
+++ b/
src/gen6_mfc.c
@@
-1202,5
+1202,11
@@
Bool gen6_mfc_context_destroy(struct gen6_mfc_context *mfc_context)
dri_bo_unreference(mfc_context->bsd_mpc_row_store_scratch_buffer.bo);
mfc_context->bsd_mpc_row_store_scratch_buffer.bo = NULL;
+
+ for (i = 0; i < MAX_MFC_REFERENCE_SURFACES; i++){
+ dri_bo_unreference(mfc_context->reference_surfaces[i].bo);
+ mfc_context->reference_surfaces[i].bo = NULL;
+ }
+
return True;
}