aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2024-07-26 09:05:21 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-08-09 13:40:26 +0800
commiteab4a9e9f8ae4a057846f67de89b41f546365382 (patch)
treee24e2051fa6df490ea4a7903087b6ddbb167afe7
parentdbd74ba3c8f2a11f6ce6c177acfd3bbf1c0ba763 (diff)
downloadffmpeg-eab4a9e9f8ae4a057846f67de89b41f546365382.tar.gz
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>
-rw-r--r--libavutil/hwcontext_qsv.c4
1 files 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