drm/i915: simplify swapin/out swizzle checking a bit
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Sep 2011 19:30:02 +0000 (21:30 +0200)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Oct 2011 21:11:18 +0000 (14:11 -0700)
commit6dacfd2faa398dc5206523ae6a2f8dd037488de8
treed6d092b37368311e7dc7740607479813d2ad377f
parentacc83eb5a1e0ae7dbbf89ca2a1a943ade224bb84
drm/i915: simplify swapin/out swizzle checking a bit

Use the helper function already employed by the pwrite/pread
functions.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c