Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3955909rwb; Sun, 30 Jul 2023 21:14:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNRa+6nsU5nikL0AEt0ZHttz5Nn2eQHLOCMiF+N24hmJaq9Ke939xqo6gtaJ1JKZXiuMEz X-Received: by 2002:a05:6a00:1a4a:b0:668:7292:b2c4 with SMTP id h10-20020a056a001a4a00b006687292b2c4mr9461990pfv.4.1690776853555; Sun, 30 Jul 2023 21:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690776853; cv=none; d=google.com; s=arc-20160816; b=XhmjUpMRjYYDXf18HY2/q6gumvF1Sdin8ks3o6X7aiAkGOsAp0KdCkVNyRBQSEr3LL 4ouDIyYVVlqDeYGPl3/djCjz7PxawTarnr3l8Rs0YrEdYybtcWi0xqA6gpeebrU/l1OF ivSxX6XvIA9y7DXsL7Nn2AcYTjvGSXzbbJsMOCPUrYdGAjN49hCLCm7vr8LKlBGiyOxE PYqDHfECwDkOtyzD82HiQhxjjyKyXPp8hZB97AF+YzGY6d0XfD18Gm0NpuoOt75YoVWL A1edvvHrVrJO5lqBIEPoBgezvdHgLDVltNW68QfFDHAMTBCqplU4tuJwayaF+vm2O8lq f6oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ajHG4BBw8iHuUvtNYJ0qqb7Yvyp0zkUGuOzCXpR5oEM=; fh=H1IgyJ0Ak4BYnhr64t0AkHWT2Xy5iO5fYyZRayU6/gM=; b=yIa9zaRipqa2t5t8JkduhV3IiDau3O8b+oYeH1D3UIeVpKrJDpACcp9mEqhbLepc/B IkEcaWxfJfYTJK9qoGq571q0znNVAk7qgoLfukDnnjK8Xuakj6nkSgW+qK6HnsXAhFGe rkcmhKWGtx16bTZsUyviAPVzsAf46S+jLwO9IBjpGQPSdc7wB4tuOSd3ZEDDVKd+q2Qz A4j/JWm1GKways38aMPxMo4d8Qlh35H/P00QX1+z1dE3IyYhamxtgYY6NLyKWwdXXTjg z65wtiDIbFg5XJ/IXDlXh5IS+6wYyrvQycBMGJAOe9dlbBTGmt9q8Dv93bgb7HvpqRWe qfZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLosVwAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020aa7874f000000b00686f6b4ccf1si6480555pfo.389.2023.07.30.21.14.01; Sun, 30 Jul 2023 21:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TLosVwAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbjGaECd (ORCPT + 99 others); Mon, 31 Jul 2023 00:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjGaECa (ORCPT ); Mon, 31 Jul 2023 00:02:30 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38BA312A for ; Sun, 30 Jul 2023 21:02:27 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b962c226ceso58322091fa.3 for ; Sun, 30 Jul 2023 21:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690776145; x=1691380945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ajHG4BBw8iHuUvtNYJ0qqb7Yvyp0zkUGuOzCXpR5oEM=; b=TLosVwAEYjCsImmgqiqb/tuWYyQQrOf+9i1YGcKBHX3A56WIrq4wXLtuinW/c86mJr +eBv3iXgJzd+BAcuGBVF9cYuPpGWy5IsH/FqkTEimIDACLW3UiSpqemlQOPv195BDdvn tZSbQfxzX4byxDUReBx7P+rFcKIR7I7BfaseeyA3hymFGP/+gp1EGy7ufeIJEm15eDAJ NwCgU9jB7tPIyiSOwb/sS8gd/b01S+LfRtoHBow9GORRNsUfHU62a7vADaxJA21O60dl 8rI1VRYN6Q2ePoDAXnMSKr1kfl5iCRPlJo5gznBBtHhy1YR0YO7aXkqx0xJGfKc6zEkM tr2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690776145; x=1691380945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ajHG4BBw8iHuUvtNYJ0qqb7Yvyp0zkUGuOzCXpR5oEM=; b=UBsxT93se2Uwo50GN6rOk/P1zn4ZCW4ss4nx1PD8uc3Ksctg/IB2Iks4lXtKRhDLao eS1uuE7Yd+Y0aNJSbVoFTpuSFHlE92iuKIOQe57eTRjtYlYlThplMqeIuIQG7W06dBmi 7mLukCwx18PlzOg2pkwCEBSXqUWH9WmgsbsKeq8VQYrfXZG5zcSdWXwCY6icp5RpUgMX j2gaHRqyIZeljdTZzgXPkv5FnRYv1XO8S1CDA2zuoQWANY0NFP8cjtKYmtpPtbO/r2qh OwxVhE0zDgc71A01606lTyw/5chLdDnLolIA2jJMp4cqEEf8dyFS1rHshmqOhOb3fWjJ YxkQ== X-Gm-Message-State: ABy/qLYj22stXJhwTz8ZhnWsvE68Yb6X7/sjG6ez3wrv5A1ZIp3RpvZ3 5nL/jGB+Vmbk+8lYGWtg18FtVA== X-Received: by 2002:a2e:81c3:0:b0:2b6:d9dd:f65f with SMTP id s3-20020a2e81c3000000b002b6d9ddf65fmr5289913ljg.17.1690776145555; Sun, 30 Jul 2023 21:02:25 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id d13-20020a2e330d000000b002b6cb40e9aasm2288593ljc.103.2023.07.30.21.02.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Jul 2023 21:02:24 -0700 (PDT) Message-ID: Date: Mon, 31 Jul 2023 07:02:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH RFC v5 03/10] drm: Add solid fill pixel source Content-Language: en-GB To: Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Clark , Sean Paul , Marijn Suijten Cc: quic_abhinavk@quicinc.com, ppaalanen@gmail.com, contact@emersion.fr, laurent.pinchart@ideasonboard.com, sebastian.wick@redhat.com, ville.syrjala@linux.intel.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, wayland-devel@lists.freedesktop.org References: <20230728-solid-fill-v5-0-053dbefa909c@quicinc.com> <20230728-solid-fill-v5-3-053dbefa909c@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <20230728-solid-fill-v5-3-053dbefa909c@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/07/2023 20:02, Jessica Zhang wrote: > Add "SOLID_FILL" as a valid pixel source. If the pixel_source property is > set to "SOLID_FILL", it will display data from the drm_plane "solid_fill" > blob property. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/drm_blend.c | 10 +++++++++- > include/drm/drm_plane.h | 1 + > 2 files changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov > > diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c > index c632dfcd8a9b..34b1fd3e2310 100644 > --- a/drivers/gpu/drm/drm_blend.c > +++ b/drivers/gpu/drm/drm_blend.c > @@ -200,6 +200,9 @@ > * "FB": > * Framebuffer source set by the "FB_ID" property. > * > + * "SOLID_FILL": > + * Solid fill color source set by the "solid_fill" property. > + * > * solid_fill: > * solid_fill is set up with drm_plane_create_solid_fill_property(). It > * contains pixel data that drivers can use to fill a plane. > @@ -657,6 +660,9 @@ EXPORT_SYMBOL(drm_plane_create_blend_mode_property); > * "FB": > * Framebuffer pixel source > * > + * "SOLID_FILL": > + * Solid fill color pixel source > + * > * Returns: > * Zero on success, negative errno on failure. > */ > @@ -668,8 +674,10 @@ int drm_plane_create_pixel_source_property(struct drm_plane *plane, > static const struct drm_prop_enum_list enum_list[] = { > { DRM_PLANE_PIXEL_SOURCE_NONE, "NONE" }, > { DRM_PLANE_PIXEL_SOURCE_FB, "FB" }, > + { DRM_PLANE_PIXEL_SOURCE_SOLID_FILL, "SOLID_FILL" }, > }; > - static const unsigned int valid_source_mask = BIT(DRM_PLANE_PIXEL_SOURCE_FB); > + static const unsigned int valid_source_mask = BIT(DRM_PLANE_PIXEL_SOURCE_FB) | > + BIT(DRM_PLANE_PIXEL_SOURCE_SOLID_FILL); > int i; > > /* FB is supported by default */ > diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h > index abf1458fa099..234fee3d5a95 100644 > --- a/include/drm/drm_plane.h > +++ b/include/drm/drm_plane.h > @@ -43,6 +43,7 @@ enum drm_scaling_filter { > enum drm_plane_pixel_source { > DRM_PLANE_PIXEL_SOURCE_NONE, > DRM_PLANE_PIXEL_SOURCE_FB, > + DRM_PLANE_PIXEL_SOURCE_SOLID_FILL, > DRM_PLANE_PIXEL_SOURCE_MAX > }; > > -- With best wishes Dmitry