diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2020-04-15 10:38:31 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-04-16 13:40:43 +0800 |
commit | eaf525c08706e4525dac4cf0a77eb7b2b8da7cda (patch) | |
tree | d44d660d7e0a9b5e3bce2135fb393d473b62f7a4 /lib/oeqa/runtime | |
parent | 0c4812e3f818412d8f63e1c27ee7f9778877b718 (diff) | |
download | meta-intel-eaf525c08706e4525dac4cf0a77eb7b2b8da7cda.tar.gz |
runtime/intel_vaapi_driver: Set i965 dirver for tests
Set i965 driver for libVA in order to enable vaapi plugin
because by default libVA use iHD driver where vaapi plugin
was not available.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'lib/oeqa/runtime')
-rw-r--r-- | lib/oeqa/runtime/cases/intel_vaapi_driver.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/oeqa/runtime/cases/intel_vaapi_driver.py b/lib/oeqa/runtime/cases/intel_vaapi_driver.py index d5989044..85d2dd39 100644 --- a/lib/oeqa/runtime/cases/intel_vaapi_driver.py +++ b/lib/oeqa/runtime/cases/intel_vaapi_driver.py | |||
@@ -16,12 +16,14 @@ class VaapiDriverTest(OERuntimeTestCase): | |||
16 | (status, output) = self.target.run('gst-inspect-1.0 vaapi') | 16 | (status, output) = self.target.run('gst-inspect-1.0 vaapi') |
17 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 17 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |
18 | 18 | ||
19 | (status, output) = self.target.run('gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' | 19 | (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' |
20 | 'gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' | ||
20 | 'timeoverlay ! vaapih264enc ! mp4mux ! filesink location=/tmp/vtest_h264.mp4') | 21 | 'timeoverlay ! vaapih264enc ! mp4mux ! filesink location=/tmp/vtest_h264.mp4') |
21 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 22 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |
22 | 23 | ||
23 | @OETestDepends(['intel_vaapi_driver.VaapiDriverTest.test_gstreamer_can_encode_with_intel_vaapi_driver']) | 24 | @OETestDepends(['intel_vaapi_driver.VaapiDriverTest.test_gstreamer_can_encode_with_intel_vaapi_driver']) |
24 | def test_gstreamer_can_decode_with_intel_vaapi_driver(self): | 25 | def test_gstreamer_can_decode_with_intel_vaapi_driver(self): |
25 | (status, output) = self.target.run('gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' | 26 | (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' |
27 | 'gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' | ||
26 | 'qtdemux ! h264parse ! vaapih264dec ! vaapisink') | 28 | 'qtdemux ! h264parse ! vaapih264dec ! vaapisink') |
27 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) | 29 | self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) |