• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

修订版6dc2d5c59b8578da7d9dc9c7818f94eabfd13800 (tree)
时间2010-07-26 11:08:47
作者Gwenole Beauchesne <gbeauchesne@spli...>
CommiterAustin Yuan

Log Message

Fix va_TraceEndPicture() to unlock the VA surface.

更改概述

差异

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1086,8 +1086,10 @@ void va_TraceEndPicture(
10861086 va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset);
10871087 va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset);
10881088
1089- if (!buffer)
1089+ if (!buffer) {
1090+ vaUnlockSurface(dpy, trace_rendertarget);
10901091 return;
1092+ }
10911093
10921094 Y_data = buffer;
10931095 UV_data = buffer + luma_offset;
@@ -1120,4 +1122,6 @@ void va_TraceEndPicture(
11201122 tmp = UV_data + i * chroma_u_stride;
11211123 }
11221124 }
1125+
1126+ vaUnlockSurface(dpy, trace_rendertarget);
11231127 }