• 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

修订版fef1ab33fc079fb44c8a964d6b79007358aaaf5c (tree)
时间2016-05-24 15:57:25
作者Austin Yuan <shengquan.yuan@inte...>
CommiterAustin Yuan

Log Message

Fix missing parameter of vatrace DisplayAttribute print

[49270.199330] ==========va_TraceMaxNumDisplayAttributes
[49270.199334] max_display_attributes = 6
[49270.199362] num_attributes = 5
[49270.199365] attr_list[-1429804448] =
[49270.199367] typ = 0x00000000

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

更改概述

差异

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -4871,11 +4871,12 @@ void va_TraceQueryDisplayAttributes (
48714871
48724872 DPY2TRACE_VIRCTX(dpy);
48734873
4874+ TRACE_FUNCNAME(idx);
48744875 va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", *num_attributes);
48754876
48764877 for (i=0; i<*num_attributes; i++) {
4877- va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n");
4878- va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", attr_list[i].type);
4878+ va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i);
4879+ va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", attr_list[i].type);
48794880 va_TraceMsg(trace_ctx, "\t min_value = %d\n", attr_list[i].min_value);
48804881 va_TraceMsg(trace_ctx, "\t max_value = %d\n", attr_list[i].max_value);
48814882 va_TraceMsg(trace_ctx, "\t value = %d\n", attr_list[i].value);
@@ -4901,8 +4902,8 @@ static void va_TraceDisplayAttributes (
49014902 va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", num_attributes);
49024903
49034904 for (i=0; i<num_attributes; i++) {
4904- va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n");
4905- va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", attr_list[i].type);
4905+ va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i);
4906+ va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", attr_list[i].type);
49064907 va_TraceMsg(trace_ctx, "\t min_value = %d\n", attr_list[i].min_value);
49074908 va_TraceMsg(trace_ctx, "\t max_value = %d\n", attr_list[i].max_value);
49084909 va_TraceMsg(trace_ctx, "\t value = %d\n", attr_list[i].value);