drm/i915: Clean up the sprite modifier checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Dec 2017 19:22:27 +0000 (21:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Jan 2018 13:33:58 +0000 (15:33 +0200)
commitc21f7904c7d2d89f82dffb5e5b72e698ebfa86a2
treee32b0c9dc4340ce4d5256cd0debd8983092b176e
parent74ac160b3f9585300bd79e52d560c2da896d6078
drm/i915: Clean up the sprite modifier checks

Split the g4x and snb cases into separate functions to match how we deal
with all other platforms. Also sort the switch cases to match the format
lists we've declared earlier, to ease comparisons.

Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: Daniel Stone <daniels@collabora.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171222192231.17981-5-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c