Commit 6dc2d5c5 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Austin Yuan

Fix va_TraceEndPicture() to unlock the VA surface.

parent a6142c41
...@@ -1086,8 +1086,10 @@ void va_TraceEndPicture( ...@@ -1086,8 +1086,10 @@ void va_TraceEndPicture(
va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset); va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset);
va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset); va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset);
if (!buffer) if (!buffer) {
vaUnlockSurface(dpy, trace_rendertarget);
return; return;
}
Y_data = buffer; Y_data = buffer;
UV_data = buffer + luma_offset; UV_data = buffer + luma_offset;
...@@ -1120,4 +1122,6 @@ void va_TraceEndPicture( ...@@ -1120,4 +1122,6 @@ void va_TraceEndPicture(
tmp = UV_data + i * chroma_u_stride; tmp = UV_data + i * chroma_u_stride;
} }
} }
vaUnlockSurface(dpy, trace_rendertarget);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment