]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Limit fb x offset due to fences
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Jan 2016 16:41:24 +0000 (18:41 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Aug 2016 15:34:12 +0000 (18:34 +0300)
commit0081a9f9e993dedca1681b21e6716a633c738d49
tree4bd034ab7f7b889dc05b6d951e5b39068c845e5f
parentd33e8db140eb2a7f1a6fe08d0bcdbd685e73c69f
drm/i915: Limit fb x offset due to fences

If there's a fence on the object it will be aligned to the start
of the object, and hence CPU rendering to any fb that straddles
the fence edge will come out wrong due to lines wrapping at the
wrong place.

We have no API to manage fences on a sub-object level, so we can't
really fix this in any way. Additonally gen2/3 fences are rather
coarse grained so adjusting the offset migth not even be possible.

Avoid these problems by requiring the fb layout to agree with the
fence layout (if present).

v2: Rebase due to i915_gem_object_get_tiling() & co.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470821001-25272-8-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c