• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/intel-driver


Commit MetaInfo

Revisionaa10929df05ba1668cce3960fe03be2c53e9314b (tree)
Time2014-12-15 13:53:46
AuthorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

Fix misused dri_bo_reference()

The object returned from dri_bo_alloc() has been referenced.

This commit fixes https://bugs.freedesktop.org/show_bug.cgi?id=86913

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao, Yakui <yakui.zhao@intel.com>

Change Summary

Incremental Difference

--- a/src/gen75_vpp_gpe.c
+++ b/src/gen75_vpp_gpe.c
@@ -301,14 +301,12 @@ gen75_gpe_process_init(VADriverContextP ctx,
301301 "vpp batch buffer",
302302 batch_buf_size, 0x1000);
303303 vpp_gpe_ctx->vpp_batchbuffer.bo = bo;
304- dri_bo_reference(vpp_gpe_ctx->vpp_batchbuffer.bo);
305304
306305 dri_bo_unreference(vpp_gpe_ctx->vpp_kernel_return.bo);
307306 bo = dri_bo_alloc(i965->intel.bufmgr,
308307 "vpp kernel return buffer",
309308 kernel_return_size, 0x1000);
310309 vpp_gpe_ctx->vpp_kernel_return.bo = bo;
311- dri_bo_reference(vpp_gpe_ctx->vpp_kernel_return.bo);
312310
313311 vpp_gpe_ctx->gpe_context_init(ctx, &vpp_gpe_ctx->gpe_ctx);
314312
@@ -545,14 +543,12 @@ gen8_gpe_process_init(VADriverContextP ctx,
545543 "vpp batch buffer",
546544 batch_buf_size, 0x1000);
547545 vpp_gpe_ctx->vpp_batchbuffer.bo = bo;
548- dri_bo_reference(vpp_gpe_ctx->vpp_batchbuffer.bo);
549546
550547 dri_bo_unreference(vpp_gpe_ctx->vpp_kernel_return.bo);
551548 bo = dri_bo_alloc(i965->intel.bufmgr,
552549 "vpp kernel return buffer",
553550 kernel_return_size, 0x1000);
554551 vpp_gpe_ctx->vpp_kernel_return.bo = bo;
555- dri_bo_reference(vpp_gpe_ctx->vpp_kernel_return.bo);
556552
557553 vpp_gpe_ctx->gpe_context_init(ctx, &vpp_gpe_ctx->gpe_ctx);
558554