From patchwork Tue Dec 7 09:05:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenbin Chen X-Patchwork-Id: 32097 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp5976446iog; Tue, 7 Dec 2021 01:10:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDFwB0tt4TKJO0l9HGG+ojFq/7xCbUV+dJqN0wD1mMaoGRwTkXcczMeIVRfR4ImlOww+Pt X-Received: by 2002:a17:906:a215:: with SMTP id r21mr50700651ejy.21.1638868222166; Tue, 07 Dec 2021 01:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638868222; cv=none; d=google.com; s=arc-20160816; b=RAy8BV0HP8BzjNf3SWSi7TQnqlONzk4PrFgHdXD0G58VtMHY10kPdMBFMw2q1WzcAv V7ynbGKkmwUEc0Alyk5NaWb5iPtjs0JsDENM0CuEYdnJ0MAdoRz4dj+vmohszngaBKdc W9wsagDMkekieMkhdgT6RyztbJShU4kDVN2EUk1gLuEa1kdXqCAHY1h3dOrBvNhzSmi2 Qqp8mO4zlbllscqUu8AoFflwdmJgerBQMZZEMI0BAZbZXc0Oh3ymqkQRiL0MTsgF4Occ /s2bYQQvItA57KNDuZRfAMN4QS5AKM8MB87bIAlrXtPQBv7E1kZYDvrQqDcyw8tiNY7L 498A== 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:delivered-to; bh=JrvPegIXt3WVsBm98MngVNyOCmhchkjbCrtfuvo3WjU=; b=YtlbxBmj/7QvAF2hz3sY6+4hC75i1chuj1ENDkGXeJTL+l9/cs01RCPHpfkSOt4TXq mWLja+vp3o8TsdxrjUqxUR0Wo730ooA5bbPaiWLJ0oMOW3nYBEUmE/PehrxBNqUCbrjB IewDIPPxTpRn/A7tS5lJmIMaBwYo5BQX+OJvqW0jsRiF9sbicGTU8JQc/ukFOS3tg49Z nkJxKVmus2qi6CWGDvUIoq0JVgV51bPKh2KpKZ5XKCYQ0g75vY5G1WQBG8DUJYCRBxHz KovymJArMPuC4iV18nDuohBeRB7+gngvMwA092LGcSnKXqqzLWBKpLsxrEOmvDFUj0Z3 Rf/g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id cw13si20411670ejb.228.2021.12.07.01.10.21; Tue, 07 Dec 2021 01:10:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6B9E568ADDE; Tue, 7 Dec 2021 11:10:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6001A68A980 for ; Tue, 7 Dec 2021 11:10:03 +0200 (EET) X-IronPort-AV: E=McAfee;i="6200,9189,10190"; a="224794093" X-IronPort-AV: E=Sophos;i="5.87,293,1631602800"; d="scan'208";a="224794093" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2021 01:09:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,293,1631602800"; d="scan'208";a="515198460" Received: from chenwenbin-z390-aorus-ultra.sh.intel.com ([10.239.35.110]) by orsmga008.jf.intel.com with ESMTP; 07 Dec 2021 01:09:59 -0800 From: Wenbin Chen To: ffmpeg-devel@ffmpeg.org Date: Tue, 7 Dec 2021 17:05:50 +0800 Message-Id: <20211207090553.2138848-2-wenbin.chen@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211207090553.2138848-1-wenbin.chen@intel.com> References: <20211207090553.2138848-1-wenbin.chen@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH V6 2/5] libavutil/hwcontext_vaapi: Add a new nv12 format map to support vulkan frame 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: Cp8VULctt6DI Vulkan will map nv12 to R8 and GR88, so add this map to vaapi to support vulkan frame. Signed-off-by: Wenbin Chen --- libavutil/hwcontext_vaapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 75acc851d6..994b744e4d 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -992,6 +992,7 @@ static const struct { } vaapi_drm_format_map[] = { #ifdef DRM_FORMAT_R8 DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88), + DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_GR88), #endif DRM_MAP(NV12, 1, DRM_FORMAT_NV12), #if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16)