• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

hardware/intel/libva


Commit MetaInfo

修订版0f6802397d6e1ad6543d72a90c11558d2ff7dcfe (tree)
时间2010-04-07 18:28:52
作者Xiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

i965_drv_video: fix an assertion

更改概述

差异

--- a/i965_drv_video/i965_avc_bsd.c
+++ b/i965_drv_video/i965_avc_bsd.c
@@ -443,21 +443,26 @@ i965_avc_bsd_buf_base_state(VADriverContextP ctx,
443443 obj_surface = SURFACE(va_pic->picture_id);
444444 assert(obj_surface);
445445 avc_bsd_surface = obj_surface->private_data;
446- assert(avc_bsd_surface);
447- assert(avc_bsd_surface->direct_mv_flag != -1);
448-
449- OUT_BCS_RELOC(ctx, avc_bsd_surface->direct_mv_wr_top_bo,
450- I915_GEM_DOMAIN_INSTRUCTION, 0,
451- 0);
446+
447+ if (avc_bsd_surface == NULL) {
448+ OUT_BCS_BATCH(ctx, 0);
449+ OUT_BCS_BATCH(ctx, 0);
450+ } else {
451+ assert(avc_bsd_surface->direct_mv_flag != -1);
452452
453- if (avc_bsd_surface->direct_mv_flag == 1)
454- OUT_BCS_RELOC(ctx, avc_bsd_surface->direct_mv_wr_bottom_bo,
455- I915_GEM_DOMAIN_INSTRUCTION, 0,
456- 0);
457- else
458453 OUT_BCS_RELOC(ctx, avc_bsd_surface->direct_mv_wr_top_bo,
459454 I915_GEM_DOMAIN_INSTRUCTION, 0,
460455 0);
456+
457+ if (avc_bsd_surface->direct_mv_flag == 1)
458+ OUT_BCS_RELOC(ctx, avc_bsd_surface->direct_mv_wr_bottom_bo,
459+ I915_GEM_DOMAIN_INSTRUCTION, 0,
460+ 0);
461+ else
462+ OUT_BCS_RELOC(ctx, avc_bsd_surface->direct_mv_wr_top_bo,
463+ I915_GEM_DOMAIN_INSTRUCTION, 0,
464+ 0);
465+ }
461466 } else {
462467 OUT_BCS_BATCH(ctx, 0);
463468 OUT_BCS_BATCH(ctx, 0);