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 Jan 26, 2024
1 parent b8c7eed commit b2d2e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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
5 changes: 3 additions & 2 deletions va/x11/va_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,16 @@ 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,
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);
}

0 comments on commit b2d2e34

Please sign in to comment.