drm/i915: use render gen to switch ring irq functions
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 30 Mar 2012 18:24:34 +0000 (20:24 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 9 Apr 2012 16:04:07 +0000 (18:04 +0200)
commit901781b997570e55af950348d7cd5cef64fb6d7c
tree7f7cb39036871895b2db1eade7e47276a3d49394
parentfad2596acb5e4e028266e820fd8b47e88030a4ca
drm/i915: use render gen to switch ring irq functions

Top-level interrupt bits are usually found in the display block. It
therefore makes sense to use HAS_PCH_SPLIT in i915_irq.c

But the irq stuff in intel_ring.c only concerns itself with render
core/gt-level interrupt sources. It therefore makes more sense to
switch based on gpu gen.

Kills a vlv special case.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c