From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 0C27046F52 for ; Fri, 24 Nov 2023 05:45:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5BBED68CF22; Fri, 24 Nov 2023 07:44:54 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4D0F168CF17 for ; Fri, 24 Nov 2023 07:44:47 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700804692; x=1732340692; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=huRF8PCe3Rvv8EqYLLeveCfHWqvPyOjn4bTCNWZfBGE=; b=fiSfgBYkP8AdrxFE46HYLU4293okIIvttBZf+OHVKMCIhBQAfqSkYJZT ZBI9DOGOFZR3mfiojvQbUfIp+Bn6Ip+DlAySkgVAbck68MQ1gTJuBRKar jlN0INOKcPFYZMTzU+XWQZJn+AnMq/e3YxDpkR+tI/c5aZXPI1uW0cVvk yO50U9zq7FN94HNu6uFprMLza1XZsZAmvyBbCrZNxVGFgi3z0aqJ7oBaI ynGy7uiOBXlIHG7t/t+qVxmR88srE5hs1Fu1wTxptYK3YZTvLpxWiYfna FO6xAS7X+Ln92LKSKuOFi34cjp7kvOqPhF75M0lq/FeW6ve+bwyucUSvj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="458858905" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="458858905" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 21:44:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="890977586" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="890977586" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 21:44:39 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Fri, 24 Nov 2023 13:43:48 +0800 Message-Id: <20231124054348.3115276-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231124054348.3115276-1-haihao.xiang@intel.com> References: <20231124054348.3115276-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] lavu/hwcontext_qsv: Make sure hardware vendor is Intel for qsv on d3d11va 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: Haihao Xiang , Artem Galin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Haihao Xiang When multiple hardware are available, the default one might not be Intel Hareware. We can use option vendor_id to choose the required vendor. Tested-by: Artem Galin Signed-off-by: Haihao Xiang --- libavutil/hwcontext_qsv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 1bfda9e69b..7a9cd0cc37 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -2200,6 +2200,12 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device, #endif #if CONFIG_D3D11VA case AV_HWDEVICE_TYPE_D3D11VA: + { + // Make sure the hardware vendor is Intel when multiple devices are + // available, it will be ignored if user specifies the child device + // explicitly + av_dict_set(&child_device_opts, "vendor_id", "0x8086", 0); + } break; #endif #if CONFIG_DXVA2 -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".