Skip to content

Commit

Permalink
va_trace:add return value trace for vaPutSurfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Zhang <[email protected]>
  • Loading branch information
XinfengZhang committed Mar 11, 2024
1 parent 62e2f4d commit c189a88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion va/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ if WITH_X11

libva_dri_headers = [
'x11/va_dri2.h',
'x11/va_dri3.h',
'x11/va_dricommon.h',
]

libva_x11_headers = ['va_x11.h'] + libva_dri_headers
libva_x11_headers = ['va_x11.h'] + libva_dri_headers + ['va_trace.h']

libva_headers_subproject += libva_dri_headers

Expand Down
1 change: 0 additions & 1 deletion va/va_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ void va_TracePutSurface(
unsigned int flags /* de-interlacing flags */
);

DLL_HIDDEN
void va_TraceStatus(VADisplay dpy, const char * funcName, VAStatus status);

/** \brief va_TraceEvent
Expand Down
10 changes: 6 additions & 4 deletions va/x11/va_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,17 @@ VAStatus vaPutSurface(
)
{
VADriverContextP ctx;

VAStatus vaStatus = VA_STATUS_SUCCESS;
CHECK_DISPLAY(dpy);
ctx = CTX(dpy);

VA_TRACE_LOG(va_TracePutSurface, dpy, surface, (void *)draw, srcx, srcy, srcw, srch,
destx, desty, destw, desth,
cliprects, number_cliprects, flags);

return ctx->vtable->vaPutSurface(ctx, surface, (void *)draw, srcx, srcy, srcw, srch,
destx, desty, destw, desth,
cliprects, number_cliprects, flags);
vaStatus = ctx->vtable->vaPutSurface(ctx, surface, (void *)draw, srcx, srcy, srcw, srch,
destx, desty, destw, desth,
cliprects, number_cliprects, flags);
VA_TRACE_RET(dpy, vaStatus);
return vaStatus;
}

0 comments on commit c189a88

Please sign in to comment.