]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid computing tile_row_size() for untiled objects
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jul 2018 10:47:59 +0000 (11:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jul 2018 11:30:24 +0000 (12:30 +0100)
commit2e7b4d504248785caf57d6a286e753eb24990f7f
tree877bee3e1e47e59d6fbc32e161c8584c67892b7f
parenta4cc22ff452caf80e1f053a08a16940f576293b4
drm/i915: Avoid computing tile_row_size() for untiled objects

i915_gem_tile_height() asserts that the object is tiled, but inside the
error printer for the selftest we computed the row size regardless of
tiling, tripping over the assert.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180726104759.8684-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_object.c