From patchwork Sat Feb 4 23:17:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ridley Combs X-Patchwork-Id: 40284 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:5494:b0:bf:7b3a:fd32 with SMTP id i20csp2234486pzk; Sat, 4 Feb 2023 15:17:36 -0800 (PST) X-Google-Smtp-Source: AK7set9Y52okKaoNYXzKqvNY3vIGMJpxwYPt8NBMJksBOiwV2dUDPyPH6vFAoSDYyrOM+zPUYrkc X-Received: by 2002:a17:907:7211:b0:88d:ba89:184f with SMTP id dr17-20020a170907721100b0088dba89184fmr12294186ejc.32.1675552656385; Sat, 04 Feb 2023 15:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675552656; cv=none; d=google.com; s=arc-20160816; b=EWFedGbCF/91DaHQM+QZADSlcRATDIU0NOsgZYbV1+l2NryXtsm5Xdww9Ct65X6zIv tGphJxQCae0Mm70ygzDimX6V5znXGAZeyPvrBnfU1yJ7UVq0nWgKh733MYhe+gE018yD 5Y4eMvaq3Rp/+nMdDFjkt1RRDWFQx/kjRGjBR3g8w4XzJIK+rmG38YL9vDnzy0NSl20O dqs4QS6kiaw/prYPgZJ9rLfMx37lVVwn8qCi6+jpzXssWGiDrnwNEG3WVdMr8XZNDsaQ tTbJwkUOcuzPpotYgAswKbUS1Uk5Vtz1+B5kFt3bNHkgaPCX6qX1ZmnvBEoLb+3Y0Ept nD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=woT+gp2akynoi6SeL80fhgXGGJ435Dv8ejqsNkIiBQY=; b=Rsvp1mUxalwtueuxcT0Hu9Q+VJsniBgFRA10cXxtQobj9NkN7v0hoIGDzpOC3UB2nH yxuIxm4C+K8CbHu4VLJwGctEea03g5oPDPQZMqqcs5T13o0wn6VBJeXV8fjyV0jJKHV9 uYoYPJSx9dcahPQWaRC5Qnyiz95aerw6ORYlGkfTUXN2cxwIxwUmO5c/dQ0WOYCyyHn5 nfl/AIRZMco7eMGlt51biNoKz66nO83nHm9YMrXwLdgsEWeRirxK5I5vwlMSjAg4HwMz x1dqspchIeLENhf4Vbo11BdvQPprRSq1HkTsmAfvs15/DqNRMg5h+WHYLbdrmjB/trVo W5/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rcombs.me header.s=google header.b=OGZ5IkKF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rcombs.me Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z26-20020a170906271a00b00870c8690d6csi7466717ejc.207.2023.02.04.15.17.36; Sat, 04 Feb 2023 15:17:36 -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=@rcombs.me header.s=google header.b=OGZ5IkKF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rcombs.me Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4201968BE71; Sun, 5 Feb 2023 01:17:23 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ECC4268BA04 for ; Sun, 5 Feb 2023 01:17:15 +0200 (EET) Received: by mail-il1-f179.google.com with SMTP id u7so3485080ilg.4 for ; Sat, 04 Feb 2023 15:17:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rcombs.me; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bjJo4fqX3flvGqebqyd3rHeOzEP1vcuLtCcfDYrb0iE=; b=OGZ5IkKFsxyIjYhFDzNtsowXVjgD9NfeAiOxm9xZq3NBUcSVQ/U2L/GNXRqX/JnoJe n02Ut+lxzK0y/shFKpO3te/J6XaAKr/Ung9lkiZ+B7PTSxucGX3mK6+XGgBLMttAiuac +mDytdwfmaUMyjl/0+EQXgZAkGRjaxpQCVHIFI2jF5ij7GmKYUQh2bAZI6FnwJ3RLXyh QJOrHS2QngLdqk8zfk7Jndz5jYu+ukuYPpYDz8TEPN0YBUnIBFoTz/SOPgX7/aFJ6qeS S03FiqfNTiGSuKm85Jnb3FRfieGEr6pKRZgM6uqx3uyLbXNfAHae7Sh5sCAtzLci4KQ+ cIvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bjJo4fqX3flvGqebqyd3rHeOzEP1vcuLtCcfDYrb0iE=; b=3YYQTl/6X5K1ujp5NrueQ9l+0t2N72cWd3g9Co8NtD8vFgfj6mH0yCMUrw6vS1RvOx 6RhCmBceJFOt6ySjH/SpyfFB3M5Xn4WfenhtrpyMfgVUUD+ID+lfxqkEnmJHIW/nfuSD /Rc28jfqHNaGRRmPMoHL6lAjh/Ul6+B4JE3skcLwGL7kqzqFf06lpTd3/hO49kd8kZtU ymI+nit91neQr76ijQzV8loJMqmEUSw3EhPYQODffbTLvTWNQWmAPvoBJAQLAKferBv5 sD3vC1O/u7JrzJvxtFUyAiKqH6dJ9fWIVSSeCDlqusXHkXKpzMyzIJpT19TXZHOQSqgY hDWw== X-Gm-Message-State: AO0yUKWvusXStiAca1BNd6SbdS7Vx4WxO2GcvXSeBdAHYWAjadbPAa8H XAutP/XMf0ZImI4YJYjuluHhxqWI5omcTZgCYA== X-Received: by 2002:a05:6e02:1bee:b0:310:adfe:bfa9 with SMTP id y14-20020a056e021bee00b00310adfebfa9mr14313410ilv.11.1675552634508; Sat, 04 Feb 2023 15:17:14 -0800 (PST) Received: from rcombs-mbp.localdomain ([2601:243:2000:5ac:ac6c:b24e:29cb:25de]) by smtp.gmail.com with ESMTPSA id bo14-20020a056638438e00b0039e8c12414asm2115705jab.164.2023.02.04.15.17.13 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 04 Feb 2023 15:17:14 -0800 (PST) From: rcombs To: ffmpeg-devel@ffmpeg.org Date: Sat, 4 Feb 2023 17:17:02 -0600 Message-Id: <20230204231703.9050-2-rcombs@rcombs.me> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230204231703.9050-1-rcombs@rcombs.me> References: <20230204231703.9050-1-rcombs@rcombs.me> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] configure: check for vulkan beta extension support 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: 7YSMo65E6Bu8 Some systems (e.g. android) provide vulkan.h, but not vulkan_beta.h. In that case, compiling vulkan.h with VK_ENABLE_BETA_EXTENSIONS enabled will result in a preprocessor error. We can check for this up-front. --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index d67855c729..8c7311ce74 100755 --- a/configure +++ b/configure @@ -2408,6 +2408,7 @@ HAVE_LIST=" perl pod2man texi2html + vulkan_beta xmllint zlib_gzip " @@ -7008,6 +7009,8 @@ enabled crystalhd && check_lib crystalhd "stdint.h libcrystalhd/libcrystalhd_if. if enabled vulkan; then check_pkg_config_header_only vulkan "vulkan >= 1.2.189" "vulkan/vulkan.h" "defined VK_VERSION_1_2" || check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_3) || (defined(VK_VERSION_1_2) && VK_HEADER_VERSION >= 189)" + test_cflags_cc "-DVK_ENABLE_BETA_EXTENSIONS" "vulkan/vulkan.h" "1" && + enable vulkan_beta fi if enabled x86; then