From nobody Wed Feb 11 00:37:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=jablonski.xyz ARC-Seal: i=1; a=rsa-sha256; t=1767725910; cv=none; d=zohomail.com; s=zohoarc; b=Pqmr33HUCr+GrLcMXMm99qTzFxuRm0+R0F1NVnUTMrFyiQ7p/yqu/mzQgsPRQJ/MyvzzTfgq63L6snf1zbvubfG83+xg/ylAVCkioXJZawlMrx83GHlhP/wGbQIUotFoErGWWjqAxrhnbuIBYn5y0WDktbc/YHWEqg/7/84RHvE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767725910; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gjdHE6O4FDZjVsD4gTZEYz0jwiq/fcmeDgdMr216o5A=; b=iWJPEWoWiWU3NISx6IqoDJ2BOv03XocR5lGXHgkLcEJbSbuZSv6XXJCAKmF89GZU3tp7xY34pw72PfxnIzMdKf1NX6Xm8aAz0MGyBWC4GX7S8WQXqjx+irlJ1pvxpLKIgViGb7bRHzQVNMia77SMe2c8a0uelVq1mDmW17e/d4I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1767725910442379.73279872085004; Tue, 6 Jan 2026 10:58:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vdCFN-0004P2-DS; Tue, 06 Jan 2026 13:57:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vdCF1-0004Gd-LW for qemu-devel@nongnu.org; Tue, 06 Jan 2026 13:57:15 -0500 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vdCEy-0001x0-Hs for qemu-devel@nongnu.org; Tue, 06 Jan 2026 13:57:14 -0500 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 4F0511D0010D; Tue, 6 Jan 2026 13:57:11 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 06 Jan 2026 13:57:11 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jan 2026 13:57:10 -0500 (EST) Received: from localhost (chomposaur [local]) by chomposaur (OpenSMTPD) with ESMTPA id db3f8d23; Tue, 6 Jan 2026 18:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jablonski.xyz; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1767725831; x= 1767812231; bh=gjdHE6O4FDZjVsD4gTZEYz0jwiq/fcmeDgdMr216o5A=; b=s 1BgbNiNK84l9sDBirRwXMEFsP34dBg9fuPy5cq8pbLNDa5HOdL4YwQYsCB3+e3pc /PNxvTEwXb4b/xdP/7hqdHx0Nriu18TbdLz8oK5kxrWzd6H7hyRh1I54HWYDwWyf q+9cPyBI5/UyQwN3JVf2umcGCst/0KPId9rBHSJ/hkRgQVZkzCl0wfXbOQzRb7lG tFc3WIIzL0NFglneg9Cyg0gRpEbQ4Ktix696GYrEjTTxt5lTrkZdaL/6P6fQ0C6k xd1j8ukcyRQbORObYAu7bCRE3hatqbkvBtPAGJxWQdc+F0Y4GbLqTBV4G+suKVns TofuYOFBpAhapHQZl3juQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1767725831; x=1767812231; bh=g jdHE6O4FDZjVsD4gTZEYz0jwiq/fcmeDgdMr216o5A=; b=ybrjzBqHuw6RQ8Hop l51yu40jroLF43JqlxrmL8H4z+VDu4wJlgdLsUHp+OydkzPz6vE/qY9fP5tj1zOa cKberAeuGF/3b3rkSJcZaLurR2ta9P6CplukPDz83HLI12T1OIwhFNXj/FzX6VyG brxuMnxOnxFgY2WVptZic5ezr2IS0E63IOjUrEMoHcjWlQdU4u3AY/k4Smfi3b20 CeNEaoHICdTZd40Orgs/u9BYu2E3wbQEOmWWV2B31VON9btkpysuF8pmQejWdEF8 hDNpYHk7OIYq7zRKa0/R3sqoMfqfCLQtF2Z5koKy2r5JHCSIskb88kHQ5GRL0PvB 75nFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddutddtleeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpefhvfevuf ffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeevhhgrugculfgrsghlohhnshhk ihcuoegthhgrugesjhgrsghlohhnshhkihdrgiihiieqnecuggftrfgrthhtvghrnhepgf eiteejhfelheefieetjefgleejfffhueffvdduieejgfeuueeuvddvkeejhfelnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptghhrggusehjrg gslhhonhhskhhirdighiiipdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopegthhgrugesjhgrsghlohhnshhkihdrgiihiidprhgtphhtthhope hqvghmuhdquggvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepsggrlhgrthho nhesvghikhdrsghmvgdrhhhu X-ME-Proxy: Feedback-ID: ib26944c1:Fastmail From: Chad Jablonski To: qemu-devel@nongnu.org Cc: balaton@eik.bme.hu, Chad Jablonski Subject: [PATCH v4 4/9] ati-vga: Implement foreground and background color register writes Date: Tue, 6 Jan 2026 13:56:55 -0500 Message-ID: <20260106185700.2102742-5-chad@jablonski.xyz> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260106185700.2102742-1-chad@jablonski.xyz> References: <20260106185700.2102742-1-chad@jablonski.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=202.12.124.149; envelope-from=chad@jablonski.xyz; helo=fout-b6-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @jablonski.xyz) X-ZM-MESSAGEID: 1767725911927158500 Content-Type: text/plain; charset="utf-8" These are straightforward 32-bit register write handlers. They're necessary for a future patch which will use them for color expansion from monochrome host data transfers. Signed-off-by: Chad Jablonski Reviewed-by: BALATON Zoltan --- hw/display/ati.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/display/ati.c b/hw/display/ati.c index bbae5455d0..9a2c1260f7 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -964,6 +964,12 @@ static void ati_mm_write(void *opaque, hwaddr addr, case DP_CNTL: s->regs.dp_cntl =3D data; break; + case DP_SRC_FRGD_CLR: + s->regs.dp_src_frgd_clr =3D data; + break; + case DP_SRC_BKGD_CLR: + s->regs.dp_src_bkgd_clr =3D data; + break; case DP_DATATYPE: s->regs.dp_dst_datatype =3D (data & DP_DATATYPE_DST_DATATYPE_MASK); s->regs.dp_brush_datatype =3D (data & DP_DATATYPE_BRUSH_DATATYPE_M= ASK) >> 8; --=20 2.51.2