Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

va_trace:add return value trace for vaPutSurfaces #793

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}