Skip to content

Commit

Permalink
test: temporal disable negtive test for VAEntrypointEncSliceLP
Browse files Browse the repository at this point in the history
from intel MTL+, there are only one entry point for encode: VAEnctrypointEncSlice
to avoid some potential issue: some application dose not call query before use
entrypoint, and only use VAEnctrypointEncSliceLP.
so there are one WA to accept both VAEnctrypointEncSlice & VAEnctrypointEncSliceLP
even only report VAEnctrypointEncSlice in vaQueryConfigEntrypoint

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
  • Loading branch information
XinfengZhang committed Sep 13, 2023
1 parent 98505af commit 4c7a397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_va_api_get_create_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ TEST_P(VAAPIGetCreateConfig, CreateConfigWithAttributes)
{
const VAStatus expectedStatus = getSupportStatus(profile, entrypoint);

if (VA_STATUS_SUCCESS != expectedStatus) {
if (VA_STATUS_SUCCESS != expectedStatus && VAEntrypointEncSliceLP != entrypoint) {
createConfig(profile, entrypoint, ConfigAttributes(), expectedStatus);
destroyConfig(VA_STATUS_ERROR_INVALID_CONFIG);
return;
Expand Down Expand Up @@ -126,7 +126,7 @@ TEST_P(VAAPIGetCreateConfig, CreateConfigNoAttributes)
{
const VAStatus expectedStatus = getSupportStatus(profile, entrypoint);

if (VA_STATUS_SUCCESS != expectedStatus) {
if (VA_STATUS_SUCCESS != expectedStatus && VAEntrypointEncSliceLP != entrypoint) {
createConfig(profile, entrypoint, ConfigAttributes(), expectedStatus);
destroyConfig(VA_STATUS_ERROR_INVALID_CONFIG);
return;
Expand Down

0 comments on commit 4c7a397

Please sign in to comment.