drm/i915: Replace WARNs in fence register writes with extensive asserts
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jan 2017 16:16:10 +0000 (16:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 08:12:20 +0000 (08:12 +0000)
commit0d4e8f1dbcab9cf68fec951e7e5dbb6d5d8e3425
tree15f1f28b6851695585eeef058a5883bee03e8174
parent5b30694b474d00f8588fa367f9562d8f2e4c7075
drm/i915: Replace WARNs in fence register writes with extensive asserts

All of these conditions are prechecked by i915_tiling_ok() before we
allow setting the tiling/stride on the object and so we should never
fail asserting those conditions before writing the register.

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