Hi Austin, Thanks for the patch, but I failed to apply your patch to master branch by 'git am', do you create your patch against the latest master ?
Thanks Haihao > From fef1ab33fc079fb44c8a964d6b79007358aaaf5c Mon Sep 17 00:00:00 > 2001 > From: Austin Yuan <[email protected]> > Date: Tue, 24 May 2016 14:57:25 +0800 > Subject: [PATCH] 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 <[email protected]> > --- > va/va_trace.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/va/va_trace.c b/va/va_trace.c > index 994422e..f75b876 100644 > --- a/va/va_trace.c > +++ b/va/va_trace.c > @@ -4871,11 +4871,12 @@ void va_TraceQueryDisplayAttributes ( > > DPY2TRACE_VIRCTX(dpy); > > + TRACE_FUNCNAME(idx); > va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", > *num_attributes); > > for (i=0; i<*num_attributes; i++) { > - va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n"); > - va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", > attr_list[i].type); > + va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i); > + va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", > attr_list[i].type); > va_TraceMsg(trace_ctx, "\t min_value = %d\n", > attr_list[i].min_value); > va_TraceMsg(trace_ctx, "\t max_value = %d\n", > attr_list[i].max_value); > va_TraceMsg(trace_ctx, "\t value = %d\n", > attr_list[i].value); > @@ -4901,8 +4902,8 @@ static void va_TraceDisplayAttributes ( > va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", > num_attributes); > > for (i=0; i<num_attributes; i++) { > - va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n"); > - va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", > attr_list[i].type); > + va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i); > + va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", > attr_list[i].type); > va_TraceMsg(trace_ctx, "\t min_value = %d\n", > attr_list[i].min_value); > va_TraceMsg(trace_ctx, "\t max_value = %d\n", > attr_list[i].max_value); > va_TraceMsg(trace_ctx, "\t value = %d\n", > attr_list[i].value); > -- > 1.7.9.5 > > _______________________________________________ > Libva mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/libva _______________________________________________ Libva mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libva
