Skip to content

Commit c189a88

Browse files
committed
va_trace:add return value trace for vaPutSurfaces
Signed-off-by: Carl Zhang <[email protected]>
1 parent 62e2f4d commit c189a88

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

va/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ if WITH_X11
151151

152152
libva_dri_headers = [
153153
'x11/va_dri2.h',
154+
'x11/va_dri3.h',
154155
'x11/va_dricommon.h',
155156
]
156157

157-
libva_x11_headers = ['va_x11.h'] + libva_dri_headers
158+
libva_x11_headers = ['va_x11.h'] + libva_dri_headers + ['va_trace.h']
158159

159160
libva_headers_subproject += libva_dri_headers
160161

va/va_trace.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ void va_TracePutSurface(
475475
unsigned int flags /* de-interlacing flags */
476476
);
477477

478-
DLL_HIDDEN
479478
void va_TraceStatus(VADisplay dpy, const char * funcName, VAStatus status);
480479

481480
/** \brief va_TraceEvent

va/x11/va_x11.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,17 @@ VAStatus vaPutSurface(
171171
)
172172
{
173173
VADriverContextP ctx;
174-
174+
VAStatus vaStatus = VA_STATUS_SUCCESS;
175175
CHECK_DISPLAY(dpy);
176176
ctx = CTX(dpy);
177177

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

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

0 commit comments

Comments
 (0)