From patchwork Fri Jul 26 01:05:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Fei W" X-Patchwork-Id: 50743 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a830:0:b0:482:c625:d099 with SMTP id z16csp180629vqo; Thu, 25 Jul 2024 18:03:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXLjMhhY6EcdyFbMwvm65jlTtsmmppNKUvKoap8Q97Y04IhVRwZjQLZwYlnecnX6BjMZLFZ/pVD+PZ1OJG2qo5zoBo2bb8EbUT5+A== X-Google-Smtp-Source: AGHT+IH5HbwV7C4Bbr3P+80iWOjvqNRRkazWEGcjXn/NJq1iExyzdu8P+fEimZrwRQVKgIRhuFN+ X-Received: by 2002:a2e:81d7:0:b0:2ec:5fe1:c762 with SMTP id 38308e7fff4ca-2f039db6f4amr31780081fa.46.1721955812035; Thu, 25 Jul 2024 18:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721955812; cv=none; d=google.com; s=arc-20160816; b=l0o1PEgHTt8Tx99EHyQLfZkkTeeOKMZiddyjx6Y+wLDI8/85fdd6d/yYayuhn9YTAO OBA02eLIbImquVXJvbcSVfhL3UvX1s3GYa1WvJiyxM1dYjDz3+Nh8kXd69iJdGFN7u42 MMeK6Elt8+kVpbkRdaklX5vq9eEz13gz99TRxYvpREGGvFLbRzeaJ9JwcnJ/NH4G7Tj8 fv6evfTa0mrpUNvzLpWC6gTtEyUQlSoIF3/HgR6LZm7Z3AOwvmCZ2+K2lbdoqDp6beLe g/yQXDPJq5/FIUKcUknwDhBntqLHrPXdoocQf3+jvk3ArjcXW01TwECtyV3wzYTsKoLe vjtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=gc+2+A00x1NQoJeLoSzAA4lie8I01VM7tZ+MEFv8udM=; fh=i4ESP4ZRFDcfYfwXKWpOXjc2YhmIGuOsCfZUnwNO0gc=; b=z8kJ7x9gEp6w6SRubTSfEYoQnRuakAJEP3H7mPwxwFcGzqlcaF82oKID+UVS86lBr4 MQM+/KqBShWxJP2xQsUDP8KVOSjNzYCmR5TQn5yS3HDsse1kYhecObxzfR74MEL42pF1 lBeq4lp7HobZAwJxHIY+m+2JRVxtg5aimvsDcGYLWLnv3jQQflYoDcA36G/0mJ6rHK8h gB+rhejmFja74RVCxbedQG+Z4RoMCJQCS31sd2IjHyRjxkjnjJXXcSdooRQrjf+0f+fS yyz21zEusoAG5O5dJtFiSQmwcBsL0F64vQdCEpkKudQu+gw1UT3qNIYjdoXr9uPa5Aud HRgw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=A0IEPbnC; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 38308e7fff4ca-2f03d0bbfb5si6792751fa.165.2024.07.25.18.03.31; Thu, 25 Jul 2024 18:03:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=A0IEPbnC; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3750C68D795; Fri, 26 Jul 2024 04:03:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2C74B68D623 for ; Fri, 26 Jul 2024 04:03:06 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721955793; x=1753491793; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=H9yDW08P4jxwlHA960OMDGzkBo3Jl2rU5Owqhd7xfoY=; b=A0IEPbnCmbtaQNAevQ2IzVPpRql1AcmQm46ULDk2PXLCLUrvQkzhigJL czkRd9OTdCq06oUcfUqB6M5P4n7FQbUbw9s/ypuCd0VH33QL/2SwnS3j0 16UNheGo2BDAc/HHkpNDc+acBen7jf0J4WcbW+7GE6s1PwQ0OweacrF1Q mWSgyaykfTly1ZfKbqV6mq901Hnjd7h9+FlZdEDXxxN8yQ13ppsoh78VI xo7hjCPn+qijq0c/E/zS/jW4que274AorOilJUipirJQrrxwkTnwvuGQ9 QU/zc/aK2UP0VaH5RRbGyhfjD4ZaXoTxGZXtBwT3P3yXxbJlLZHP3Gu4j g==; X-CSE-ConnectionGUID: p/MB67sXSsWTBPld2F7/VQ== X-CSE-MsgGUID: MAt6qjznSEqJfMoINTkWzA== X-IronPort-AV: E=McAfee;i="6700,10204,11144"; a="19425084" X-IronPort-AV: E=Sophos;i="6.09,237,1716274800"; d="scan'208";a="19425084" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2024 18:03:01 -0700 X-CSE-ConnectionGUID: 0c+gvFl4T/qBZ7tSqzunOw== X-CSE-MsgGUID: XjXnktuKR7+2ZVz94vRGIA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,237,1716274800"; d="scan'208";a="53177881" Received: from feiwan1-desk3.sh.intel.com ([10.238.208.39]) by fmviesa010.fm.intel.com with ESMTP; 25 Jul 2024 18:03:00 -0700 From: fei.w.wang-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Jul 2024 09:05:22 +0800 Message-Id: <20240726010522.1316432-3-fei.w.wang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240726010522.1316432-1-fei.w.wang@intel.com> References: <20240726010522.1316432-1-fei.w.wang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] lavc/qsv: Use vendor id to create device X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: fei.w.wang@intel.com Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 1oI+UCf31ewg From: Fei Wang 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 --- 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);