[FFmpeg-devel] [PATCH 3/3] lavc/qsv: Use vendor id to create device

fei.w.wang at intel.com fei.w.wang at intel.com
Fri Jul 26 04:05:22 EEST 2024


From: Fei Wang <fei.w.wang at intel.com>

New kernel driver "xe" will be supported from Lunar Lake instead of
"i915".

"xe" kernel driver:
https://github.com/torvalds/linux/tree/master/drivers/gpu/drm/xe

Signed-off-by: Fei Wang <fei.w.wang at intel.com>
---
 libavcodec/qsv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 0c6fbd0dc0..acf0991757 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -464,8 +464,8 @@ static int ff_qsv_set_display_handle(AVCodecContext *avctx, QSVSession *qs)
     AVVAAPIDeviceContext *hwctx;
     int ret;
 
-    av_dict_set(&child_device_opts, "kernel_driver", "i915", 0);
-    av_dict_set(&child_device_opts, "driver",        "iHD",  0);
+    av_dict_set(&child_device_opts, "vendor_id", "0x8086", 0);
+    av_dict_set(&child_device_opts, "driver",    "iHD",    0);
 
     ret = av_hwdevice_ctx_create(&qs->va_device_ref, AV_HWDEVICE_TYPE_VAAPI, NULL, child_device_opts, 0);
     av_dict_free(&child_device_opts);
-- 
2.34.1



More information about the ffmpeg-devel mailing list