]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1508e4c5cd4a65cf5fa852b3b300408eb8565dc2
treee32b0c9dc4340ce4d5256cd0debd8983092b176e
parent8f061d87f6cab29e2fcb8324f9f024bce47a21d2
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