From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F594D1950F for ; Mon, 26 Jan 2026 18:25:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FFD810E462; Mon, 26 Jan 2026 18:25:57 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=nfraprado@collabora.com header.b="kx4bYd12"; dkim-atps=neutral Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 32F8D10E460 for ; Mon, 26 Jan 2026 18:25:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1769451944; cv=none; d=zohomail.com; s=zohoarc; b=Zn/ooi+tjr/B3JZDfPh6S7Ri3js5/zkIprHGuSy97Br9nKNc5h9Q+3B0YtaxOSINPbwt5XSlq7A285NIzYIhKR3+uw7TCTuccCx8ru7A0VY+1OCkrptNhflRy6+f6Z/7EFDNt02eVgv8txvvOeWg3v3mEpxqRRvkq/zWGaw62kQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769451944; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=M1pdoPngF1aDapNIHrwNpRBo4Sp2UIKTCGoXtl4MeI4=; b=mH+JJFvIxEHJy/ZqUXFKpCNR56M+yc2s5cu7Kj/5E1PjupQbN+MMgkU9rFQsKRHZcnd7g8RN9XvUrf5SAFnXhBVoqzCq/X1BNYjGTdhAX+p+yxV34OghF5PjtsS9vqDqO5Vr7W9RYPfQ7kKC1ezDMdMXKZoKxA0ru5ETMMjpbT8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nfraprado@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1769451944; s=zohomail; d=collabora.com; i=nfraprado@collabora.com; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=M1pdoPngF1aDapNIHrwNpRBo4Sp2UIKTCGoXtl4MeI4=; b=kx4bYd12ixykYU8diZAiP/k70qprWD1JrV1394b507KEwJW1kFjztI6eDoTdXmPJ 3hSiX5ttD67uYlI6KIHByJf3ZXLw1EP7BGtJ2DE+mQp2TeJ3325DDtTizqYaTh9Ap0I 7VOZVwpb30TL56i6OValyHjQb9aWD5899FMpx0hM= Received: by mx.zohomail.com with SMTPS id 176945194260896.91308996533701; Mon, 26 Jan 2026 10:25:42 -0800 (PST) Message-ID: <0dfb0aafeb37f0683182ef23293bb8373dd7caf2.camel@collabora.com> Subject: Re: [PATCH v4 3/4] drm/vkms: Support setting custom background color From: =?ISO-8859-1?Q?N=EDcolas?= "F. R. A. Prado" To: Cristian Ciocaltea , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Sandy Huang , Heiko =?ISO-8859-1?Q?St=FCbner?= , Andy Yan , Louis Chauvet , Haneen Mohammed , Melissa Wen Cc: Robert Mader , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Date: Mon, 26 Jan 2026 15:25:35 -0300 In-Reply-To: <20251219-rk3588-bgcolor-v4-3-2ff1127ea757@collabora.com> References: <20251219-rk3588-bgcolor-v4-0-2ff1127ea757@collabora.com> <20251219-rk3588-bgcolor-v4-3-2ff1127ea757@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-8 MIME-Version: 1.0 X-ZohoMailClient: External X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, 2025-12-19 at 23:47 +0200, Cristian Ciocaltea wrote: > Make use of the BACKGROUND_COLOR CRTC property when filling the > background during blending.=C2=A0 It already defaults to solid black. >=20 > Since the internal representation of the pixel color in VKMS relies > on > 16 bits of precision, use the newly introduced > DRM_ARGB64_GET{R|G|B}() > helpers to access the individual components of the background color > property, which is compliant with DRM_FORMAT_ARGB16161616. >=20 > It's worth noting the alpha component is ignored, hence non-opaque > background colors are not supported. >=20 > Signed-off-by: Cristian Ciocaltea Reviewed-by: N=C3=ADcolas F. R. A. Prado --=20 Thanks, N=C3=ADcolas