From patchwork Mon Dec 20 10:15:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynne X-Patchwork-Id: 32747 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp4197655iog; Mon, 20 Dec 2021 02:15:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJziV5ZS/FUVm8YhL7WXtEMCTOx4Hn+rcj3J+/gfIXKRRlZ6InRYS0wJlKbgRwPChiYHfSXq X-Received: by 2002:a17:906:a10c:: with SMTP id t12mr12203080ejy.429.1639995318522; Mon, 20 Dec 2021 02:15:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639995318; cv=none; d=google.com; s=arc-20160816; b=SuBRtaEkPjlX7Zm3o3Ed/Xn97bOvm7bHgIdzRBkk/E0M5UNkBQVilP8Mth0L49LkQx q2DVRqHh7wkupA+fnexhflkxEasaXhupkrknf9WzLln6R2y0FT0gmrhyV6ZtJZzQ/pEc pj5Q7zm8fp/Ii4P3oiYmmBcGPL9qfIElwJpQKirZQZfdi8vL+5sBzDdueP+jHXZYxoLl 3LJEW2VNdKmiZk9Pc0DXZrHqp37S8yXHvf8h7RIwFVF8H4OZjJhpeLH2NdFLttCsKqzg dggKk/RnmK1AjtKHFB0jrVobMkVYgN0L2z8sr4QeMjE7/M/9en//QWqjdQxbD7tIiQRu 0Vaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:to:from:date:dkim-signature:delivered-to; bh=xf4EwvYNlRmf32Q9LuY6NAcmh6+t8i7krvqh8vNrGXY=; b=oAiyXAIgmmy7jOd04gO8TexSXYqzV1WgoLNnSQYE5yyN/pRnWa5Fru9QhcxBt2jRyW DKBeWWYPosFUB8rbJHmhihtsGEzicOERpxbm9JnhScVaLd6yjfevKT3ftX8sM3Fj3SK+ t917OrHB28tIjAvZFj8h00s6bTOYL9hxmEr/mf2gplmT+1y60zeZCYBOllYIbdncblkf L4DiZaUuvyisU9gqfhTDjqtprFG+t0DveV6noMsuPVRKBxvA6BwE05c/9PIaY0m2WQ99 W56Gnl74lP2lq/CLPKOPm/e8wpgN+0KM+zEV+bY/jATBbhYxb/y50f7dh3jmvOXItsm+ rkYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@lynne.ee header.s=s1 header.b=iMq+BhNS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dr4si12511673ejc.671.2021.12.20.02.15.18; Mon, 20 Dec 2021 02:15:18 -0800 (PST) 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=@lynne.ee header.s=s1 header.b=iMq+BhNS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2E7E968AE51; Mon, 20 Dec 2021 12:15:15 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D6B3E689F8F for ; Mon, 20 Dec 2021 12:15:08 +0200 (EET) Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id 852DA1060165 for ; Mon, 20 Dec 2021 10:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1639995308; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=pFQHlmXFsNmLbJ2qGW2Jbcwlthu4IIXSYeHjeWP6oD0=; b=iMq+BhNSVdqfbEn8Hh2S8Vl00QCgnP68qnCn21XXTaU9g9e0kmK8MMbjU9h6YWO2 oS8mhPlC7lwTdwGxMoJBkJ+bhqw4plV8H9h2vEUyBOKOUzGm8pQZaAq+SDdf/M4zlar 8EJ2GwFPbFgZLWUEqN5ZCJpBey5jtoK7bdZemNZNM2eWxDMEGtx5R6WmbMxLG0Rpyor e4jAQddiQGz/k339UAvIMiiaYTmBmKoYhoAgMdER0eXttlR9CS367pdCFpgYCHUuOmg qYQzzbD/bamEhnvLMB6fjhj1xHKpS9LESAi+0xWZSvIzxeZegiIhNpIdqvk2O2XoAsR MHjgfInlIA== Date: Mon, 20 Dec 2021 11:15:08 +0100 (CET) From: Lynne To: Ffmpeg Devel Message-ID: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: autodetect vulkan 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: DyirudXF3mKO Recently, Metal support was merged, which is autodetected by default. Metal doesn't even have a hwcontext and it's not a hwaccel, nor would it likely ever be one as Apple won't drop videotoolbox. To keep it fair, autodetect Vulkan, which is a hwcontext, and for which there is an unmerged hwaccel patch. Patch attached. Subject: [PATCH] configure: autodetect vulkan --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d8b07c8e00..5b6e578253 100755 --- a/configure +++ b/configure @@ -324,7 +324,7 @@ External library support: --disable-securetransport disable Secure Transport, needed for TLS support on OSX if openssl and gnutls are not used [autodetect] --enable-vapoursynth enable VapourSynth demuxer [no] - --enable-vulkan enable Vulkan code [no] + --disable-vulkan enable Vulkan code [autodetect] --disable-xlib disable xlib [autodetect] --disable-zlib disable zlib [autodetect] @@ -1896,6 +1896,7 @@ HWACCEL_AUTODETECT_LIBRARY_LIST=" vaapi vdpau videotoolbox + vulkan v4l2_m2m xvmc " @@ -1918,7 +1919,6 @@ HWACCEL_LIBRARY_LIST=" mmal omx opencl - vulkan " DOCUMENT_LIST="