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 6D5D3420E3 for ; Thu, 28 Apr 2022 09:31:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 572F868B3CA; Thu, 28 Apr 2022 12:31:54 +0300 (EEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4217F68B379 for ; Thu, 28 Apr 2022 12:31:47 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651138312; x=1682674312; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=tP+dkdgHoiwJk9xgLxBAKM4KPgG7I7gRbIXD4E4FUp0=; b=efTgJ4AQ89Q+Xo2gXs6CfnxR8Q3RG/MA09yKkHTuokO1I/U3ead2dEn2 3pPCvh8sRljFx4FMJSTDqm2giRzn/dhemnhyLmgPvAK9BsvDEcJpoDEyc 4wbmslYs/rnx4MhLAVbzffzgfaDmIh4C1gG+oRfyhNS/P1riTrBO6bQwU Y6mwh8rYen3PimuXNe5A85wkDCgVUJBwuTLT1ODRVfslUJRuXHlU6GEG0 xww+dafZSyZNZdFVeeKlczNs7Cp5WtasxUpajpPTfR5OgiwPsnhzdDuOE WtDbpDsICx3dcy3KM6BHEdvQX7Lz/OJF6ReI64I8gbd+sVVC9nuzIrH/d g==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="329166453" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="329166453" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:31:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="514178522" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga003.jf.intel.com with ESMTP; 28 Apr 2022 02:31:45 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 28 Apr 2022 02:31:45 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 28 Apr 2022 02:31:45 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 28 Apr 2022 02:31:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i8KJzB4EKhIdKIijZAf6CUFfl7LPZSRCZD0+1dPmMz1gcHz7TMD0c+FkhP4Ca1R3wyVP5f6VcmlqDLiBiUUdeaV2XYRP8McRUY/wni4dnFz8mNPcBV2ex0DgecGt+F5v7bOWdA+HzWn+qxGjFV7CMib1ZtwcDbgwganLM9wmvzoDo9VUkwIf5t6Oyx9tCqBQGsmaxzasZf5kAXwUgTJ0IryN6nd9d4KCx31NZYdDMCyljVWZEAyPiFV0ipBJ3bZUVEwkRZ5QrYBHAAOpqpajgsQr4bBXAgJw13ZM09/o6X751/IWQU7TgJRCOb9NFbHtZPE2i4/CBuagykroLyYE2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tP+dkdgHoiwJk9xgLxBAKM4KPgG7I7gRbIXD4E4FUp0=; b=KzYFzPGJkfY6a8AnPDv2BOWNM9xP5aPVH9U0ia7HMBI6YcyQhArKTFGs940tiFpw4T+e5gDbEtbdCTfllp558RMtUFkGob+GgXvtFfPYTxj/plGwjwl18bK0K/5s5IK2a5ixti4ZCSU3uiwrR++LnDiyjr8P3oufWqvb6PeAwcZMG/mMydCsFqNEjHrQAixQmEpxQVbC5FEBT0f+n3dOqyaBYcqDsTSUmuA1rXGj5p8dt8ylPEniLd/7hpTp1FFvTHR8CwKvO++Ovx8jDgjby1DebEIKMJv3KwfmbynydAvlCHja4l7p8GLj26m6Zz3yCHTT06aRMCk77pb/jY0Pgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5515.namprd11.prod.outlook.com (2603:10b6:408:104::8) by CY5PR11MB6307.namprd11.prod.outlook.com (2603:10b6:930:21::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Thu, 28 Apr 2022 09:31:42 +0000 Received: from BN9PR11MB5515.namprd11.prod.outlook.com ([fe80::6534:444c:a75d:4bf2]) by BN9PR11MB5515.namprd11.prod.outlook.com ([fe80::6534:444c:a75d:4bf2%9]) with mapi id 15.20.5186.021; Thu, 28 Apr 2022 09:31:42 +0000 From: "Xiang, Haihao" To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: [FFmpeg-devel] [PATCH v7 09/10] qsv: use a new method to create mfx session when using oneVPL Thread-Index: AQHYNSBqcT+tJ+LIA0aRqdEVFkmcx6y525UAgABWBoCAAATjgIAF2rKAgB+WXQCAAsNRgIAi8GmA Date: Thu, 28 Apr 2022 09:31:42 +0000 Message-ID: <2b53d87db076bad307449eb58257fdb73ed47cc1.camel@intel.com> References: <20220311081630.21927-1-haihao.xiang@intel.com> <20220311081630.21927-10-haihao.xiang@intel.com> <1202f7ddc68d529bd517aeeb4190bacd9783db79.camel@intel.com> <08febe49f865cc957dbdcb7bddadd6ecb2e0b414.camel@intel.com> In-Reply-To: Accept-Language: en-AS, zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.2 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af8207de-2f66-4c38-b2e5-08da28f9e7d1 x-ms-traffictypediagnostic: CY5PR11MB6307:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8xxnsadarkGCNq5208kjIVk8w3y/5izURoJy2jqGP9LnohneBlEZK9vguxZg8MGh4JDFt1sp4FXjaeEeGkrNZ92uMlCUj1HHtJhcbK0RpFGdjjWP4R6+Yc4fGHXqr/1twVUldckgkU35lAaKJt66PmoPRZjt24kbpqLuan9kBN0QRHoiIIaBUL30BF0XiaAVUIJrexXe+c1in/hzZjuXn3Oria8p3nTnt12aUv080CBk2kBNapV7Bi5QJNUqCBGGMeFz9DvFEGwVQ1ORnnXOldSTg8JLuFVv3c4F1qMfkaL9dBXHHKRNxJH6eN5ZEKWwWocHGnOMfRqRlxqlHTzfppjYtVcgFY+J77CYZ0gxTxC0BUFhkOAsgfA4/Jm+59zVwIzmprbkMtUpBLGE3UAvh2ERSp8p7LzrZAc6/9khh+qR/gYoKrisM7X8cj7lrS5qaFszxgMZtGzps5yUS5BpJ0v7xFDXh2VTEVibElE/ggautO7jUp4Vuzu34Wlv5zAb8PljEE8iDGqnvxTl0biLznBExOuPHgKV4k9GXXaZGGw1OyJfQeUZTGHXjDXBl/Lu3mpexyVTZElHLtroOCyK4zSUmbDiZd8oKi/gYzNy2Az+OFnU4pwLBOQPqFUBqKF6G+Tv6d91+33N0cyhrf/tSLTSeFTMHcN8Nxt4wqqJQznO2HOWPDgwy5yCI6Oc5Ghd4IfcdQ1Tqsiw88hDmLriqjjhgmrFrhd5Ru2fjdGtjLWinwm0yp4l86qTGsYkYxNOLya/ACIZCHCtQqCnK3ppzm3o21m9HrhijEKXAhH4Akw5ysMTkdBlnP17PsbQ4bMZ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR11MB5515.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(86362001)(316002)(2616005)(66446008)(91956017)(8936002)(66476007)(5660300002)(2906002)(83380400001)(6486002)(966005)(71200400001)(6506007)(186003)(508600001)(6512007)(36756003)(26005)(76116006)(8676002)(64756008)(38070700005)(38100700002)(66556008)(66946007)(82960400001)(122000001)(6916009)(99106002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?TkJpb0czRTQ4a29oQ2txWlVMekJVMDZpRVpqMVBYRnJaQzRuTk1CdE4zV1dS?= =?utf-8?B?NDluN2hacHN6U0tDY3p4azIza0I5SVBKbjJVSTRGalFkZzBkdFh5cEpja09O?= =?utf-8?B?OXhscWFEQ05MUWV5RHR6VDRiWSs0TE40U0o3c2RKQ3pPS1dpUFB4eXBJL3Bo?= =?utf-8?B?Qk1PaCtCTmFJblJIK0hOcTZUek53dnJxLzQwMHRzZVd3YXFpWmFiVndWU2xq?= =?utf-8?B?eXd0eU1lYXlKUmc1T25mSkxCcFEvOVdncnVEcmpydktqUm42cVZmdUdlT0lO?= =?utf-8?B?SUtzRGU1ZSsvc1hGWjdXTzNRb2V2TTJrTDBaTlNhcktRT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dzb0pQVGlJdnY1ejNWYzRuMng1YjlEMVNIeUJzTFR2dVhJZDNZ?= =?utf-8?B?VUMwWjVsVG1BMVpUTEN0TkdJVXVsNU4vT2RwSHdGUmg1SkJyUU1UNStaWkNi?= =?utf-8?B?alpyRTFIN05uR1lxNkFnK1JSc1QvaDVBanZIOVQ1dTJTRG5xOVF2MXNheTJT?= =?utf-8?B?MU1SZ0drVWJEZDExU0x5SFVkNU5EZzArejF5dURrdXltbUhVZmlOK0NIMENY?= =?utf-8?Q?OvLB9em+j56wzp4A=3D?= Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5515.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af8207de-2f66-4c38-b2e5-08da28f9e7d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2022 09:31:42.6969 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KGDiX1qLUptLEC2U75PVqeKXUpwJF5mFWS7xEaNEYXb7Q2EbqnenqhEHJG6sJ4KfSEM5P8NroMbEQ267D8DusA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6307 X-OriginatorOrg: intel.com Subject: Re: [FFmpeg-devel] [PATCH v7 09/10] qsv: use a new method to create mfx session when using oneVPL 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 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: On Wed, 2022-04-06 at 03:58 +0000, Xiang, Haihao wrote: [...] > > > > > > > > https://spec.oneapi.io/versions/latest/elements/oneVPL/source/API_ref/VPL_disp_api_struct.html#structmfx_impl_description > > > > > ) and user must select an available implementation before the creation > > > > > of > > > > > mfx > > > > > session, however the device handle is unknown in the SDK when > > > > > selecting > > > > > an > > > > > available implementation, the SDK provides a method to select > > > > > implementation > > > > > via > > > > > the given adapter (on Windows) or DRI device node (on Linux). The > > > > > default > > > > > implementation will be selected if child device name is unknown. > > > > > > > > > > > > > First of all, whoever made that API should get a stern message. > > > > Expecting to properly interoperate with the dominant platform APIs > > > > should be a primary goal, and it sounds like it was somehow shoehorned > > > > in after the fact. > > > > > > > > For D3D11 for example, you can get the IDXGIAdapter a device was > > > > created from, isn't there enough information in there to pass-on > > > > without storing a string field? > > > > IDXGIAdapter::GetDesc has tons of identification information to > > > > identify the device in use. > > > > > > > > D3D9 probably has something similar, haven't checked right now. > > > > > > > > > Thanks for the info, I may get AdapterLuid from the adapter description, > > > however > > > the required parameter in oneVPL is the index of the adapter, is there a > > > way > > > to > > > map AdapterLuid to adapter index ? (Sorry for this dumb question) > > > > > > There is `IDirect3DDeviceManager9 *devmgr` only in AVDXVA2DeviceContext > > > for > > > D3D9, it seems we have to add other members to get adapter description. > > > > > > As for vaapi, there is no API to get the used DRI device from VADisplay > > > handle, > > > we have to store this info in AVVAAPIDeviceContext, and I prefer using the > > > same > > > way for d3d9 & d3d11va too. > > > > > > > I'm not sure about VAAPI, but not storing a string just for this one > > purpose seems like a win to me. > > What values would > > mfxImplDescription.mfxDeviceDescription.device.DeviceID contain, and > > would that perhaps match something in the D3D11 or DXVA2 device > > description? > > > > You already have big alternate pathes inside those functions for > > windows or vaapi, so that doesn't seem like a big step to handle > > separately. > > Thanks, I will try other members in mfxImplDescription and update you whether > it > is doable. We updated the patch not to change AVD3D11VADeviceContext and AVDXVA2DeviceContext. Could you take a look when you have time ? https://ffmpeg.org/pipermail/ffmpeg-devel/2022-April/295760.html Thanks Haihao _______________________________________________ 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".