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 98A89C5478C for ; Fri, 1 Mar 2024 20:48:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3595710ECC0; Fri, 1 Mar 2024 20:48:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.b="Qa7ecAmU"; dkim-atps=neutral Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4517810EB61 for ; Fri, 1 Mar 2024 20:48:06 +0000 (UTC) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 421Fcr6C023146; Fri, 1 Mar 2024 20:47:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=SFnKdN4xkKoq0PmhQgJs4SiRBsmhZyBdIJvV+utHHc4 =; b=Qa7ecAmUDaw4qktXL5uPyOiFpRMa98ht0QlCSlcdJlmY63kd7yJ2G1lQGad ilTMLPj8XTS2hCpx3HcGaiFfA525DKcBBKgaTYoVpEDAKXFWusM2BxfBlQU2EiJ8 ZKOuDofP0s6HRaOoPOMnPZDC6ZVeLBFBfa4kx45YPmKqHhuuAgBOTxKP5bIXM7lI ERyi6ADcZk8+fewXHlIvxzLYDKYo86vwig3GF1c5MoYJD+NiR979xywtqwH6vOxO TEFI1ORnv2neAMUmiyMRStDk4i2c25+ita9Ot0lU3+l8EOSj6Y6g/R331d/Ne04j vKb8X2/up/bJbnfS1gxDDfeDBWg== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wkhudrmmb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Mar 2024 20:47:55 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 421KlsD5025372 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Mar 2024 20:47:54 GMT Received: from jesszhan-linux.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Mar 2024 12:47:54 -0800 From: Jessica Zhang Date: Fri, 1 Mar 2024 12:47:31 -0800 Subject: [PATCH i-g-t v3 2/5] drm-uapi: Add drm_mode_solid_fill MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240301-solid-fill-v3-2-8dff68a8a566@quicinc.com> References: <20240301-solid-fill-v3-0-8dff68a8a566@quicinc.com> In-Reply-To: <20240301-solid-fill-v3-0-8dff68a8a566@quicinc.com> To: , Petri Latvala CC: Simon Ser , Kamil Konieczny , , "Dmitry Baryshkov" , Rob Clark , Pekka Paalanen , Bhanuprakash Modem , Jessica Zhang X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709326073; l=1441; i=quic_jesszhan@quicinc.com; s=20230329; h=from:subject:message-id; bh=TR5BHrgSuicEXQu54VvlfUh8aPvNNd5NpjHowG5J2qU=; b=9ssSCi1q4S+4ELUvX24diQ53nlV+hqEw9C5a/NxZ1h7i/Z44sv49O9Fh3PGQPNqoXz2qmiqyn 6QXTgA8P9DHA2EbykWL3TwYycy70nwEtfBnSX4LuZtgGRIEJ7tE0dk5 X-Developer-Key: i=quic_jesszhan@quicinc.com; a=ed25519; pk=gAUCgHZ6wTJOzQa3U0GfeCDH7iZLlqIEPo4rrjfDpWE= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: b5x9TQJanAs4YydGZodnqoC08LnzjK7C X-Proofpoint-ORIG-GUID: b5x9TQJanAs4YydGZodnqoC08LnzjK7C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-01_21,2024-03-01_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 adultscore=0 spamscore=0 suspectscore=0 mlxlogscore=913 phishscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403010172 X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add the drm_mode_solid_fill struct to drm_mode.h This is required for https://patchwork.freedesktop.org/series/110283/ Acked-by: Pekka Paalanen Signed-off-by: Jessica Zhang --- include/drm-uapi/drm_mode.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/drm-uapi/drm_mode.h b/include/drm-uapi/drm_mode.h index ea1b639bcb28..3bf86406f10d 100644 --- a/include/drm-uapi/drm_mode.h +++ b/include/drm-uapi/drm_mode.h @@ -259,6 +259,30 @@ struct drm_mode_modeinfo { char name[DRM_DISPLAY_MODE_LEN]; }; +/** + * struct drm_mode_solid_fill - User info for solid fill planes + * + * This is the userspace API solid fill information structure. + * + * Userspace can enable solid fill planes by assigning the plane "solid_fill" + * property to a blob containing a single drm_mode_solid_fill struct populated with an RGB323232 + * color and setting the pixel source to "SOLID_FILL". + * + * For information on the plane property, see drm_plane_create_solid_fill_property() + * + * @r: Red color value of single pixel + * @g: Green color value of single pixel + * @b: Blue color value of single pixel + * @pad: padding, must be zero + */ +struct drm_mode_solid_fill { + __u32 r; + __u32 g; + __u32 b; + __u32 pad; +}; + + struct drm_mode_card_res { __u64 fb_id_ptr; __u64 crtc_id_ptr; -- 2.43.2