From patchwork Fri Jul 26 01:05:21 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: 50742 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a830:0:b0:482:c625:d099 with SMTP id z16csp180577vqo; Thu, 25 Jul 2024 18:03:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWoLVO8oBcFRuemjbccfjbZfc1P8K8PY8OIu/sFG5cZyu75XUiIi/MJx0+hW73V+TNA6KQiO1GSdaQKLEAN81mUbE5HeYpGmD6/Rg== X-Google-Smtp-Source: AGHT+IEkfwxFFmylrTcx/EHDZLECrfZjC9B/MFdyKMxtsX42Tn6CFaJt63s7TkOiD95JWRI7FaYL X-Received: by 2002:a17:907:7295:b0:a7a:b1a5:21a5 with SMTP id a640c23a62f3a-a7acb99c97bmr275858466b.61.1721955802796; Thu, 25 Jul 2024 18:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721955802; cv=none; d=google.com; s=arc-20160816; b=JYZP/ey+5CR0ccAwsBJx/TdJscu0kOf4sbWR1hjrbO4c0H3zZPqw1PNL1OkVaDW0fv MTB7Kp8kNWfHJXc//Vv5rhxJwOjTZrMrzrIuovA53DFDTQEBBgGxDHJ233JbdD4qkDx4 SpIT7WjQ7DpnA99dRYpYWYfdQrAG2hipwXZFqykeay6Fjh+oVxJSx1zE+mCsQA5okLRr /RRkmmcS3PT2ZiE51MLTm+dUj1yXlVdHw2iAZsznBkHoWMNHMKQ5gnhpk+VNLmwRBylW inhwJrBBHqM+Lc37B5hhhWQguvEZzqwc5Dku6Sm+jm773LJKAB/raEHKUXvEeCZMhiBr ZVxA== 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=gs3bbISMkhTCGsreCbIkRTJbsOxWFVedQKeYT894ZRM=; fh=i4ESP4ZRFDcfYfwXKWpOXjc2YhmIGuOsCfZUnwNO0gc=; b=MJ3m98vtuKv9naWmVWkyBl7t+Ump56t0IZ7nfCxvxpsBEmpFtWTa9/7F/Cu45LAz20 DkHGst9HZSpz42/o3gKiyE4MqeVeRs5auG6V1K7KsQDlXVBo3sZlilivDqYdVWbmMGm+ xKwxFm19GX03Xnicgu4bffqcBJkytOww7mNyDPhpxw/gePbx9JY4btGbzAcCSZLTMro3 r5kylw5XYC/31DyLyhHLYtYTVFEey9GBxEFTr4Knb8s7+0QAMNChfmrIa61hFK44VyFd pf9b8dNpujNUJmnvR05ik5oAymNC+0srFFXi2Lqttu3JKjQU0+1YV4GY7U0liQTH6udc zcRQ==; 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=IsTt9QKQ; 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 a640c23a62f3a-a7acab68224si170676366b.555.2024.07.25.18.03.22; Thu, 25 Jul 2024 18:03:22 -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=IsTt9QKQ; 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 0E1EF68D6B5; Fri, 26 Jul 2024 04:03:11 +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 BBD0868D602 for ; Fri, 26 Jul 2024 04:03:02 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721955788; x=1753491788; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5wNUFNTpbza/KDsGvMAccr1GNAD3n38qyVAwq1nux7c=; b=IsTt9QKQD0TNZl+IskIvlQdrts3i8QeW/gn2adsLNKiLCnn8dmjGkaI/ 6WN+j83Kvt3oCkPLUTNLRiUB9PhrGWKK/FvzRhH1GdptMhKc4Ja7YYiQf WFCRukjthOhjzAFHIlb6oR3Bw6kiY/JgB3Y2zjIA3jZRQrAXZp6gEVeL3 3Xu4LReieD6X/OxlkF/urEfH5BTBpbtA/cUz8rpEhbpLCWbZj1tQMw2+c HelVnXzAZJrJutYWLiB6GJsz53PwlEsw6U3wJVuxaHPUu5kdN3FZQPprU +mjk0WSojqzBvbVA5Ib7T012RHlTPwwJhdcO5TL4jW23OToRzlxMKJCwm g==; X-CSE-ConnectionGUID: DiTGVyarRo+2qqyLIvYRPg== X-CSE-MsgGUID: 5GfV6F+LRcyZwyp6AVUd/g== X-IronPort-AV: E=McAfee;i="6700,10204,11144"; a="19425083" X-IronPort-AV: E=Sophos;i="6.09,237,1716274800"; d="scan'208";a="19425083" 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:00 -0700 X-CSE-ConnectionGUID: T5ewHhe8R1eM2XjQviCzQg== X-CSE-MsgGUID: zr+thi1NSrGlY+aaNrwuFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,237,1716274800"; d="scan'208";a="53177878" Received: from feiwan1-desk3.sh.intel.com ([10.238.208.39]) by fmviesa010.fm.intel.com with ESMTP; 25 Jul 2024 18:02:59 -0700 From: fei.w.wang-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Jul 2024 09:05:21 +0800 Message-Id: <20240726010522.1316432-2-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 2/3] lavu/hwcontext_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: Svwjigy9yxUA 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 --- 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 7cec347478..af0a3e1051 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -2569,8 +2569,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