Commit 82936d2e authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Austin Yuan

Don't dump VA surface pixels if driver doesn't return VA surface buffer.

parent 6d485756
...@@ -1078,13 +1078,14 @@ int va_TraceEndPicture( ...@@ -1078,13 +1078,14 @@ int 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);
va_TraceMsg("**Y data**\n"); if (!buffer)
return;
Y_data = buffer; Y_data = buffer;
UV_data = buffer + luma_offset; UV_data = buffer + luma_offset;
tmp = Y_data; tmp = Y_data;
va_TraceMsg("**Y data**\n");
for (i=0; i<trace_height; i++) { for (i=0; i<trace_height; i++) {
for (j=0; j<trace_width; j++) { for (j=0; j<trace_width; j++) {
if ((j%16) == 0) if ((j%16) == 0)
......
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