From patchwork Tue Sep 2 19:23:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 4827891 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 969C99F314 for ; Tue, 2 Sep 2014 19:24:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB6C9201CD for ; Tue, 2 Sep 2014 19:23:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 05837201BC for ; Tue, 2 Sep 2014 19:23:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E4E4B6E3A9; Tue, 2 Sep 2014 12:23:57 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-yh0-f54.google.com (mail-yh0-f54.google.com [209.85.213.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 901216E338; Tue, 2 Sep 2014 12:23:56 -0700 (PDT) Received: by mail-yh0-f54.google.com with SMTP id b6so4578795yha.41 for ; Tue, 02 Sep 2014 12:23:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MLCAE1fD8+dCLiLau4Xt0i/1y6wtKcMAuLZX85T6e/o=; b=dkUXyS6iyJXJib1i77E5LBU7lE3b1zU85rlv1YT+iyTtEtYH8nuZOdtntjFT2U9uOL EtIW/KnrsXfP0LR0KT2idD05fxF3pY9i1uNXFEO9X0acNb4PAplQhmgZNlQ9HlMkB418 n+9/qe8zG1LDO9kUs5Avqm8dqWUAzgvMjN+g1b+jVjg5BYFEsZ6Kfu40gB+3/qtM8/cW LYkpZG5Y5xBnlfdhpCHJHVqXuCn+8f2OzONrmhxOSGPGeoj3+sf1VXY1gya1IwhCEKbN JXKBazN0Dbho8iKZ9ab0Jo2c6GszsZVfoGxUShocYhlGNb0u+wqHtLJfnGQFr6leMbOM yGiA== X-Received: by 10.236.2.34 with SMTP id 22mr3587565yhe.161.1409685836071; Tue, 02 Sep 2014 12:23:56 -0700 (PDT) Received: from localhost.localdomain (200-158-3-16.dsl.telesp.net.br. [200.158.3.16]) by mx.google.com with ESMTPSA id d36sm6100071yho.20.2014.09.02.12.23.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Sep 2014 12:23:54 -0700 (PDT) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Date: Tue, 2 Sep 2014 16:23:46 -0300 Message-Id: <1409685827-29067-3-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409685827-29067-1-git-send-email-gustavo@padovan.org> References: <1409685827-29067-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH -v2 3/4] drm/i915: create struct intel_plane_state X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan This new struct will be the storage of src and dst coordinates between the check and commit stages of a plane update. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/i915/intel_drv.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 4ab0d92..59c1675 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -33,6 +33,7 @@ #include #include #include +#include /** * _wait_for - magic (register) wait macro @@ -227,6 +228,25 @@ typedef struct dpll { int p; } intel_clock_t; +struct intel_plane_state { + struct drm_crtc *crtc; + struct drm_framebuffer *fb; + int crtc_x; + int crtc_y; + unsigned int crtc_w; + unsigned int crtc_h; + uint32_t src_x; + uint32_t src_y; + uint32_t src_w; + uint32_t src_h; + struct drm_rect src; + struct drm_rect dst; + struct drm_rect clip; + struct drm_rect orig_src; + struct drm_rect orig_dst; + bool visible; +}; + struct intel_plane_config { bool tiled; int size;