From nobody Fri May 3 08:25:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1489660479989591.6284540897764; Thu, 16 Mar 2017 03:34:39 -0700 (PDT) Received: from localhost ([::1]:42446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coSjt-0005mF-Sn for importer@patchew.org; Thu, 16 Mar 2017 06:34:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coRbJ-00042c-Ua for qemu-devel@nongnu.org; Thu, 16 Mar 2017 05:21:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coRbE-0000CN-Vp for qemu-devel@nongnu.org; Thu, 16 Mar 2017 05:21:41 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:33946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coRbE-0000Bz-Oi for qemu-devel@nongnu.org; Thu, 16 Mar 2017 05:21:36 -0400 Received: by mail-lf0-x242.google.com with SMTP id y193so2927550lfd.1 for ; Thu, 16 Mar 2017 02:21:36 -0700 (PDT) Received: from localhost.localdomain (89-77-183-36.dynamic.chello.pl. [89.77.183.36]) by smtp.gmail.com with ESMTPSA id 9sm806381ljn.1.2017.03.16.02.21.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2017 02:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SYcL5R6UDEfWkl+pW6ABy0D+szLFO79PbInlAUhMTaY=; b=JKr2iF7VH9IrwRwO7jDwIZvOdJpZcRFfipuUfBtatBDPmacuinuwTzKwZjT7I+Pm7p K/8hj0AjLU3+rU3Wg2J8HXS4/xMntc5P2qIGNR0kNlWN8jaP4Qn4GTvSpkVCg7kEFqbg MaBFQ+1OWn1p8sgTQpp8ndxHoRWTOkFr+1ipWIC1jYjIN6I6ZYQowHAVQt8zcfPZMLJL QGd/WjhNpwFJ1nuccL2D5Tfbnnt2uC1/TYYmA5xUwYkWXOgoccbcSTQ9IF8iFoEE0RX8 +CczDgpxB/d9ghi7v7zbdquUJCG5GIL939ryPlR4nosasXXr9CBrrjAp2jcpAt2hd822 mY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SYcL5R6UDEfWkl+pW6ABy0D+szLFO79PbInlAUhMTaY=; b=aSkyV+Y+/iHRtZr4ybXrBSUc/0G5g2/dI9PfA5ydJ/HavHrTiCNwxCSGGeUNgUc8M8 ZM7TNoucFjsOuDvp/3llCoUYFH5iPXNdmJEfpHS5/Et7XM0f5H/GUbB/Xnm1yPr03Q+Y QdoaqiTl0LwGGbG2PAGC9Gmhivuq6mz0mzBin7uXjODSVPQVoIcMmfuf0BRZjGHnZ7K4 GKLKzjbMaSz2A7gTbLyk/aUtgW3t3N56yiJdu+r2OktJ/VmNUB8laiO8V0odMuVihxqc sY+gCYJ5ypawGTWSgEp7KlFn2owYIN+ohJq/swf7GJWdsGoUcxw2jaVJXhLUUU7g54N2 cDFA== X-Gm-Message-State: AFeK/H1h7r3H1tUszbUJYwp7jYoVys3+7AWlbTWbT7c8jiXzuzXdu8jNdca5H4n3fyxk9Q== X-Received: by 10.25.196.21 with SMTP id u21mr2374026lff.81.1489656095287; Thu, 16 Mar 2017 02:21:35 -0700 (PDT) From: iwona260909@gmail.com To: Date: Thu, 16 Mar 2017 10:20:30 +0100 Message-Id: <20170316092030.1685-2-iwona260909@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170316092030.1685-1-iwona260909@gmail.com> References: <20170316092030.1685-1-iwona260909@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::242 X-Mailman-Approved-At: Thu, 16 Mar 2017 06:33:36 -0400 Subject: [Qemu-devel] [PATCH] Dead Code Removal: removing support for DEPTH != 32. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, Iwona Kotlarska Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Iwona Kotlarska Signed-off-by: Iwona Kotlarska --- hw/display/sm501.c | 37 ------------------------------------- hw/display/sm501_template.h | 8 +------- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/hw/display/sm501.c b/hw/display/sm501.c index 040a0b93f2..8935ea758a 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -1173,23 +1173,6 @@ typedef void draw_line_func(uint8_t *d, const uint8_= t *s, typedef void draw_hwc_line_func(SM501State * s, int crt, uint8_t * palette, int c_y, uint8_t *d, int width); =20 -#define DEPTH 8 -#include "sm501_template.h" - -#define DEPTH 15 -#include "sm501_template.h" - -#define BGR_FORMAT -#define DEPTH 15 -#include "sm501_template.h" - -#define DEPTH 16 -#include "sm501_template.h" - -#define BGR_FORMAT -#define DEPTH 16 -#include "sm501_template.h" - #define DEPTH 32 #include "sm501_template.h" =20 @@ -1198,43 +1181,23 @@ typedef void draw_hwc_line_func(SM501State * s, int= crt, uint8_t * palette, #include "sm501_template.h" =20 static draw_line_func * draw_line8_funcs[] =3D { - draw_line8_8, - draw_line8_15, - draw_line8_16, draw_line8_32, draw_line8_32bgr, - draw_line8_15bgr, - draw_line8_16bgr, }; =20 static draw_line_func * draw_line16_funcs[] =3D { - draw_line16_8, - draw_line16_15, - draw_line16_16, draw_line16_32, draw_line16_32bgr, - draw_line16_15bgr, - draw_line16_16bgr, }; =20 static draw_line_func * draw_line32_funcs[] =3D { - draw_line32_8, - draw_line32_15, - draw_line32_16, draw_line32_32, draw_line32_32bgr, - draw_line32_15bgr, - draw_line32_16bgr, }; =20 static draw_hwc_line_func * draw_hwc_line_funcs[] =3D { - draw_hwc_line_8, - draw_hwc_line_15, - draw_hwc_line_16, draw_hwc_line_32, draw_hwc_line_32bgr, - draw_hwc_line_15bgr, - draw_hwc_line_16bgr, }; =20 static inline int get_depth_index(DisplaySurface *surface) diff --git a/hw/display/sm501_template.h b/hw/display/sm501_template.h index f33e499be4..4e5801ec3e 100644 --- a/hw/display/sm501_template.h +++ b/hw/display/sm501_template.h @@ -22,13 +22,7 @@ * THE SOFTWARE. */ =20 -#if DEPTH =3D=3D 8 -#define BPP 1 -#define PIXEL_TYPE uint8_t -#elif DEPTH =3D=3D 15 || DEPTH =3D=3D 16 -#define BPP 2 -#define PIXEL_TYPE uint16_t -#elif DEPTH =3D=3D 32 +#if DEPTH =3D=3D 32 #define BPP 4 #define PIXEL_TYPE uint32_t #else --=20 2.12.0