summaryrefslogtreecommitdiff
path: root/va/va_trace.c
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@gmail.com>2010-05-08 02:03:56 +0800
committerAustin Yuan <shengquan.yuan@gmail.com>2010-05-08 02:03:56 +0800
commit70074679333c236bca857a0242ae34442a4874f6 (patch)
tree8332e3266d31ab1851dcbc7e1ecfef8cb1f95728 /va/va_trace.c
parent03a6cbe5a8c41aa5311a1ddb67bb93a0ae3539b4 (diff)
Seperate 3rd party API (e.g. vaCreateSurfaceFromXXX) into a libva-tpi.so
and driver table memory is allocated by driver if driver wants to support it. Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'va/va_trace.c')
-rw-r--r--va/va_trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index e0e335f..dbd0749 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1048,6 +1048,7 @@ int va_TraceEndPicture(
unsigned int luma_offset;
unsigned int chroma_u_offset;
unsigned int chroma_v_offset;
+ unsigned int buffer_name;
void *buffer;
char *Y_data, *UV_data, *tmp;
@@ -1061,8 +1062,8 @@ int va_TraceEndPicture(
va_TraceMsg("***dump surface data***\n", trace_rendertarget);
- va_status = vaCopySurfaceToBuffer(dpy, trace_rendertarget, &fourcc, &luma_stride, &chroma_u_stride, &chroma_v_stride,
- &luma_offset, &chroma_u_offset, &chroma_v_offset, &buffer);
+ va_status = vaLockSurface(dpy, trace_rendertarget, &fourcc, &luma_stride, &chroma_u_stride, &chroma_v_stride,
+ &luma_offset, &chroma_u_offset, &chroma_v_offset, &buffer_name, &buffer);
if (va_status != VA_STATUS_SUCCESS)
return va_status;
@@ -1110,5 +1111,4 @@ int va_TraceEndPicture(
tmp = UV_data + i * chroma_u_stride;
}
}
- free((void *)buffer);
}