drm/i915: Skip fence installation for objects with rotated views (v4)
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Fri, 30 Oct 2015 01:54:38 +0000 (18:54 -0700)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 Nov 2015 12:00:29 +0000 (14:00 +0200)
commit9807216f585fc69a6cad3668414a2936a84444c8
tree0b3fc9abd085a8ba8ec7e558d915030461cda451
parent9be64eee3a87dc03218ca9a12834d1150a57b8a8
drm/i915: Skip fence installation for objects with rotated views (v4)

While pinning a fb object to the display plane, only install a fence
if the object is using a normal view. This corresponds with the
behavior found in i915_gem_object_do_pin() where the fencability
criteria is determined only for objects with normal views.

v2:
Look at the object's map_and_fenceable flag to determine whether to
install a fence or not (Chris).

v3:
Pin and unpin a fence only if the current view type is normal.

v4:
Extend the "view type is normal" check for pin_fence as well.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446170078-20792-1-git-send-email-vivek.kasireddy@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c