drm/i915: Add CCS capability for sprites
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Dec 2017 19:22:28 +0000 (21:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Jan 2018 13:33:58 +0000 (15:33 +0200)
commit77064e2eb83ac6a50563b80c5de3d434d3cf8b34
tree733def0c250aa739b25a85b0f8f8ab9eb007eb4c
parentc21f7904c7d2d89f82dffb5e5b72e698ebfa86a2
drm/i915: Add CCS capability for sprites

Allow sprites to scan out compressed framebuffers.

Since different platforms have a different set of planes that
support CCS let's add a small helper to determine whether a
specific plane supports CCS or not. Currently that information
is spread around in many places, and not all the pieces of
code even agree with each other.

In addition to allowing sprites to scan out compressed fbs,
the other fix here is that we stop rejecting them on pipe C
on CNL.

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-6-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c