From eaf525c08706e4525dac4cf0a77eb7b2b8da7cda Mon Sep 17 00:00:00 2001 From: Yeoh Ee Peng Date: Wed, 15 Apr 2020 10:38:31 +0800 Subject: 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 Signed-off-by: Anuj Mittal --- lib/oeqa/runtime/cases/intel_vaapi_driver.py | 6 ++++-- 1 file 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): (status, output) = self.target.run('gst-inspect-1.0 vaapi') self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) - (status, output) = self.target.run('gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' + (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' + 'gst-launch-1.0 -ev videotestsrc num-buffers=60 ! ' 'timeoverlay ! vaapih264enc ! mp4mux ! filesink location=/tmp/vtest_h264.mp4') self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) @OETestDepends(['intel_vaapi_driver.VaapiDriverTest.test_gstreamer_can_encode_with_intel_vaapi_driver']) def test_gstreamer_can_decode_with_intel_vaapi_driver(self): - (status, output) = self.target.run('gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' + (status, output) = self.target.run('export LIBVA_DRIVER_NAME=i965; ' + 'gst-launch-1.0 filesrc location=/tmp/vtest_h264.mp4 ! ' 'qtdemux ! h264parse ! vaapih264dec ! vaapisink') self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) -- cgit v1.2.3-54-g00ecf