Dump max frame size in libva trace.
authorliubolun <bolun.liu@intel.com>
Wed, 22 Jan 2014 07:10:23 +0000 (15:10 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Mar 2014 03:07:12 +0000 (11:07 +0800)
Change-Id: I4b38bc5930d653c96b45e4ce91856bfaf0cb277a
Signed-off-by: liubolun <bolun.liu@intel.com>
(cherry picked from commit 753421b8b3e9bd4529986dc0418e39e05dc2f394)

va/va_trace.c

index 6c0e146..ca8931f 100644 (file)
@@ -1803,6 +1803,14 @@ static void va_TraceVAEncMiscParameterBuffer(
         va_TraceMsg(trace_ctx, "\tbuffer_size = %d\n", p->buffer_size);
         break;
     }
+    case VAEncMiscParameterTypeMaxFrameSize:
+    {
+        VAEncMiscParameterBufferMaxFrameSize *p = (VAEncMiscParameterBufferMaxFrameSize *)tmp->data;
+
+        va_TraceMsg(trace_ctx, "\t--VAEncMiscParameterTypeMaxFrameSize\n");
+        va_TraceMsg(trace_ctx, "\tmax_frame_size = %d\n", p->max_frame_size);
+        break;
+    }
     default:
         va_TraceMsg(trace_ctx, "Unknown VAEncMiscParameterBuffer(type = %d):\n", tmp->type);
         va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, data);