Guess the format of a VA surface in vaDeriveImage()
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 2 Feb 2012 02:37:38 +0000 (10:37 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 2 Feb 2012 02:44:24 +0000 (10:44 +0800)
commitf8687ab1ed294adf9175b2f64f5ea60748f66759
treebe6c47db4c07005e8a5c6f8d7735d74387f4a606
parentb663a5861db61aaa7a241cbb8652c9d7ff207951
Guess the format of a VA surface in vaDeriveImage()

Sometimes we don't know the usage of a VA surface, so we have to
guess the format according to the current valid context (a hint).

Note it is not always right, pixel format conversion is
needed internally for mismatched pixel format.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_drv_video.c
src/i965_drv_video.h