Received: by 2002:a19:690d:0:0:0:0:0 with SMTP id e13csp2301182lfc; Thu, 11 Feb 2021 06:17:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp8sw8bTkEZTtJIrXzoCnGFdjG0H9R1MqHNqcZj2zyKWf64toSKIRQGtQ+ntWbB8qnMdh3 X-Received: by 2002:a25:5303:: with SMTP id h3mr12515504ybb.58.1613053026161; Thu, 11 Feb 2021 06:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613053026; cv=none; d=google.com; s=arc-20160816; b=q7zS/C4j+9YaRYHvyg0O1heWj6541if0uLU0tDnNRWolTpbBJUQt8PfsQONfr2XxWo i7ZYYKNm8i2+dnXumO4qPpWkq30mIeXqne3oqkrWekDZjvGUb9FP00t12IQtHtgt4zBn 3uz303NT9XHfGr5k+isukcQJug2k0PA7dO3VoeOOf1A8Dou0yu8ZlOE0RSIoYI2vF0Vg G54KosD8J22crlrASQJFAurw7H5NXdVGfEH7aMb6KouGpZOlS7m9j0Lhzaq47/hzTohY 1DeirqINhnzrBG9MPS7dW9wQClvKR7sBSU1cvb2sMzf4RZ8Js0JyexkLj2VfdTs7AqPf T64A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=+gUJsjIf5/BD08y3x4kyL7rGJpanl7QzjUiozC10sMM=; b=Wg0FtPYuIl1n5Kn55y6c/6WnV+rKr6qOYqLHeCiGlVW/J3pq9X8mWN0cuv74FF3g0M nIc0S7vbeZ75Vh5xys5z/Q3wwLYI7zcCCh+HGtf4ZZ2HEjXEMbrcq61qBRQyndbcKMu+ iTLoyhRzq6ieOlCeMtnw8kCLPsvSxAoG1vaAvXn2GKgcWjgVV3uWG5hFonEJYOCpBUD5 fwqCxJwO6U13SuwXLc67+7evUsC3zzuQhA3Bs5hny79U7E0pHc9+R0fZ8woQR2tQNAa1 m6sdQde8IpQoEjryhMkc/2qCmx1nboQB4p9FRc3Z19Q3SGBiR7DSrkQtrZMX9oGZWWAZ 1oGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W4yeQ0lu; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s8si4721847ybl.347.2021.02.11.06.17.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Feb 2021 06:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W4yeQ0lu; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lACmH-00078E-FL for alex.bennee@linaro.org; Thu, 11 Feb 2021 09:17:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lACkq-0006X5-BZ for qemu-devel@nongnu.org; Thu, 11 Feb 2021 09:15:37 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:35938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lACkb-000746-CQ for qemu-devel@nongnu.org; Thu, 11 Feb 2021 09:15:31 -0500 Received: by mail-wm1-x32a.google.com with SMTP id i9so5908545wmq.1 for ; Thu, 11 Feb 2021 06:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+gUJsjIf5/BD08y3x4kyL7rGJpanl7QzjUiozC10sMM=; b=W4yeQ0luQRlpuB87jBSfS/zxP1pXFBwsxB5UgyWDjRsbvBE01HKSK7pRdLp8WuI+4r 2+YeupnlSTka5VSiKw5JBxcpdZmmbWLc6ovMmdExMonwCAR7WJGOVbFs9rVfNphfhTA6 Qohi9hikH40kfDkzb7NKmcBDHztfBsfx2VAHqL7RFLXEGoVIQwRYeEudUyHtOvVUgUhc wYuL0krJT4PR9/uZrX6nErGOJnq5UnbASUJ6ArZi7dfKnzNcybYvYW5MSm9AuauKlKD4 oYV77m1PoNbUeT6jqS79YEA8mlatE1tFER5ybSWv+CHaM+jBX7wSkm1L0ZzefL+vi4wR LiZA== 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:mime-version :content-transfer-encoding; bh=+gUJsjIf5/BD08y3x4kyL7rGJpanl7QzjUiozC10sMM=; b=kXITddxJu7FTbwZicAbP2MROuYperV8Eecnh5e7UqbwPV0fT8nmAujBSssws2EniNr oA47GzndHXqsHpQWI9I50YO7ys+yMN0OOXTV108ZUUMdVcBkLAHXh6xWG+SNc3sBiZe2 XHDAqecSErOJJcqiZkbeT4v+CAeE3Bp3HlImg1tNxvXGWlgTEInA/smQzjRlPqi99rLH gwJyKp5dnmfzJtb4JAhXSaaz2rNyGRysfxZSRPtdl6K0FhT6OOL/qq42V5aVxtS+3xNb IjpS0JreLRxFVHQJfphUawMWOzXdT5WvMAjNtQI2kyTPga+k3f9CERTdoIUZc95oKEZG z87g== X-Gm-Message-State: AOAM530NXC5e4ipbToZWhoz/+9nd8dIVoN9AZiOHWkxXGQzD0nsBWCyB gLkQwugV864TpW+9KAZEbRCf4Q== X-Received: by 2002:a1c:6289:: with SMTP id w131mr5604066wmb.0.1613052917585; Thu, 11 Feb 2021 06:15:17 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id h13sm5223291wrv.20.2021.02.11.06.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 06:15:17 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 0/9] hw/display/pl110, pxa2xx_lcd: Tidy up template headers Date: Thu, 11 Feb 2021 14:15:06 +0000 Message-Id: <20210211141515.8755-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: R1BHLc27Vq5q For a long time now the UI layer has guaranteed that the console surface is always 32 bits per pixel, but some older display device models still have the code to handle other depths. This patchset cleans up that dead code for the pl110 and pxa2xx_lcd devices. For the pxa2xx_lcd we can remove the template header entirely; the pl110 still uses it to handle the wide variety of guest pixel formats that it has to support, but we can at least simplify it from a doubly-nested set of inclusions to a single layer. thanks -- PMM Peter Maydell (9): hw/display/pl110: Remove dead code for non-32-bpp surfaces hw/display/pl110: Pull included-once parts of template header into pl110.c hw/display/pl110: Remove use of BITS from pl110_template.h hw/display/pxa2xx_lcd: Remove dead code for non-32-bpp surfaces hw/display/pxa2xx_lcd: Remove dest_width state field hw/display/pxa2xx: Remove use of BITS in pxa2xx_template.h hw/display/pxa2xx: Apply brace-related coding style fixes to template header hw/display/pxa2xx: Apply whitespace-only coding style fixes to template header hw/display/pxa2xx: Inline template header hw/display/pl110_template.h | 120 +------- hw/display/pxa2xx_template.h | 447 ------------------------------ hw/display/pl110.c | 123 ++++++--- hw/display/pxa2xx_lcd.c | 520 ++++++++++++++++++++++++++++++----- 4 files changed, 542 insertions(+), 668 deletions(-) delete mode 100644 hw/display/pxa2xx_template.h -- 2.20.1