[FFmpeg-cvslog] lavu/hwcontext_qsv: Use vendor id to create device
Fei Wang
git at videolan.org
Fri Aug 9 10:30:02 EEST 2024
ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Fri Jul 26 09:05:21 2024 +0800| [eab4a9e9f8ae4a057846f67de89b41f546365382] | committer: Haihao Xiang
lavu/hwcontext_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 at intel.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eab4a9e9f8ae4a057846f67de89b41f546365382
---
libavutil/hwcontext_qsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 09156275ec..721c841c2a 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -2572,8 +2572,8 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
// used on recent Intel hardware. Set options to the VAAPI device
// creation so that we should pick a usable setup by default if
// possible, even when multiple devices and drivers are available.
- 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);
}
break;
#endif
More information about the ffmpeg-cvslog
mailing list