drm/i915: Add function to check for linear surfaces
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Fri, 26 Oct 2018 19:38:04 +0000 (12:38 -0700)
committerDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Mon, 29 Oct 2018 19:43:37 +0000 (12:43 -0700)
commit2a11b1b4b689b92d8f0d9d5bd7791c5e96c03d56
treea718eabfa35529599a3ccf76731f99b9571db34f
parenta670be330501243a56c2b4767822874927e7807b
drm/i915: Add function to check for linear surfaces

A framebuffer can comprise surfaces with distinct tiling formats,
making checks against modifier alone insufficient. Make use of a
function to identify a linear surface based on both modifier and color
plane.

v2: Typo fix
v3: remove 'inline' from function definition (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181026193805.11077-1-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/i915/intel_display.c