From patchwork Thu Jun 21 12:16:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10479791 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 456D860230 for ; Thu, 21 Jun 2018 12:16:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35B8C29238 for ; Thu, 21 Jun 2018 12:16:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A5A52923F; Thu, 21 Jun 2018 12:16:34 +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, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, 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 DD9D329238 for ; Thu, 21 Jun 2018 12:16:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1346E6E2DE; Thu, 21 Jun 2018 12:16:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x241.google.com (mail-qk0-x241.google.com [IPv6:2607:f8b0:400d:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3D3576E2DE for ; Thu, 21 Jun 2018 12:16:31 +0000 (UTC) Received: by mail-qk0-x241.google.com with SMTP id j80-v6so1571209qke.9 for ; Thu, 21 Jun 2018 05:16:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kw7iaCsSbXIspJ0qQkdeH0KLXZ57xRTWTPknVwWkFgs=; b=jvw242erRp6XxzFypG/tPh26qert3tkkDK12+iPmQY+jTRlYeoIYNmD44j9ka4rYMR NGRl8BbvYwqgsc11nbiea8KkWxDRxUQt2/LlgFUgE7XcXWKV9hIXmEwTN2KVx8oLgFEc +YU03iOBP4RF6VCjiREpxJXNekEQO32nF7C6zZkPQWEGOe3iqx5DwWE+RmxbmXzzA0Uv zm6PRO8R2KsCWWwb0snnbCyWo/bRbvrcVbzS/oYqJTWKpKeXra3BrtkpPid6mYjDlGV9 5GeSRQfx2QyiB1GxEKxEbBLujCG+U62ZB7g0ephr3VO95WC9Qnf3f+/Zi8mxEU0NKU49 AwbQ== X-Gm-Message-State: APt69E0i2TDDPTyJCKxYza7hxh1mIVjVhcvZihsbimRzwxxIzheUIhPd jt5ZYhqSPEiPDMnx4wP30ZI= X-Google-Smtp-Source: ADUXVKIBhvA36Q7VKEvakTz5tkgR+GAoFhoqo5UPWBbZ4Uqz/wrC+Jmj7wjtKXNA3Jry6ILUCY3EbA== X-Received: by 2002:a37:9602:: with SMTP id y2-v6mr20657473qkd.295.1529583390368; Thu, 21 Jun 2018 05:16:30 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id s126-v6sm2848470qkd.24.2018.06.21.05.16.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jun 2018 05:16:29 -0700 (PDT) Date: Thu, 21 Jun 2018 09:16:27 -0300 From: Rodrigo Siqueira To: Gustavo Padovan , Sean Paul , Daniel Vetter , Haneen Mohammed Subject: [PATCH V2 2/5] drm/vkms: Add helper for framebuffer create Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180512 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: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the basic hook required to create framebuffer which is necessary for providing some of the vkms features. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vkms/vkms_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index 638bab9083b5..cc046fff985c 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include "vkms_drv.h" #define DRIVER_NAME "vkms" @@ -68,6 +70,7 @@ static struct drm_driver vkms_driver = { }; static const struct drm_mode_config_funcs vkms_mode_funcs = { + .fb_create = drm_gem_fb_create, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };