From patchwork Sat Dec 16 10:31:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5b6Q56aP6ZqG?= <839789740@qq.com> X-Patchwork-Id: 45176 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp6224651pzf; Sat, 16 Dec 2023 02:31:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhN5DAG7NFKZXbCD9H2aL0adgyx+xc3ZX4XA1/VGExo3APOq0lv2Z+F3TfeYaPMz1EycOH X-Received: by 2002:aa7:d5d3:0:b0:551:dbe0:8342 with SMTP id d19-20020aa7d5d3000000b00551dbe08342mr7572649eds.3.1702722695133; Sat, 16 Dec 2023 02:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702722695; cv=none; d=google.com; s=arc-20160816; b=E/jTPTap4iDrP7kMf13fGTnDg0Xgd2rT+BLddWcxzqGDlXlf1g5TdI3SKVMRN+mSWx mSBVKFbEAPOO+ovXwaNmcgfT+368Q8jeCBrdYZi4M6JBGLly3ivLV9m2QqEJNDavhDsH RhzYhbojYQ0/tm6FL1uw91D42+0Hic16VQoSXK2mKUMLleKhHrJhbzOe6N9bYLGQH6mn aaILIt6rCgqyffE5Hlu9BDOG3F6Qb8GQL7xX3GGAmlrnXvYNVJJPmD8WvhdqXJtCXHHJ W1mxR5FU3Ri7dV2/JBi4xdURNnf6zdh6TPAlP0Xx7qQVwLXiP9l6q4NHQW3KIPsRmT/x 6JhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:date:to:message-id :delivered-to; bh=kIcHHFcda2158/IQEhKW7nqDHLNsTDvLdVgrVyrUplY=; fh=/QvfVIDcib8YPugs5q/sxqF0zCx8M9migilS77PcQx8=; b=FWtQbvfy9X6QaxfhefWtPQLa+CsX63mkY1DCMXNZRx29cc3d0YxYsCJ/ua0JbZ7Lrt soqSL25NxuGtEwlkkUew75KY64eZwYfPwRTVGpTaNZGVckbbW7w2fMoQhkVvXb7/fNPz Ryyji5klVWt3AvV5ZmhksLPb8b24YfBlra0txqpPJYQx9hq3p0oBoKBHSZxpRjXL7vRg 2lDA2s8InyoFA3x4TlCQU5o56JSC1xZjufi4VwNf9hpBHfwiOGfg2zu+g9WqmrFxOUC0 WGaBsHVCtCUYTIaeGUUNEzjWS7jhfpDlFtMuaMO+dphFw6+9r+wFL4Vmxz4445703SL7 DA1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id x8-20020a05640226c800b0054f564b2fc6si7772306edd.19.2023.12.16.02.31.34; Sat, 16 Dec 2023 02:31:35 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7BFA668D0A6; Sat, 16 Dec 2023 12:31:31 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out162-62-57-252.mail.qq.com (out162-62-57-252.mail.qq.com [162.62.57.252]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B136368CFF8 for ; Sat, 16 Dec 2023 12:31:23 +0200 (EET) Received: from localhost.localdomain ([14.145.40.73]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 7CC81C07; Sat, 16 Dec 2023 18:31:12 +0800 X-QQ-mid: xmsmtpt1702722672tg94blye3 Message-ID: X-QQ-XMAILINFO: MmCmH9jyqHC2c0dTHPSilj8aHiNij4QOEo8ShvYxWwJW7u+ZI4CahdXUx2dBZZ zjH799/JAsRga9EipjrSnWrrAdznzqbULkrdHQH2cMizRfjwKOXYLgTKRxc5tOB9VsFa2yzRXllT HcRE5IwokIf9vY+HNK82Rvqn7byY1JqSLdzrqopMoLUnIcp6N6UsZ6O6AL/tFpAdQUbGMyyayvUc up70mICbGxz/1aTYuoX5B7+D5jkzn/FKkp8d8ecbqb9XHV5YM0xTh1IHjTITDtSqQnrMqxtRVKK+ d3nDB/MKtaoTMkKoP6ars/dIIt0I1A/s4CTe2Pn3Ew7KZV8H6UWza9NVJ/YyVYEf3U0msJG+kKRZ wp+FodekS1JP/ik48peMrdt8Dx1tJr6YhGeRN5k9NV2pc8SITsxttTOmmFaxFde3ZAsx7dbEDkwF 82JPEaq5C7JOt5FWpOGDclvvYfyFvksahOndn+0HCxMw4VpyhkfBAlFDYU6+qzXTXI8BljsUFJ5L f+BMSlYehL4o9rSLF3zRhXAryb3hwx7IctxfI8tjpfXNrANSIStQrdGu4PvNCHUfQcfOEbNYNYMZ QMuC+lxfCmuj9jMuipEbBVlMs8Dfp5gElDSjNikuBLCq3AXrPWxY53AiyDnljShJFnaDSALoGIFs M+9yZ9GkxpXxsO7g+NW0CK21zQ+EF58iql8t1gOPpkSu3iW26+D63YhrlGBnNT0ufAyUfpK7HVUx oibsQozgK1Lfs39sORK00tvJ0z3D+zD0C9VPGJguCVkFydzwYLnE3GefphZaIfiiIpmHA15wPRUw ZxXhvqkDxcfio/U2LWyUigD8Mwr+Ypb9SfwSf50WXeFwjIc0dS0E0SqQjlGWpWQ3kXLV8hkOBn+U dqlvzvmU4sjBLYgMOwLtJVCg37GVz1Mo5udLlM8lrI7ZuwPqq48GdEkXJfrOkS9BgrYGnA1eyrzD Nxt7AhIAD3EdWoG66JEsRIHIK9hbcoNCsz8l+dcehNzkVLA3LLAJncJUs7B+cgeGUTxj/ECtg= X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= To: ffmpeg-devel@ffmpeg.org Date: Sat, 16 Dec 2023 18:31:08 +0800 X-OQ-MSGID: <20231216103108.30465-1-839789740@qq.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/metal: fix compile below iOS 13 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: , X-Patchwork-Original-From: xufuji456 via ffmpeg-devel From: =?utf-8?b?5b6Q56aP6ZqG?= <839789740@qq.com> Reply-To: FFmpeg development discussions and patches Cc: xufuji456 <839789740@qq.com> Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ZHJhoOd2j9iK Here is the msg: "libavfilter/metal/utils.m:35: error: 'MTLGPUFamilyCommon3' is only available on iOS 13.0" More Info: https://developer.apple.com/documentation/metal/mtlgpufamily/mtlgpufamilycommon3 Signed-off-by: xufuji456 <839789740@qq.com> --- libavfilter/metal/utils.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/metal/utils.m b/libavfilter/metal/utils.m index f365d3ceea..bb1825ae35 100644 --- a/libavfilter/metal/utils.m +++ b/libavfilter/metal/utils.m @@ -31,7 +31,7 @@ void ff_metal_compute_encoder_dispatch(id device, BOOL fallback = YES; // MAC_OS_X_VERSION_10_15 is only defined on SDKs new enough to include its functionality (including iOS, tvOS, etc) #ifdef MAC_OS_X_VERSION_10_15 - if (@available(macOS 10.15, iOS 11, tvOS 14.5, *)) { + if (@available(macOS 10.15, iOS 13, tvOS 14.5, *)) { if ([device supportsFamily:MTLGPUFamilyCommon3]) { MTLSize threadsPerGrid = MTLSizeMake(width, height, 1); [encoder dispatchThreads:threadsPerGrid threadsPerThreadgroup:threadsPerThreadgroup];