diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-03-15 00:06:41 +0000 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-04-28 16:15:40 +0800 |
commit | fab8943a42d31293191a8365f8813365c2afc0ab (patch) | |
tree | 140a7b1898b5f3715df0e0e628b4a5d09db07a05 | |
parent | 459e947afb81c49160d94b5a4558075f28d0761f (diff) | |
download | libva-intel-driver-fab8943a42d31293191a8365f8813365c2afc0ab.tar.gz |
Do not return FEI caps for non-FEI entrypoints
Signed-off-by: Mark Thompson <sw@jkqxz.net>
-rw-r--r-- | src/i965_drv_video.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 0104a92f..e206a2f5 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -1279,13 +1279,16 @@ i965_GetConfigAttributes(VADriverContextP ctx, break; case VAConfigAttribFEIFunctionType: - /* Supporing all possible modes of FEI */ - attrib_list[i].value = VA_FEI_FUNCTION_ENC | - VA_FEI_FUNCTION_PAK | VA_FEI_FUNCTION_ENC_PAK; + if (entrypoint == VAEntrypointFEI) { + /* Supporting all possible modes of FEI */ + attrib_list[i].value = VA_FEI_FUNCTION_ENC | + VA_FEI_FUNCTION_PAK | VA_FEI_FUNCTION_ENC_PAK; + } break; case VAConfigAttribFEIMVPredictors: - attrib_list[i].value = 4; + if (entrypoint == VAEntrypointFEI) + attrib_list[i].value = 4; break; case VAConfigAttribStats: |