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 3FDE8471FA for ; Tue, 28 Nov 2023 04:43:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5768568CFAE; Tue, 28 Nov 2023 06:42:54 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DAE2D68CFA3 for ; Tue, 28 Nov 2023 06:42: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=1701146573; x=1732682573; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aWBjDOpO0ICxD6WrjBE34j2tbL97YbmjIxmt6sDT5Pc=; b=mVyrBuQ4Ik2++jH4RzE0WFz5kIMYblq+xTkxOF17EogEU1NRi5wZ0Z67 0jbB+Iav8nPwG4AEjkRtbTfG2D3x7eCAra7NvyOVaKrCj5beaZFPnvJvb nRqA+5PEIZNE/cEsot1gbnO3+a3i092co88Xpy57l8nwpV/cWQOIFiK2b P6rfunwIM9E0IWTyqCn4OdzDIXDcXrG2VmbCiHstWTp/tksvNp5jC83w/ PfC+n3PAHc9+oe44AGNIOOw+LPWl3M+z2eBhWdV4X/f5Tp6hV7XWSykoR CO0sGgGJ3dIhlrBlG/p5JLRg5QOVbbLcQdcUoaenC7n1VHiHxMyueRavC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="6103475" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="6103475" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 20:42:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="1015797410" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="1015797410" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 20:42:38 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Tue, 28 Nov 2023 12:42:27 +0800 Message-Id: <20231128044227.2440476-3-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231128044227.2440476-1-haihao.xiang@intel.com> References: <20231128044227.2440476-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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 hardwares are available, the default one might not be Intel Hardware. 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".