Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp250223lqt; Thu, 6 Jun 2024 02:27:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB+n4j/h9qtQJTpVDL/T1nsW1S9KQsvMkW1++QHnevmgneXRzslp8kawzj5zlLWq8Lh+EkabxWyKrXfZB0yzpdSo9A0OciQkzDOIeiCw== X-Google-Smtp-Source: AGHT+IH2qLGKgq5hxe+8uuJSMy0ZK4ccgU9z948El2vzt1TX4PLARIaeiV4WdTwZ5ArR74u67cAZ X-Received: by 2002:a05:6a20:728f:b0:1af:cb73:c8f5 with SMTP id adf61e73a8af0-1b2b73f8c7amr5599694637.14.1717666039590; Thu, 06 Jun 2024 02:27:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717666039; cv=pass; d=google.com; s=arc-20160816; b=SiPs+fpas6ksSLDY/Oapfs+Ut6X6IjYBP/ZkLPCT7Qcgm6JuAiRDIYkuzVZdZ6xUDb 0SRDBVxwAXGkn3VnDpGo7RFt3y9p5sqLk1jN0C2/RvSyozchPuvJBNY2/NMziujUQ5q4 uEzzbCT/wc/EcOOwyrbJBKqHe14mGVLuJ58BjiQpFBcqZ9mwRU4HwudIEa+CDjPvm8Xg dv/fmM4U11DMfrpqn3J1oXjqkmgXySK1YqRTuj7EoJVwPGCqFHjE6eD4uyFydha6v/xg hx0egYYGt/NUKDyHyLXZVMHNZ1jRUGy8Dl3hB+B/SH10nv+dcJFpiBpjVdxSHBFgFLtY B3ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fIe9EvE99mU8uUXdlgYy+QZYFpJ1wWuCCRc2uyPwEJo=; fh=q/Ppq8/frEfcA3kotGB0IrpJr8gO0uNs3CtN4uoBAAY=; b=spxsVRjKjf2nSREksvRvaQsaWMwWx4HTNjy/AZtnURxX+74R9xWjEHPU9HwUSsBPjT FdedOha0qhvVilj2sR4dFbErkeIwFcCCv4mQK8Y0tTFSbFkFtnipliGenh/iIzHxQFk0 bF/iCb0J2Ud7Y+6bYhoBYyHqXpTY7YUlXqFbgrKWoJaCPzylCyjgjgLfkgFDfQCsK3wG 8jut/cDbEGpUCWYKJf9VZahEYT2cwSNxf1RjMCGXbMmILMGqBBwxHr8LYeSdUVmyBnia xOPG1UOTO30W1y6bx2AiJP/c1bVu2Rt3jz2+fEy8QQ4wLLv4qMDU7ZcD9+RH0IBVectY EZhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DjrzWxHU; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-203991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd761788si8684455ad.2.2024.06.06.02.27.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:27:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DjrzWxHU; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-203991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 74EDA284CCB for ; Thu, 6 Jun 2024 09:27:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83CFD1514EC; Thu, 6 Jun 2024 09:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="DjrzWxHU" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C09C13E054 for ; Thu, 6 Jun 2024 09:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666006; cv=none; b=N/o5oV2H/xKwKvAg4KO+Zl9bDggSOr8hvRSlgVWtQkLEc2bG5dfCcNhsha5Kse5Rf5CpV2AhRxLQjw2OU0Pslr5tNMBFaCRjpSUuPuZiuoWQWyjGXwF6J1NUnD3AnILJaT0mECvXBqahVIngL5prkmVfLddIPaSYvxUHtHa2h+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666006; c=relaxed/simple; bh=9nPnJNtUAM1YBGOGAPDnrq4FpluaS2+EzMEKJ1XDBz8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r1gNk7aldcVw1jrjxKny/PxaHOcTKCSfLYcIrEfLkZHt+rBaus6igfPqVwT1pka/O+Cg8/7f+vWQdmII6rV76+vlxGz60XQ+HtZy3ViarFXcyGSq/mNWveiUyTJ1BokGqqdGjropwkZOuF0lyqIgOLbirWONsfHmxm5ijZAo9AM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=DjrzWxHU; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: e08067aa23e611efa22eafcdcd04c131-20240606 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=fIe9EvE99mU8uUXdlgYy+QZYFpJ1wWuCCRc2uyPwEJo=; b=DjrzWxHUciZaD9PDL434RRcF3K6K4bY7P2au/CVx9WGBvpqcP4qmBPqjJfYk9QLjtMsFRDhWcKvkTBR+UuToB6yKOK87iSaULr1LMAHlO9drRoHpvSEODwDImnnu7Z34aaUtN1QUMom/XWn6ygU/Pewj7Zaq3X+QYyAgfv5nQ5g=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.39,REQID:679aec82-f7c3-486e-855f-947bd5bef9ec,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:393d96e,CLOUDID:40d24988-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: e08067aa23e611efa22eafcdcd04c131-20240606 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1599172251; Thu, 06 Jun 2024 17:26:38 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 6 Jun 2024 17:26:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 6 Jun 2024 17:26:37 +0800 From: Shawn Sung To: Chun-Kuang Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , Bibby Hsieh , CK Hu , "Nancy . Lin" , Sean Paul , Jason Chen , Fei Shao , , , , , Hsiao Chien Sung Subject: [PATCH v8 08/16] drm/mediatek: Support RGBA8888 and RGBX8888 in OVL on MT8195 Date: Thu, 6 Jun 2024 17:26:27 +0800 Message-ID: <20240606092635.27981-9-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240606092635.27981-1-shawn.sung@mediatek.com> References: <20240606092635.27981-1-shawn.sung@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: Hsiao Chien Sung Support RGBA8888 and RGBX8888 formats in OVL on MT8195. Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c index d970cdce06bc..738244a6164e 100644 --- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c +++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c @@ -114,6 +114,8 @@ static const u32 mt8195_formats[] = { DRM_FORMAT_XBGR8888, DRM_FORMAT_XBGR2101010, DRM_FORMAT_ABGR2101010, + DRM_FORMAT_RGBX8888, + DRM_FORMAT_RGBA8888, DRM_FORMAT_RGBX1010102, DRM_FORMAT_RGBA1010102, DRM_FORMAT_RGB888, -- 2.18.0