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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 77438EF06E7 for ; Sun, 8 Feb 2026 20:29:51 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vpBPC-0008SV-E7; Sun, 08 Feb 2026 15:29:18 -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 1vpBPA-0008Rw-Ny for qemu-devel@nongnu.org; Sun, 08 Feb 2026 15:29:16 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vpBP9-0008LD-72 for qemu-devel@nongnu.org; Sun, 08 Feb 2026 15:29:16 -0500 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id B170B5969F2; Sun, 08 Feb 2026 21:29:13 +0100 (CET) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id nd1Pd-UGAAHT; Sun, 8 Feb 2026 21:29:11 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id B90195969F1; Sun, 08 Feb 2026 21:29:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id B7A9E5969F6; Sun, 08 Feb 2026 21:29:11 +0100 (CET) Date: Sun, 8 Feb 2026 21:29:11 +0100 (CET) From: BALATON Zoltan To: Chad Jablonski cc: qemu-devel@nongnu.org Subject: Re: [PATCH v8 13/18] ati-vga: Split ati_2d_do_blt from ati_2d_blt In-Reply-To: <20260204164606.3425246-14-chad@jablonski.xyz> Message-ID: References: <20260204164606.3425246-1-chad@jablonski.xyz> <20260204164606.3425246-14-chad@jablonski.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, 4 Feb 2026, Chad Jablonski wrote: > ati_2d_blt remains the public interface to the blitter but the bulk of > the implementation is moved down into ati_2d_do_blt which is passed an > ATI2DCtx. > > Signed-off-by: Chad Jablonski Reviewed-by: BALATON Zoltan > --- > hw/display/ati_2d.c | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c > index cf80296a25..063928c442 100644 > --- a/hw/display/ati_2d.c > +++ b/hw/display/ati_2d.c > @@ -123,15 +123,12 @@ static void setup_2d_blt_ctx(const ATIVGAState *s, ATI2DCtx *ctx) > (ctx->top_to_bottom ? 'v' : '^')); > } > > -void ati_2d_blt(ATIVGAState *s) > +static void ati_2d_do_blt(ATIVGAState *s, ATI2DCtx *ctx) > { > /* FIXME it is probably more complex than this and may need to be */ > /* rewritten but for now as a start just to get some output: */ > bool use_pixman_fill = s->use_pixman & BIT(0); > bool use_pixman_blt = s->use_pixman & BIT(1); > - ATI2DCtx ctx_; > - ATI2DCtx *ctx = &ctx_; > - setup_2d_blt_ctx(s, ctx); > if (!ctx->bpp) { > qemu_log_mask(LOG_GUEST_ERROR, "Invalid bpp\n"); > return; > @@ -263,8 +260,13 @@ void ati_2d_blt(ATIVGAState *s) > default: > qemu_log_mask(LOG_UNIMP, "Unimplemented ati_2d blt op %x\n", > ctx->rop3 >> 16); > - return; > } > +} > > - ati_set_dirty(&s->vga, ctx); > +void ati_2d_blt(ATIVGAState *s) > +{ > + ATI2DCtx ctx; > + setup_2d_blt_ctx(s, &ctx); > + ati_2d_do_blt(s, &ctx); > + ati_set_dirty(&s->vga, &ctx); > } >