From patchwork Thu Jun 6 22:27:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10980521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 375DB924 for ; Thu, 6 Jun 2019 22:28:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2564A1FFE4 for ; Thu, 6 Jun 2019 22:28:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 197FD27EE2; Thu, 6 Jun 2019 22:28:13 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 CAC3C1FFE4 for ; Thu, 6 Jun 2019 22:28:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 664DD899F2; Thu, 6 Jun 2019 22:28:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by gabe.freedesktop.org (Postfix) with ESMTPS id 05043899E8 for ; Thu, 6 Jun 2019 22:28:07 +0000 (UTC) Received: by mail-ed1-x543.google.com with SMTP id p26so5574353edr.2 for ; Thu, 06 Jun 2019 15:28:06 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=JcC10ZyoZDavWbmDXKEQr+W/p2OzkIC6q2jW3fuhNlA=; b=CT8l3HLG4IPAThrjR9W1FlaY+yog/lMVqZY7QKyLmjkYQBL/e+iPbFHemgk9d5XorH zIWY079njwOreiIIjxnxBn6TC3A81es85MIT8k3+DJPjWgtRAfPkFZz8vkHuTvJb8UMy XUt9ogPXm6vubWrJHQxu2vMoe6n9pgnIHBOCgXE0oJ8IEopkq5Qe6aeT+J9Ali7YZBRq 4uHMgJ33K+i9GfkMcYvTLxzxez3oGmF2B+nQcKGdMPz3qv6FK70I+0hPDpsmjhGO7/X5 U5RkeR1rR+iIlKJ9w4iAH1zQT6MEz0bpSG6BJrNPyyaPVwgs1NNhV3A+mcGp7hdCXlyn yH0g== X-Gm-Message-State: APjAAAXRMryOhR7p1vBJpUBHpC6GhIdGdXIL6Z52eXiUnjUbcIeeemZt wFjXNeLhMO6Oydig8lTs1yMDgJkyVNE= X-Google-Smtp-Source: APXvYqymlEsL/nDKLYS4y8FANG1/CQzU63z6G7ewhxBdVhtYhDrm0O+3b6R/2PGZM77SnRn7S+Nqlw== X-Received: by 2002:a17:906:63c1:: with SMTP id u1mr43566484ejk.173.1559860085411; Thu, 06 Jun 2019 15:28:05 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id z10sm54228edl.35.2019.06.06.15.28.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 15:28:04 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 04/10] drm/vkms: Move format arrays to vkms_plane.c Date: Fri, 7 Jun 2019 00:27:45 +0200 Message-Id: <20190606222751.32567-5-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190606222751.32567-1-daniel.vetter@ffwll.ch> References: <20190606222751.32567-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JcC10ZyoZDavWbmDXKEQr+W/p2OzkIC6q2jW3fuhNlA=; b=hsAlW3OsRIjOtrES24cBdupyQ7buKf+X4op5wHPbYg/xTZntZsTtqarOblvbEZblN1 lyjwJL/+G0zETnrwbEyv4UpB4aFnUnxr/VdN7JUisgqqFRw9cfOFbW34kd1w5npoQ9zU xW1jYHZav6Wa4EZiNJo5H6F+gucumNJWw/f6E= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Haneen Mohammed , Rodrigo Siqueira , Daniel Vetter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP No need to have them multiple times. Signed-off-by: Daniel Vetter Cc: Rodrigo Siqueira Cc: Haneen Mohammed Cc: Daniel Vetter Reviewed-by: Rodrigo Siqueira Tested-by: Rodrigo Siqueira --- drivers/gpu/drm/vkms/vkms_drv.h | 8 -------- drivers/gpu/drm/vkms/vkms_plane.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_drv.h b/drivers/gpu/drm/vkms/vkms_drv.h index 43d3f98289fe..2a35299bfb89 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.h +++ b/drivers/gpu/drm/vkms/vkms_drv.h @@ -20,14 +20,6 @@ extern bool enable_cursor; -static const u32 vkms_formats[] = { - DRM_FORMAT_XRGB8888, -}; - -static const u32 vkms_cursor_formats[] = { - DRM_FORMAT_ARGB8888, -}; - struct vkms_crc_data { struct drm_framebuffer fb; struct drm_rect src, dst; diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c index 0e67d2d42f0c..0fceb6258422 100644 --- a/drivers/gpu/drm/vkms/vkms_plane.c +++ b/drivers/gpu/drm/vkms/vkms_plane.c @@ -6,6 +6,14 @@ #include #include +static const u32 vkms_formats[] = { + DRM_FORMAT_XRGB8888, +}; + +static const u32 vkms_cursor_formats[] = { + DRM_FORMAT_ARGB8888, +}; + static struct drm_plane_state * vkms_plane_duplicate_state(struct drm_plane *plane) {