From patchwork Wed May 20 13:39:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 11560555 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C79E213B1 for ; Wed, 20 May 2020 14:25:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A8BAC205CB for ; Wed, 20 May 2020 14:25:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8BAC205CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:53878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbPfQ-0004Mw-Ss for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 May 2020 10:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbPXo-000512-9r for qemu-devel@nongnu.org; Wed, 20 May 2020 10:18:04 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]:49720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbPXk-0004Pt-Af for qemu-devel@nongnu.org; Wed, 20 May 2020 10:18:03 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 4AD2E748DDC; Wed, 20 May 2020 16:17:49 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 2F040748DCF; Wed, 20 May 2020 16:17:49 +0200 (CEST) Message-Id: From: BALATON Zoltan Subject: [PATCH 0/6] Misc display/sm501 clean ups and fixes Date: Wed, 20 May 2020 15:39:50 +0200 To: qemu-devel@nongnu.org X-Spam-Probability: 8% Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/20 10:17:49 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] 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_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Sebastian Bauer , Magnus Damm , Gerd Hoffmann , Aurelien Jarno Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Hello, These are some small clean ups and changes to hopefully improve 2D engine performance and fix a security bug in it. I've only tested it lightly, haven't verified if breaking it is still possible. It's also known to change handling of right to left blits which may not be able to handle overlaping regions but the only guest known to use it (AmigaOS on sam460ex) seems to be OK with this so unless this is proven to be needed I won't try to fix that now, this could be addressed in later patches. Regards, BALATON Zoltan BALATON Zoltan (6): sm501: Convert printf + abort to qemu_log_mask sm501: Shorten long variable names in sm501_2d_operation sm501: Use BIT(x) macro to shorten constant sm501: Clean up local variables in sm501_2d_operation sm501: Replace hand written implementation with pixman where possible sm501: Remove obsolete changelog and todo comment hw/display/sm501.c | 278 +++++++++++++++++++++------------------------ 1 file changed, 131 insertions(+), 147 deletions(-)