Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1721660lqs; Sun, 16 Jun 2024 01:30:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWircS9lKj+qGc4o14KQNF9Di1S6cTQAKOUq6X+LPQ6AdDmrwnvLbDsn820dGUHId8SPM+FdNWz5OLS84BJzcrOT1vxpIp+5ytlcl+EZA== X-Google-Smtp-Source: AGHT+IFICzFQXMDrq2+LjFfdW5m9dEibDuURFhpyp8dp6cjHaaRdS9MMLXpEBi4r9OvXC6hB2j7a X-Received: by 2002:a05:620a:4628:b0:795:532a:addd with SMTP id af79cd13be357-798d23c4411mr765099785a.3.1718526606189; Sun, 16 Jun 2024 01:30:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718526606; cv=pass; d=google.com; s=arc-20160816; b=wo+q0FDu9qMwjoZirRYhqzXD/u9Vw4/61R4cffprSoP2Gw71EsZpYViV0PkZpevzdP JwkT+/NMVs4Sa0xP8Wn8zjNCwk145lpj2AHEaSJSb3OU56uJRXDpL1PGvQk3t2rJheVC oH0XUKvdy2JC9UiLSswVVM/skzIxTuDUrtk9fqbRedTo/uZEUrE7vwVDNjOHph0fGtBd Fim4eQeZMd1S7vJGPsIjaNK7WY4x/xE8uBCdzzL3mX8UhCEkASJznBkh2suGZ+SxlcZ/ jRSFm1xFy2wE9yElSP5z05t0sy+ExTqK6v7TmBAQlopUmjk+S7XUv9KDQtIMYI5hQqDP LCWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=uWcPAj89icPemmCv/0wrLwKnYssXR5PJHE61cXfAVG0=; fh=6tE54z06ulRkgzfrooKGswCitNkbv5FNTOdWO2JiScs=; b=g0cdpMSFJDMGPL5kyfWuP3JoI+ZSaFsVtN3UdJyO6HTkPixz0aoSOmJbjv+19FQh0N iqX8qguDpB4rbHMCYxSFOOuDYmY7xCz+V5nFq/M7GCi56/f05OU9iIHxYC9pkuZbK4Qo n5Ce/wXNlwqNf8J58YeRyXtLbQkWRpGUk0eYp7bX15Kc/o44Q7ey8LUP0BbMLdpRJdIP v8w6CbUr6/gYtGBAzsfcCp1/VxwD9r8cINVEfwzoSciMe3pYdtOHzycTj27fVKxhd6tb 7P3G7DxPDw/KY+HOcDiA2TadEWqX39eaxHSEkOXoG+hUUNgF0w0Z07/BD6NSzvb2j1hF QAWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UXd+1hKZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2eaa985si80549921cf.259.2024.06.16.01.30.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 01:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UXd+1hKZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 060561C20AC6 for ; Sun, 16 Jun 2024 08:30:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5AA8187575; Sun, 16 Jun 2024 08:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UXd+1hKZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8844C18132A for ; Sun, 16 Jun 2024 08:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718526555; cv=none; b=t5CUjx6ohF2rlEv4GCr1RCJAa0X5SWrO7SDpotlKqDD+SNH+jA/la+c37TlqcQHW1KJ5FQXkpV3TlHWbq5GLyas/63GUKBTt3H+XobP+dTIzmPx/hj0AhrNFJihAw49jV8ZCuvtS+60ccxnlH0MgyThT9K1nM+Z1m/7LgBz0/6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718526555; c=relaxed/simple; bh=gLCaZE610rsmKqqdbcEc8ost1ZTS13TyJe0ZZJvoHZg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VEDDvNYzYw5o53CCOqBlR+ukMMUprbW1/pNWVmikVy+sfvPHhkKvlnvzyfmbeMPwudQoXI19fUpAroHR8vVpvDiebdFyQCAptxRyLSnVMo1m9qrd2Tu4f/ynzowDvvDsq6ntXerJ9o8DaLmKUE6JSBw++xcSWJQM7d887zVfHGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UXd+1hKZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 3F11AC4AF62; Sun, 16 Jun 2024 08:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718526555; bh=gLCaZE610rsmKqqdbcEc8ost1ZTS13TyJe0ZZJvoHZg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UXd+1hKZ0BVdFf3sECRMmtUHQEmL0xGKfimQV0TgklP42K38C7FMB5931tiMADQhB GYJRWfMfnArgUEnsIUkg83lwMHarrFZS3A67gmbayBtr+hC/kuj46Zadn21wTW9VbD NPGvfT9lugINow1k6UxOnkhjGwgwEM1SXtads9lPIbJOIKK0n83wVLRU7sdmvVHS0+ 6ABLECN9A2LW1aiYRe4+vOwvNW4Hr0LFYurQakJF1BwI61eEZ/Sor8IbPVhBNjd8xI O2eRBzpcRH7wyoutudXYxBNks+LtLyaP/7HqwspchyYlM0kc+Aqjv7gZKtmjmW3wTG BcB0rS5orWeTA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37205C2BA15; Sun, 16 Jun 2024 08:29:15 +0000 (UTC) From: Hsiao Chien Sung via B4 Relay Date: Sun, 16 Jun 2024 16:29:18 +0800 Subject: [PATCH 08/13] drm/mediatek: Support RGBA8888 and RGBX8888 in OVL on MT8195 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240616-mediatek-drm-next-v1-8-7e8f9cf785d8@mediatek.com> References: <20240616-mediatek-drm-next-v1-0-7e8f9cf785d8@mediatek.com> In-Reply-To: <20240616-mediatek-drm-next-v1-0-7e8f9cf785d8@mediatek.com> To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , CK Hu , Bibby Hsieh , Daniel Kurtz , YT Shen , Mao Huang , "Nancy.Lin" Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hsiao Chien Sung X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718526553; l=841; i=shawn.sung@mediatek.com; s=20240616; h=from:subject:message-id; bh=+M7/ziTHyUjzVsIkA+lS1U5EWG9ZgvZdQWr6HMIP4HE=; b=gJuRLhb/os/1rMsyV7dGCSEg52neTkCIAzjcbk5s6ct4W+UtNk8qcSQChx6TeNnogk/Xc8ssK 0hQB4Q/YYu+BxMuftvTNHO9nX2+7OdcuZo8IUfOhBYyYHekGiy7x61G X-Developer-Key: i=shawn.sung@mediatek.com; a=ed25519; pk=lq1w8BuWDINX+4JHjGHhhbAU5ICP+cL9VCj7wn+cEDA= X-Endpoint-Received: by B4 Relay for shawn.sung@mediatek.com/20240616 with auth_id=172 X-Original-From: Hsiao Chien Sung Reply-To: shawn.sung@mediatek.com From: Hsiao Chien Sung Support RGBA8888 and RGBX8888 formats in OVL on MT8195. Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno 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, -- Git-146)