drm/i915: Organize Fence registers for future enablement.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 4 Dec 2014 14:48:10 +0000 (06:48 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Dec 2014 17:17:54 +0000 (18:17 +0100)
commitce38ab05931484e72f776d04bb5d27c82744dd24
tree18717887b16ffa5e08cb429b2c7f32d40f32f27b
parente2c719b75c8c186deb86570d8466df9e9eff919b
drm/i915: Organize Fence registers for future enablement.

Let's be optimistic that for future platforms this will remain the same
and reorg a bit.
This reorg in if blocks instead of switch make life easier for future
platform support addition.

v2: Jani pointed out I was missing reg_830 for some gen3 platforms. So let's make
    this platforms subcases of Gen checks.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gpu_error.c