VAEntrypointFEI only supports VA_RC_CQP in VAConfigAttribRateControl
config attribute. Return VA_STATUS_ERROR_INVALID_CONFIG if it's
set to anything else.
Fixes #257
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
else if ((entrypoint == VAEntrypointEncSliceLP) && attrib_found &&
!(attrib_found->value & i965->codec_info->lp_h264_brc_mode))
vaStatus = VA_STATUS_ERROR_INVALID_CONFIG;
+ else if ((entrypoint == VAEntrypointFEI) && attrib_found &&
+ !(attrib_found->value == VA_RC_CQP))
+ vaStatus = VA_STATUS_ERROR_INVALID_CONFIG;
break;
default:
break;