Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932583AbeALBUH (ORCPT + 1 other); Thu, 11 Jan 2018 20:20:07 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:45984 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932375AbeALBUD (ORCPT ); Thu, 11 Jan 2018 20:20:03 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180112012001epoutp02d509bc04b984a08d1c650755f9546f06~I6093zsHR1188211882epoutp02E X-AuditID: b6c32a39-e0fff700000010dd-b5-5a580d405e06 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="utf-8" Message-id: <5A580D40.9070504@samsung.com> Date: Fri, 12 Jan 2018 10:20:00 +0900 From: Inki Dae User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Maxime Ripard , Chen-Yu Tsai , Daniel Vetter , Jani Nikula , Sean Paul Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , thomas@vitsch.nl, Joonyoung Shim , Kyungmin Park , Seung-Woo Kim Subject: Re: [PATCH 03/19] drm/exynos: Use the alpha format helper In-reply-to: <345b8966460f13af7e29d2700876572d34f06cf4.1515494838.git-series.maxime.ripard@free-electrons.com> X-Brightmail-Tracker: H4sIAAAAAAAAA01Sf2wLYRj23V2v11FODV8mZrnEH8a6Xddys3WYkRMLlSVIZ6nL9mVb9Fd6 3YIIMzIyMjaJUTJsY9aFNWV+jAUdRrKi5kdIzJhfQ5DMsEjG3Y7w3/M+7/N83/s+eSlcd5yM oYqcXuRxCnaGjCLOdcxITJivXW1N6mhK5hq7TuPcg8HPJNfY3QK4dz0RgguXfVRzwb5HKq67 7TDJtQbbce5ZIAy4A/v6Se51bxnGNVQfx7ih0F1svpY/VBoh+MDLZhX/KhgBfP3lfoyvvb2C f76rE+P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OZd n84WwBXFZZOSmpNZllqkb5fAlfHzTRdjwUS+itlHpjM3MN7i7mLk5JAQMJFYefUiYxcjF4eQ wDpGiW+T3rKDJHgFBCV+TL7H0sXIwcEsIC9x5FI2hKkuMWVKLkT5A0aJhjnLmCDKtSQe7P3G CmKzCKhKvDy0lQXEZgOyJ664zwbSKyoQIdF9ohKkV0TgLKPEnD9fmEAcZoEdTBK39n4CGyQs 4CTxfOdiqIPWMklc7lnLBpLgFCiQmH70GvMERv5ZSO6bhXDfLIT7FjAyr2KUTC0ozk3PLTYq MMxLLdcrTswtLs1L10vOz93ECIyebYe1+nYw3l8Sf4hRgINRiYf3QW54lBBrYllxZe4hRgkO ZiUR3ppuoBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHe23nHIoUE0hNLUrNTUwtSi2CyTBycUg2M CYzeKj2ndTyOLpH5tTT11/1rs4umXXrKtmzFb66QUxeESh0CrC2ezOAKXJQtoeDKZXXmFLe5 7NLuuu4M7alKlTvXbbI1EpNvUTv/cspLZ2nWxDff13zjPRNzNuwuk8jGWW4lriVsCWoTHJUc 30rmnXHyPRQpar46uefnpZXcGvu+LE24MuWcEktxRqKhFnNRcSIAK9m4nZoCAAA= X-CMS-MailID: 20180112012000epcas1p24a1efa90cc9ce6f233c242036d4114bc X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180109105704epcas2p1a61d52699557e3f79c631ea7f9614efc X-RootMTR: 20180109105704epcas2p1a61d52699557e3f79c631ea7f9614efc References: <345b8966460f13af7e29d2700876572d34f06cf4.1515494838.git-series.maxime.ripard@free-electrons.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 2018년 01월 09일 19:56에 Maxime Ripard 이(가) 쓴 글: > Now that the core has a drm format helper to tell if a format embeds an > alpha component in it, let's use it. > > Cc: Inki Dae > Cc: Joonyoung Shim > Cc: Kyungmin Park > Cc: Seung-Woo Kim > Signed-off-by: Maxime Ripard Acked-by: Inki Dae Thanks, Inki Dae > --- > drivers/gpu/drm/exynos/exynos_mixer.c | 14 +------------- > 1 file changed, 1 insertion(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c > index dc5d79465f9b..d7339a6d072c 100644 > --- a/drivers/gpu/drm/exynos/exynos_mixer.c > +++ b/drivers/gpu/drm/exynos/exynos_mixer.c > @@ -179,18 +179,6 @@ static const u8 filter_cr_horiz_tap4[] = { > 70, 59, 48, 37, 27, 19, 11, 5, > }; > > -static inline bool is_alpha_format(unsigned int pixel_format) > -{ > - switch (pixel_format) { > - case DRM_FORMAT_ARGB8888: > - case DRM_FORMAT_ARGB1555: > - case DRM_FORMAT_ARGB4444: > - return true; > - default: > - return false; > - } > -} > - > static inline u32 vp_reg_read(struct mixer_context *ctx, u32 reg_id) > { > return readl(ctx->vp_regs + reg_id); > @@ -625,7 +613,7 @@ static void mixer_graph_buffer(struct mixer_context *ctx, > mixer_reg_write(ctx, MXR_GRAPHIC_BASE(win), dma_addr); > > mixer_cfg_layer(ctx, win, priority, true); > - mixer_cfg_gfx_blend(ctx, win, is_alpha_format(fb->format->format)); > + mixer_cfg_gfx_blend(ctx, win, drm_format_has_alpha(fb->format->format)); > > /* layer update mandatory for mixer 16.0.33.0 */ > if (ctx->mxr_ver == MXR_VER_16_0_33_0 || >