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:34:21 +0000 (22:34 +0800)
commitf8c07d21f3db99a953289e61cd0cbf8668c5b45e
tree48d6c9917d51a4c5698f748076dd1d2fcd3df2a8
parent55554bce84b93b27bec0fc706a68c3d279cdee1a
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