All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	"Tvrtko Ursulin" <tursulin@ursulin.net>
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: Rotated view does not need a fence
Date: Tue, 25 Oct 2016 15:17:21 +0100	[thread overview]
Message-ID: <d4446262-020a-1c51-6818-95e390e754d5@linux.intel.com> (raw)
In-Reply-To: <20161025141222.GQ4617@intel.com>


On 25/10/2016 15:12, Ville Syrjälä wrote:
> On Tue, Oct 25, 2016 at 03:00:23PM +0100, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> 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 <tvrtko.ursulin@intel.com>
>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>
> Broken by 05a20d098db1 ("drm/i915: Move map-and-fenceable tracking to
> the VMA") ?

Wasn't sure if this is considered a breakage. Will add when you made the 
effort to dig out the commit, thanks!

Regards,

Tvrtko

>
>> ---
>>  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)
>> --
>> 2.7.4
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2016-10-25 14:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 14:00 [PATCH 1/2] drm/i915: Rotated view does not need a fence Tvrtko Ursulin
2016-10-25 14:00 ` [PATCH 2/2] drm/i915: Remove two invalid warns Tvrtko Ursulin
2016-10-25 14:09   ` Chris Wilson
2016-10-25 14:12     ` Tvrtko Ursulin
2016-10-25 14:16       ` Tvrtko Ursulin
2016-10-25 14:26       ` Chris Wilson
2016-10-25 16:41         ` [PATCH v2 " Tvrtko Ursulin
2016-10-25 14:07 ` [PATCH 1/2] drm/i915: Rotated view does not need a fence Chris Wilson
2016-10-25 16:40   ` [PATCH v2 " Tvrtko Ursulin
2016-10-25 19:55     ` Chris Wilson
2016-10-25 14:12 ` [PATCH " Ville Syrjälä
2016-10-25 14:17   ` Chris Wilson
2016-10-25 14:23     ` Ville Syrjälä
2016-10-25 14:17   ` Tvrtko Ursulin [this message]
2016-10-25 15:16 ` ✗ Fi.CI.BAT: warning for series starting with [1/2] " Patchwork
2016-10-25 17:54 ` ✗ Fi.CI.BAT: failure for series starting with [v2,1/2] drm/i915: Rotated view does not need a fence (rev3) Patchwork
2016-10-26  7:46 ` ✓ Fi.CI.BAT: success " Patchwork
2016-10-26  8:10   ` Tvrtko Ursulin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4446262-020a-1c51-6818-95e390e754d5@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=tursulin@ursulin.net \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.