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 01414C61DA3 for ; Fri, 24 Feb 2023 13:09:14 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVXog-0003QV-2M; Fri, 24 Feb 2023 08:08:50 -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 1pVXoe-0003Pz-0P; Fri, 24 Feb 2023 08:08:48 -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 1pVXoU-0005Zr-5t; Fri, 24 Feb 2023 08:08:39 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 37847746377; Fri, 24 Feb 2023 14:08:36 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 0058774635C; Fri, 24 Feb 2023 14:08:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id F36EA745720; Fri, 24 Feb 2023 14:08:35 +0100 (CET) Date: Fri, 24 Feb 2023 14:08:35 +0100 (CET) From: BALATON Zoltan To: Peter Maydell cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Gerd Hoffmann , Daniel Henrique Barboza , Sebastian Bauer Subject: Re: [PATCH] hw/display/sm501: Add alternatives to pixman routines In-Reply-To: Message-ID: <2e6481aa-300e-74ce-d50b-c945d88625da@eik.bme.hu> References: <20230224001852.4B813746324@zero.eik.bme.hu> 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: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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: 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 Fri, 24 Feb 2023, Peter Maydell wrote: > On Fri, 24 Feb 2023 at 00:18, BALATON Zoltan wrote: >> Pixman can sometimes return false so add fallbacks for such cases and >> also add a property to disable pixman and always use the fallbacks >> which can be useful on platforms where pixman is broken or for testing >> different drawing methods. >> >> Signed-off-by: BALATON Zoltan >> --- >> Also ping for the other sm501 patch I've sent a week ago: >> https://patchew.org/QEMU/20230216144043.D632874634B@zero.eik.bme.hu/ >> These two patches are needed to fix graphics issues with AmigaOS so >> I'd like them to be merged for 8.0 >> >> @@ -2010,6 +2035,7 @@ static void sm501_realize_sysbus(DeviceState *dev, Error **errp) >> static Property sm501_sysbus_properties[] = { >> DEFINE_PROP_UINT32("vram-size", SM501SysBusState, vram_size, 0), >> DEFINE_PROP_UINT32("base", SM501SysBusState, base, 0), >> + DEFINE_PROP_BOOL("x-pixman", SM501SysBusState, state.use_pixman, true), >> DEFINE_PROP_END_OF_LIST(), >> }; >> >> @@ -2093,6 +2119,7 @@ static void sm501_realize_pci(PCIDevice *dev, Error **errp) >> >> static Property sm501_pci_properties[] = { >> DEFINE_PROP_UINT32("vram-size", SM501PCIState, vram_size, 64 * MiB), >> + DEFINE_PROP_BOOL("x-pixman", SM501PCIState, state.use_pixman, true), >> DEFINE_PROP_END_OF_LIST(), >> }; > > I don't think this should be a user-facing property on a single > graphics device. Either pixman works, or it doesn't (in which > case we might need to do configure time checks and have a > fallback), but we shouldn't make the user have to set an > undocumented property on the device to get it to work. Also got some reports now that pixman may have problems with 8 bit depths where it fails without reporting error (so couldn't even be tested by configure) so I'll do a v2 with activating fallback also for 8 bit depths and updated commit message if you can tell me how or any other comments I get today. Regards, BALATON Zoltan