drm/i915: Replace has_bsd/blt/vebox with a mask
authorBen Widawsky <ben@bwidawsk.net>
Tue, 15 Oct 2013 17:02:57 +0000 (10:02 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 09:08:39 +0000 (11:08 +0200)
commit73ae478cdf6ab886b107f39269cbbf6d33ad2abe
tree71bbb196608fa076b6738b089e6b095a0dd0f05e
parent71b76d004f48b4b217a3895bfe058e2e5eefed39
drm/i915: Replace has_bsd/blt/vebox with a mask

I've sent this patch several times for various reasons. It essentially
cleans up a lot of code where we need to do something per ring, and want
to query whether or not the ring exists on that hardware.

It has various uses coming up, but for now it shouldn't be too
offensive.

v2: Big conflict resolution on Damien's DEV_INFO_FOR_EACH stuff

v3: Resolved vebox addition

v4: Rebased after months of disuse. Also made failed ringbuffer init
cleaner.

v5: Remove the init cleaner from v4. There is a better way to do it.
(Chris)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h