config: fix vaCreateConfig() to not override user chroma format.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 9 May 2014 15:55:05 +0000 (17:55 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 2 Jun 2014 17:30:43 +0000 (19:30 +0200)
commit9200fe231e1ffe249e17c8146303eeae6338aa06
tree1b47d81c0f4ee1eb68ee350ff75ef128e7d93f7f
parent0f2e2a97a33881ab3a7f0c079391651c8a0fca78
config: fix vaCreateConfig() to not override user chroma format.

Only validate the user-defined chroma format (VAConfigAttribRTFormat)
attribute, if any. Don't override it. i.e. append a pre-defined value
only if it was not defined by the user beforehand.

Propertly return VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT if the supplied
chroma format is not supported.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
src/i965_drv_video.c