summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-03-15 00:06:41 +0000
committerXiang, Haihao <haihao.xiang@intel.com>2018-04-28 16:15:40 +0800
commitfab8943a42d31293191a8365f8813365c2afc0ab (patch)
tree140a7b1898b5f3715df0e0e628b4a5d09db07a05
parent459e947afb81c49160d94b5a4558075f28d0761f (diff)
downloadlibva-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.c11
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: