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 0EFB649F07 for ; Thu, 14 Mar 2024 21:26:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9814668D146; Thu, 14 Mar 2024 23:26:50 +0200 (EET) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F1BFF68C4F1 for ; Thu, 14 Mar 2024 23:26:43 +0200 (EET) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 65E36281910BC; Thu, 14 Mar 2024 22:26:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1710451601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ntQkZHzQzuYl9BjxfaguU6uIhcsCMLpcfeRE7U8JdQw=; b=BJkohHrFazyjfZFBRpnEcxBaYYW3+lN0Z9qaRC6eWy0SfSb7iS/GT27HHwh9cKzX5W2OBF KjYL3sQ6OHM5vpYHL8KVgLjTdLLcotw0SkcE0ObyO1d6AP5llZS8u/GttmRgLsoUcaFoyK 63K9+PqxEgf1dDsuxTfTkPV3jeAbDPpseca8FQWKkdydFTKkFY99zenhvq9QyHySwBWvLl f4OkJ9jCfeR4FpZfTwEQPKIkT6dcKZelFFwtCGzvwcxRX7wp+U1QYJbZxf8+pjY7eruwSP zGavkaUUEpVedPQy3/KZDL4vd+MDWwpcPFta2Ywr7ziWjUkWBhmy0PuAc8OjXw== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Mar 2024 22:26:31 +0100 Message-Id: <20240314212633.2736-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_d3d11va: remove check for d3d11 debug layer dll 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: Timo Rothenpieler 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: At least on latest Win 11 and Visual Studio 2022, that DLL does not exist anymore and can't be installed via any of the usual means. However, debugging works just fine regardless, so this check makes debugging impossible. D3D11CreateDevice will fail anyway if debugging is not supported, so let's rely on that instead. --- libavutil/hwcontext_d3d11va.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c index 24b3546e7b..a45e53595d 100644 --- a/libavutil/hwcontext_d3d11va.c +++ b/libavutil/hwcontext_d3d11va.c @@ -612,14 +612,10 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device, int ret; int adapter = -1; - // (On UWP we can't check this.) -#if !HAVE_UWP - if (!LoadLibrary("d3d11_1sdklayers.dll")) - is_debug = 0; -#endif - - if (is_debug) + if (is_debug) { creationFlags |= D3D11_CREATE_DEVICE_DEBUG; + av_log(ctx, AV_LOG_INFO, "Enabling d3d11 debugging.\n"); + } if ((ret = ff_thread_once(&functions_loaded, load_functions)) != 0) return AVERROR_UNKNOWN; -- 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".