]> asedeno.scripts.mit.edu Git - linux.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)
commit406bc5633c6b1c7e7a86230db312ee34e785a8f1
tree877bee3e1e47e59d6fbc32e161c8584c67892b7f
parent65172699a8bd9956705f71fb8b66b1068a1bb5cd
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