diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2017-08-23 09:12:03 -0700 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-08-24 08:55:06 +0800 |
commit | fcab2f8d7512eb369cfeef4bba77d380f8e7ded7 (patch) | |
tree | 079e46670827b2f885b13d52d4f53c3d02457a0a /test | |
parent | 2f2f0ba6596bdbb7f0d0365a022b659b2722a489 (diff) | |
download | libva-intel-driver-fcab2f8d7512eb369cfeef4bba77d380f8e7ded7.tar.gz |
FEI: test: update brc expectation for VAEntrypointFEI
VAEntrypointFEI only supports VA_RC_CQP.
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/i965_avce_context_test.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/i965_avce_context_test.cpp b/test/i965_avce_context_test.cpp index 039c05d5..6ad2793a 100644 --- a/test/i965_avce_context_test.cpp +++ b/test/i965_avce_context_test.cpp @@ -94,14 +94,18 @@ TEST_P(AVCEContextTest, RateControl) struct i965_driver_data *i965(*this); ASSERT_PTR(i965); - const unsigned supportedBRC = (entrypoint == VAEntrypointEncSlice) ? - i965->codec_info->h264_brc_mode : i965->codec_info->lp_h264_brc_mode; + + const std::map<VAEntrypoint, unsigned> supportedBRC = { + {VAEntrypointEncSlice, i965->codec_info->h264_brc_mode}, + {VAEntrypointEncSliceLP, i965->codec_info->lp_h264_brc_mode}, + {VAEntrypointFEI, VA_RC_CQP}, + }; for (auto rc : rateControls) { ConfigAttribs attribs(1, {type:VAConfigAttribRateControl, value:rc}); const VAStatus expect = - ((rc & supportedBRC) || + ((rc & supportedBRC.at(entrypoint)) || profile == VAProfileH264MultiviewHigh || profile == VAProfileH264StereoHigh) ? VA_STATUS_SUCCESS : VA_STATUS_ERROR_INVALID_CONFIG; |