aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2024-07-26 09:05:22 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-08-09 13:40:26 +0800
commitcda5f5c5ed6de9ed5bba5c926adefe5588ea881a (patch)
treebd362b5d66a57cdba905bdbdb6fb855a311c9d4f /libavcodec
parenteab4a9e9f8ae4a057846f67de89b41f546365382 (diff)
downloadffmpeg-cda5f5c5ed6de9ed5bba5c926adefe5588ea881a.tar.gz
lavc/qsv: Use vendor id to create device
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@intel.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 221c1b24e5..8a3dc95706 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -468,8 +468,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);