drm/i915: Extract tile_row_size for fencing
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jan 2017 16:16:08 +0000 (16:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 08:12:09 +0000 (08:12 +0000)
commit6649a0b6501d78042fd0fffaaefab1aeee27e75d
tree80d82be56d01ea4c0746cda2bd36be697c950167
parent9e65a37872174bd3615b16fa556377ebf5a3f0cd
drm/i915: Extract tile_row_size for fencing

Computing the tile row size of a tiled object (for use with fence
registers) is repeated, so extract it to a common helper.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170109161613.11881-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_fence_reg.c
drivers/gpu/drm/i915/i915_gem_object.h