Fix the issue in i965_UnlockSurface to lock it next time
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 31 Oct 2012 08:47:54 +0000 (16:47 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 31 Oct 2012 14:04:07 +0000 (22:04 +0800)
commit67b8f6d27374f628290c63c42976bdf878a33a2d
treeb18ee6c4b6ef4262914c2e5a29c6003df66083f1
parent99e38ab058437ff0f1de2e4d365a4a592e414a2e
Fix the issue in i965_UnlockSurface to lock it next time

It uses the variable of locked_image_id to check whether one surface is locked
or not. But as the locked_image_id is not assigned correctly, it causes that
it can't lock one surface next time although it calls the vaUnlockSurfaces.
Then the libva trace log can't dump the content of decoded/
encoded surface even after adding LIBVA_TRACE_SURFACE=XXX.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Gwenole Beauchesne <gb.devel@gmail.com>
src/i965_drv_video.c