drm/i915: Treat fb->offsets[] as a raw byte offset instead of a linear offset
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Aug 2017 19:10:49 +0000 (22:10 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 30 Aug 2017 17:03:39 +0000 (20:03 +0300)
commit303ba6955499ef757ca5ddcc816e370cc7581cb5
tree028ed31aff7dac74ba0ee0ed38179faef8d8e227
parentb69a784f5e2308d6360a76eceae450e96751f3e4
drm/i915: Treat fb->offsets[] as a raw byte offset instead of a linear offset

Userspace wants to treat fb->offsets[] as raw byte offsets into the gem
bo. Adjust the kernel code to match.

Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: Daniel Stone <daniels@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170824191100.10949-2-ville.syrjala@linux.intel.com
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Fixes: 2e2adb05736c ("drm/i915: Add render decompression support")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c