• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

hardware/intel/libva


Commit MetaInfo

Révision6af4c9bc68fe63bb6e776bc954f07312856217db (tree)
l'heure2013-06-19 15:32:35
AuteurAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Message de Log

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)

Change Summary

Modification

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -635,17 +635,14 @@ void va_TraceMapBuffer (
635635 DPY2INDEX(dpy);
636636
637637 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- */
644638
645639 /* only trace CodedBuffer */
646640 if (type != VAEncCodedBufferType)
647641 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));
649646 buf_list = (VACodedBufferSegment *)(*pbuf);
650647 while (buf_list != NULL) {
651648 va_TraceMsg(idx, "\tCodedbuf[%d] =\n", i++);
@@ -1889,6 +1886,7 @@ static void va_TraceH263Buf(
18891886 va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf);
18901887 break;
18911888 default:
1889+ va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
18921890 break;
18931891 }
18941892 }
@@ -1928,6 +1926,7 @@ static void va_TraceJPEGBuf(
19281926 va_TraceVAEncQMatrixBufferJPEG(dpy, context, buffer, type, size, num_elements, pbuf);
19291927 break;
19301928 default:
1929+ va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
19311930 break;
19321931 }
19331932 }
@@ -1986,6 +1985,7 @@ static void va_TraceMPEG4Buf(
19861985 va_TraceVAEncSliceParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf);
19871986 break;
19881987 default:
1988+ va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
19891989 break;
19901990 }
19911991 }
@@ -2054,6 +2054,7 @@ static void va_TraceH264Buf(
20542054 va_TraceVAEncMiscParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf);
20552055 break;
20562056 default:
2057+ va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
20572058 break;
20582059 }
20592060 }
@@ -2115,6 +2116,7 @@ static void va_TraceVC1Buf(
21152116 va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
21162117 break;
21172118 default:
2119+ va_TraceVABuffers(dpy, context, buffer, type, size, num_elements, pbuf);
21182120 break;
21192121 }
21202122 }