Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1042484lqm; Thu, 2 May 2024 03:40:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4+LJLrp/dVwCw7fwM2F6nbH4U6iKrtfpwC20U3dRADl0z/dz7UHAiULBGi9F/3MkWbzCI0Uy9VED8PFy4Ly1rEQwF0Zm2E1rTqdk4Mg== X-Google-Smtp-Source: AGHT+IFcADBUr9TaHQCY/rFWGkHapbGStCtPd2Nk5gJ096/LELDAUbYOsHO2X64nP5w4+Aa0vgBL X-Received: by 2002:a17:902:c102:b0:1ea:f9b1:8b13 with SMTP id 2-20020a170902c10200b001eaf9b18b13mr5079558pli.31.1714646436957; Thu, 02 May 2024 03:40:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714646436; cv=pass; d=google.com; s=arc-20160816; b=UmKYTd3YRugqK67DtqrbrMcfeTWmmggVio950cKT46BXSd1ZtlibOysgqtyzu73VOm SEDpkZdiegfvPzjn4EpN2DDZxBLjDjhsCA5AMG80Z3GYte4dUe8jGzL65SbtVqIi5sZD g9w2RTV2k5apGAc2G0eUY2xMHXdNxzbe1OYg6akyjy+ZSYmoLlcsXiE8zhUySlxdvOEt vqnnKflkgjgE6sZz+oeV5HaTntUHwKQGIVROPTK0e0Ap6Q1Obe1JYq59UwEgPSKjtO84 Y4ayRSq7zFxI8aeKfaPe470IkI9u58vtwfCkmH2dUGe3L4OyJHN/Uq86Zj/YAkNryjWL KPTQ== 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=2RAOBHyBkZG22/O3aMaMcUvOksQcuOKx8/rx+Fjj7DI=; fh=WDbJBf7vmcLtsuNVv5t5UxvBRtuOFYPCW/4VP7Yx+3k=; b=lLBwV4wBIzwUAEZl61xNXZKF+jgEupOyANBT60a04N301azlOyJsxer/SZxV+5ecz6 c+jOOMgpUggGGf0EyU0qnssNsCltN+c4mqTkQfU1rEEsG9cnQT37jlOqkwS1UZQBo4mC DlEHnxiDptztQOWvY+JuR4K9aw+0ETUcHPqqA5qJ43cBujrcwpYF5GOw5bIAUU0vGx3N qN7e7QaH0BA15dFIO4f7i+sgiUxFlEC/IgMJ3V+Vahxa32frI1SNyCRn7+sNeC62tIls 758jViaNyEzD29ZlCPMUZKkaay52QoHeZGRzTy0N4sa1FkIpDC/wkf8gKD2PdvceUrAF 8AgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=g9Xsq6m1; 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-166320-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166320-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 m16-20020a170902f65000b001ec4e457c42si778679plg.277.2024.05.02.03.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166320-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=g9Xsq6m1; 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-166320-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166320-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 D811128607F for ; Thu, 2 May 2024 10:40:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 740CA7E0FB; Thu, 2 May 2024 10:39:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="g9Xsq6m1" 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 46D805EE97 for ; Thu, 2 May 2024 10:39:03 +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=1714646346; cv=none; b=lqYOpOIhYeLD6+ei3S97iul8hv3gPotpdWaGPzYscbjmlgs0wHzr9lzhCo93CXO9QS2NkhmfXdQ0i9u/jui+8pR0T5a7dnQ+htxk1Hz0uRPA2XsOJ6aGMpjHuUYWqEMnA2neC6lASeL0UbPASCvd90ic613yAzdbQJX/UbwqO9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714646346; c=relaxed/simple; bh=6Agzzz5ocUtTfWr625PvHn73Ey+Y3a2imRBNvTR2dwk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gxld+JL9txlwilFeNXYQefzb9Y0BtAcyDwLJ59VxzVTroQJMW36wHyDkIHYp+ZOXstdAYxK7fY3MSDQe5IQfldzsDIEfFZXLot/RK81MP7HlwVTVMtrYvVzz8nA7RFRXooTGq5k2cr8NFsXklPBGwp+c5teVQZDZCTl+ZC6fhZI= 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=g9Xsq6m1; 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: 2e772d8c087011ef8065b7b53f7091ad-20240502 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=2RAOBHyBkZG22/O3aMaMcUvOksQcuOKx8/rx+Fjj7DI=; b=g9Xsq6m117lR87utnLR1uNs1AWoMViRjDExHca4E0EcpTx0mFC1v0htbJbeNjTxDMB6//3lnBVC7eDrTcm7x6sZgb0iqLLudaacXWS4WTU6HBh7vXDXcUJZZAvyunplyX8dHk4LzJpcbkLLyqaPo50Fw0g3TqDscDwE+2HVe8NE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:1d2e7de6-2619-4557-b657-482c3e0a7d5a,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:82c5f88,CLOUDID:cbaede86-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 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 2e772d8c087011ef8065b7b53f7091ad-20240502 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1209949379; Thu, 02 May 2024 18:38:58 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) 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, 2 May 2024 18:38:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 2 May 2024 18:38:56 +0800 From: Shawn Sung To: Chun-Kuang Hu , AngeloGioacchino Del Regno CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Bibby Hsieh , CK Hu , "Nancy . Lin" , Fei Shao , Sean Paul , Jason Chen , , , , , Hsiao Chien Sung Subject: [PATCH v7 08/18] drm/mediatek: Support RGBA8888 and RGBX8888 in OVL Date: Thu, 2 May 2024 18:38:38 +0800 Message-ID: <20240502103848.5845-9-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240502103848.5845-1-shawn.sung@mediatek.com> References: <20240502103848.5845-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. 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 d970cdce06bc7..738244a6164e8 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