From nobody Sat May 18 08:35:48 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1562276888; cv=none; d=zoho.com; s=zohoarc; b=OO+ZA1ja2DyXeIPbcB64EXmquLc84Mq/zhklwBQpfR6R2piU/4NbKusm8dO7iJRtTdENXjfam/O3w/PWnRATgLZft/UnIaaQDN2uSrJaJaizOH65Cu3HNZk82HU07fZapLl/t8Gn5juzMp6iAlYH7RstaftX4E/QPTmFEKjR7mE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562276888; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Pt5pnUNp4n7SVVW/9A3nEMBqLfCcejirEBMF/Re35Hs=; b=WinjcKzPHXg/UI68jP7PuUNy5PsndkqdSGlAxNxJWA/Zrb5sEL4P0kabjqTi+BlDxGfbgz4itqIixesNg+GPeH6aN5kwmHdLx55ePSFm7WSWIPTqw+st4+nd6K5zF99Ka1MX4Kb+aOwU89iQVjjQV4dxg2H8gC6pXh4RjIfhx9E= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1562276888223800.5470344435948; Thu, 4 Jul 2019 14:48:08 -0700 (PDT) Received: from localhost ([::1]:48958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj9aF-0006w0-PW for importer@patchew.org; Thu, 04 Jul 2019 17:48:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57288) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj9Y1-0005El-UT for qemu-devel@nongnu.org; Thu, 04 Jul 2019 17:45:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj9Y0-0007sK-PV for qemu-devel@nongnu.org; Thu, 04 Jul 2019 17:45:45 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:23052) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hj9Xy-0007oC-4a for qemu-devel@nongnu.org; Thu, 04 Jul 2019 17:45:42 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id C9E927461AE; Thu, 4 Jul 2019 23:45:37 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id AB8E57461AA; Thu, 4 Jul 2019 23:45:37 +0200 (CEST) Message-Id: From: BALATON Zoltan Date: Thu, 04 Jul 2019 23:43:25 +0200 MIME-Version: 1.0 To: qemu-devel@nongnu.org Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:738:2001:2001::2001 Subject: [Qemu-devel] [PATCH] ati-vga: Fix setting offset together with pitch for r128pro 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: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Turns out my last fix to this broke one case for Rage 128 Pro so revert that part of previous patch. This now fixes the remaining rendering problems for MorphOS which now can produce picture with -device ati-vga (although it may not be optimised yet and video overlay emulation is still known to be missing). Fixes: 866ad5f5ff620078f88183aa254f7b02727e6aa3 Signed-off-by: BALATON Zoltan --- hw/display/ati.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/display/ati.c b/hw/display/ati.c index 590362ea56..a747c4cc98 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -689,7 +689,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, break; case SRC_PITCH_OFFSET: if (s->dev_id =3D=3D PCI_DEVICE_ID_ATI_RAGE128_PF) { - s->regs.src_offset =3D (data & 0x1fffff) << 4; + s->regs.src_offset =3D (data & 0x1fffff) << 5; s->regs.src_pitch =3D (data & 0x7fe00000) >> 21; s->regs.src_tile =3D data >> 31; } else { @@ -700,7 +700,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, break; case DST_PITCH_OFFSET: if (s->dev_id =3D=3D PCI_DEVICE_ID_ATI_RAGE128_PF) { - s->regs.dst_offset =3D (data & 0x1fffff) << 4; + s->regs.dst_offset =3D (data & 0x1fffff) << 5; s->regs.dst_pitch =3D (data & 0x7fe00000) >> 21; s->regs.dst_tile =3D data >> 31; } else { --=20 2.13.7