1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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@intel.com>
This commit is contained in:
Fei Wang 2024-07-26 09:05:21 +08:00 committed by Haihao Xiang
parent dbd74ba3c8
commit eab4a9e9f8

View File

@ -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