hardware/intel/libva
Révision | 6af4c9bc68fe63bb6e776bc954f07312856217db (tree) |
---|---|
l'heure | 2013-06-19 15:32:35 |
Auteur | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
vatrace: print function name for vaMapBuffer trace with coded buffer
also fall into default va_TraceVABuffers if the buffer type falls into
"default"
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit acbf7d0c4830763e7c3be0e71c9da972f1aea7a5)
@@ -635,17 +635,14 @@ void va_TraceMapBuffer ( | ||
635 | 635 | DPY2INDEX(dpy); |
636 | 636 | |
637 | 637 | vaBufferInfo(dpy, trace_context[idx].trace_context, buf_id, &type, &size, &num_elements); |
638 | - /* | |
639 | - va_TraceMsg(idx, "\tbuf_id=0x%x\n", buf_id); | |
640 | - va_TraceMsg(idx, "\tbuf_type=%s\n", buffer_type_to_string(type)); | |
641 | - va_TraceMsg(idx, "\tbuf_size=%s\n", size); | |
642 | - va_TraceMsg(idx, "\tbuf_elements=%s\n", &num_elements); | |
643 | - */ | |
644 | 638 | |
645 | 639 | /* only trace CodedBuffer */ |
646 | 640 | if (type != VAEncCodedBufferType) |
647 | 641 | return; |
648 | - | |
642 | + | |
643 | + TRACE_FUNCNAME(idx); | |
644 | + va_TraceMsg(idx, "\tbuf_id=0x%x\n", buf_id); | |
645 | + va_TraceMsg(idx, "\tbuf_type=%s\n", buffer_type_to_string(type)); | |
649 | 646 | buf_list = (VACodedBufferSegment *)(*pbuf); |
650 | 647 | while (buf_list != NULL) { |
651 | 648 | va_TraceMsg(idx, "\tCodedbuf[%d] =\n", i++); |
@@ -1889,6 +1886,7 @@ static void va_TraceH263Buf( | ||
1889 | 1886 | va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf); |
1890 | 1887 | break; |
1891 | 1888 | default: |
1889 | + va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); | |
1892 | 1890 | break; |
1893 | 1891 | } |
1894 | 1892 | } |
@@ -1928,6 +1926,7 @@ static void va_TraceJPEGBuf( | ||
1928 | 1926 | va_TraceVAEncQMatrixBufferJPEG(dpy, context, buffer, type, size, num_elements, pbuf); |
1929 | 1927 | break; |
1930 | 1928 | default: |
1929 | + va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); | |
1931 | 1930 | break; |
1932 | 1931 | } |
1933 | 1932 | } |
@@ -1986,6 +1985,7 @@ static void va_TraceMPEG4Buf( | ||
1986 | 1985 | va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf); |
1987 | 1986 | break; |
1988 | 1987 | default: |
1988 | + va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); | |
1989 | 1989 | break; |
1990 | 1990 | } |
1991 | 1991 | } |
@@ -2054,6 +2054,7 @@ static void va_TraceH264Buf( | ||
2054 | 2054 | va_TraceVAEncMiscParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf); |
2055 | 2055 | break; |
2056 | 2056 | default: |
2057 | + va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); | |
2057 | 2058 | break; |
2058 | 2059 | } |
2059 | 2060 | } |
@@ -2115,6 +2116,7 @@ static void va_TraceVC1Buf( | ||
2115 | 2116 | va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); |
2116 | 2117 | break; |
2117 | 2118 | default: |
2119 | + va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf); | |
2118 | 2120 | break; |
2119 | 2121 | } |
2120 | 2122 | } |