st/va:Add support for indirect manner by returning VA_STATUS_ERROR_OPERATION_FAILED
authorGuttula, Suresh <Suresh.Guttula@amd.com>
Mon, 11 Feb 2019 11:12:52 +0000 (06:12 -0500)
committerLeo Liu <leo.liu@amd.com>
Mon, 11 Feb 2019 19:44:16 +0000 (14:44 -0500)
commit2cf2a5673995e61de5943d502d1b29102e16cd5c
treeda1bff3751c5606e6120806f751a3f34a2fa0c40
parent114a899cc89faea1946ccc3aafbadc25a070f08e
st/va:Add support for indirect manner by returning VA_STATUS_ERROR_OPERATION_FAILED

Based on VA Spec,DeriveImage() returns VA_STATUS_ERROR_OPERATION_FAILED if driver
dont have support for internal surface formats.Currently vaDeriveImage()
failed for non-contiguous planes and operation failed error string is
required to support indirect manner i.e. vaCreateImage()+vaPutImage()
incase vaDeriveImage() failed with VA_STATUS_ERROR_OPERATION_FAILED.

This patch will notify to the client as operation failed with proper
error sting,so that client will fallback to vaCreateImage()+vaPutImage().

v2: updated commit message based on VA spec.

Signed-off-by: suresh guttula <suresh.guttula@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/state_trackers/va/image.c