From patchwork Thu Feb 22 11:16:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 10235189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EF6C60224 for ; Thu, 22 Feb 2018 11:17:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F29B28B8D for ; Thu, 22 Feb 2018 11:17:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3275028B92; Thu, 22 Feb 2018 11:17:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C363D28B8D for ; Thu, 22 Feb 2018 11:17:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99A276ED31; Thu, 22 Feb 2018 11:17:10 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 804956ED31 for ; Thu, 22 Feb 2018 11:17:09 +0000 (UTC) Received: by mail-wr0-x242.google.com with SMTP id p104so10128929wrc.12 for ; Thu, 22 Feb 2018 03:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=BFTXkXfxb4czgXo8wXr0oM+cRbzb8VvG2m6ROk4ohZQ=; b=THV0FI846vtWvGsj9bwep49EdGLk79nbPh201a6DpYKxhTX3eRaa7w6v1nD5MtBTs4 gwfd661DrxoLPuRCvJxRaMU5sLe8RhM7Zv235rNpmEKAP0oCo5beyxWUn59g9/ctVN6g 2V4bPK/Boy62s8rKnAd4uc9++f6NjVXgIC/VQIQ/tHeeZug9zRukCdJ0bBaLlqbSDb46 Sq+ZlZ/keRZkfG2BWE8bUGnlrP+LCliZ71QjU4E4yCxEoVtrtxwZTKHyYifzHV8W2zUX hcHkrsBews1pjtw7esrYzWfr2faDpkkeaFkCkf6uDo4fZuq8hzt0C1v4UN3uDWQzY0f+ On5g== 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; bh=BFTXkXfxb4czgXo8wXr0oM+cRbzb8VvG2m6ROk4ohZQ=; b=F6z+u0Rp4qyXG1rZi1fAcHMc8ohrb6Du53yqAPemQzkK6cguMbmwuswfSWcVQLv0Rv DNxGThWaF8TurGTQPXIQFq9agOXStwrwEbbDCSIWI0e365/lqonpXFmWqWD4ZDYIONfN OnEx7zI+ON/UNR7497sm1r3XnDePJKwlameKYL5lUNKfYItK2PHKZKGc30V8ZLwEqRtu 5G+4C3ZK5pKiN0xewxhdYttTp3qma55TyCXPP97uT8F3r3xXMhPVq7ovFtQCoGXkl5Ly TGZrKrWrkJGXS++21cGg/yLE6+nQiF3RbOsp9Wd+Pa+a49LgEx1VHohLVhruHhxk6vIi HLNw== X-Gm-Message-State: APf1xPDcKxr7DZC1W+CieZGUtnmPhJOGqTwKYfte3SJh7CVONBz+TwHf EH7YM90MKjg6H/KqalFjB08wZZRa X-Google-Smtp-Source: AH8x227owANecbvyp/+JKCluRezLRhoYdad7HYXbYROtOlYxBFDBPptcSuW89/F+GZb0jthNTKeEVg== X-Received: by 10.223.160.147 with SMTP id m19mr6225497wrm.32.1519298227825; Thu, 22 Feb 2018 03:17:07 -0800 (PST) Received: from localhost.localdomain ([95.146.144.186]) by smtp.gmail.com with ESMTPSA id s18sm4701469wrg.3.2018.02.22.03.17.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 03:17:07 -0800 (PST) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Thu, 22 Feb 2018 11:16:58 +0000 Message-Id: <20180222111658.4999-1-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.14.1 Subject: [Intel-gfx] [PATCH] drm/i915: Move page sizes out of the 8-bit sandwich X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Slightly smaller code and a bit more logical layout. Signed-off-by: Tvrtko Ursulin Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_device_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_device_info.h b/drivers/gpu/drm/i915/intel_device_info.h index 71fdfb0451ef..8904ad87bf37 100644 --- a/drivers/gpu/drm/i915/intel_device_info.h +++ b/drivers/gpu/drm/i915/intel_device_info.h @@ -137,14 +137,14 @@ struct intel_device_info { enum intel_platform platform; u32 platform_mask; + unsigned int page_sizes; /* page sizes supported by the HW */ + u32 display_mmio_offset; u8 num_pipes; u8 num_sprites[I915_MAX_PIPES]; u8 num_scalers[I915_MAX_PIPES]; - unsigned int page_sizes; /* page sizes supported by the HW */ - #define DEFINE_FLAG(name) u8 name:1 DEV_INFO_FOR_EACH_FLAG(DEFINE_FLAG); #undef DEFINE_FLAG