From patchwork Fri Sep 5 20:04: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: 4854551 Return-Path: X-Original-To: patchwork-dri-devel@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 62A309FC4E for ; Fri, 5 Sep 2014 20:05:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9472D201F7 for ; Fri, 5 Sep 2014 20:05:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C559B201CE for ; Fri, 5 Sep 2014 20:04:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBE176E7BF; Fri, 5 Sep 2014 13:04:57 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by gabe.freedesktop.org (Postfix) with ESMTP id A05676E7CE; Fri, 5 Sep 2014 13:04:56 -0700 (PDT) Received: by mail-qg0-f51.google.com with SMTP id i50so12122518qgf.24 for ; Fri, 05 Sep 2014 13:04: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=9WYaT+4hpN6odiC4GShtyrsYoUxjAer/8QxfakdesWo=; b=IxTc4baOC3pAO2gsmvrnei1dWoQH1kWvi6bj2eDtA6jQL3vR1HWD+Y4NlZEcRNyn7Q TqXGI3eNwRH2lNH7SaaEufNXPuEioQ+53D4ymmu0s4zitOwnO3fa9vCg3lb3iU4gRveE ZlkPsv6HNZP1TFhQtobkO1r3th2bURnr0ZZhJNNovYCvKM3r22uA5qohvI/YNtoYqrVm MOsbwndxJNihCF5AbVJLuareRaiQihWgBiu1YaZ5dLOiZopNf/ZklXN39cU2xhesn42A Am137zahA+6a/Cry+toYC+hF1bk0LUCHvr99OoauEps2IkLfVdQ91QVxtSpz8yzY/lJs m5lQ== X-Received: by 10.224.166.195 with SMTP id n3mr21749009qay.22.1409947496150; Fri, 05 Sep 2014 13:04:56 -0700 (PDT) Received: from localhost.localdomain ([179.110.36.38]) by mx.google.com with ESMTPSA id l10sm1633917qai.4.2014.09.05.13.04.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Sep 2014 13:04:55 -0700 (PDT) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Subject: [PATCH -v4 1/4] drm/i915: create struct intel_plane_state Date: Fri, 5 Sep 2014 17:04:46 -0300 Message-Id: <1409947489-2667-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409947489-2667-1-git-send-email-gustavo@padovan.org> References: <1409947489-2667-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index d727d20..be668ea 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -34,6 +34,7 @@ #include #include #include +#include /** * _wait_for - magic (register) wait macro @@ -237,6 +238,17 @@ typedef struct dpll { int p; } intel_clock_t; +struct intel_plane_state { + struct drm_crtc *crtc; + struct drm_framebuffer *fb; + 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;