From patchwork Tue Oct 25 14:00:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9394571 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 7EDDB6077F for ; Tue, 25 Oct 2016 14:00:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71620295B4 for ; Tue, 25 Oct 2016 14:00:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65A27295BA; Tue, 25 Oct 2016 14:00:40 +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 7EF6D295B4 for ; Tue, 25 Oct 2016 14:00:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28B606E70A; Tue, 25 Oct 2016 14:00:34 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0DFCA6E708 for ; Tue, 25 Oct 2016 14:00:33 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id b80so1220471wme.7 for ; Tue, 25 Oct 2016 07:00:32 -0700 (PDT) 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=IFLWA1mk312+BZwWWMSmxuSgYuqUeP7HWjsXk9JxPoo=; b=KgD+G4q1KlIsgnZtJPqz0fH5Z/upYFRC6DEryx8QGZ3Zpa7byG619bruoQY/gpgFaM jUWC5UwtsOnpsFg5jh9G/vV3SF48TN3cJk9hZl65BWiPeRWcxY3pQ5PrUZgHnEt9Ufla HO7UYIbviYormBj5UkzQXDv+ftmKMG/04S0bKiboZ+KOeXC3hBmFXOaoh6pxj0LPGHYU Gv/R7QSDZmc8wKWJ0vpaE4x6UAvXQFlPD0KS7UUtFX4DIIYnGuvxqbgHbqJN2yAFrmmn 5X6kUMYAKP3SzMMc8lA4eX9JuveuVJJ/szsdUoHSvhMNE9cBd4MuVrBY1iRanbCFxEH4 WeVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IFLWA1mk312+BZwWWMSmxuSgYuqUeP7HWjsXk9JxPoo=; b=FOOhhXcKI27k+DxvE8DZeCRdagxrkTR853oBdPyCTdOGteAl3fjcyBmsjvMMJToMza ePA0eLQbshpBNfe8nIx/Kt956/dU0aKwSxHQzb69GH49nSZy/eMqaGlZO6ga2Z6Gp4qv mbfiRNSowcn3XMd0r7c71f7aFO22KMsQ/kqX0mcr6+PUxBgQaec3Ax3R9zmm4NCk1Tr3 EisluS5xEd8WemI5x4kqSPG3dZhxHTMqxGrflvBp4lQYrlON1nUPsGyA3xnvtJOz+t/u 7K1ItpECl78KFDYxuzMuQtioZyY1KJilPHQUkr8Qtv6BGI0yy7nNvp1wQBACtoZV+un1 MxZg== X-Gm-Message-State: ABUngvfrGfeXZMpq7IA4jy13pOF/TVMzVM7L1HMtVOPyJccPUovIiPnvhpdFi7DtGihbcA== X-Received: by 10.28.133.202 with SMTP id h193mr3210646wmd.85.1477404031448; Tue, 25 Oct 2016 07:00:31 -0700 (PDT) Received: from e31.Home ([2a02:c7d:9bd6:b000:3aa4:b23f:bb90:84b]) by smtp.gmail.com with ESMTPSA id f17sm3857627wmf.10.2016.10.25.07.00.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Oct 2016 07:00:30 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Tue, 25 Oct 2016 15:00:23 +0100 Message-Id: <1477404024-2864-1-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 Subject: [Intel-gfx] [PATCH 1/2] drm/i915: Rotated view does not need a fence X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 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 We do not need to set up a fence for the rotated view. Display does not need it and no one can access it. Signed-off-by: Tvrtko Ursulin Cc: Chris Wilson Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_gem_gtt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h index c241d8143255..c79d7ab75003 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.h +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h @@ -251,7 +251,8 @@ static inline bool i915_vma_is_ggtt(const struct i915_vma *vma) static inline bool i915_vma_is_map_and_fenceable(const struct i915_vma *vma) { - return vma->flags & I915_VMA_CAN_FENCE; + return vma->flags & I915_VMA_CAN_FENCE && + vma->ggtt_view.type != I915_GGTT_VIEW_ROTATED; } static inline bool i915_vma_is_closed(const struct i915_vma *vma)