summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_fb.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-10-03 14:15:44 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-10-03 18:45:41 +0300
commitd5c45330c8986aff945de997383e19b5b7a85b9a (patch)
tree2020229255d2352ea9a4839ee9142b3f61594c3e /drivers/gpu/drm/i915/display/intel_fb.h
parent334810f82024815283a6e7febd3d2de1fed6c232 (diff)
downloadlinux-d5c45330c8986aff945de997383e19b5b7a85b9a.tar.gz
linux-d5c45330c8986aff945de997383e19b5b7a85b9a.tar.bz2
linux-d5c45330c8986aff945de997383e19b5b7a85b9a.zip
drm/i915: Simplify modifier lookup in watermark code
Replace the huge modifier lists in the watermark code with a few calls to intel_fb.c. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221003111544.8007-7-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fb.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_fb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fb.h b/drivers/gpu/drm/i915/display/intel_fb.h
index 12386f13a4e0..4662b812b934 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.h
+++ b/drivers/gpu/drm/i915/display/intel_fb.h
@@ -29,6 +29,7 @@ struct intel_plane_state;
#define INTEL_PLANE_CAP_TILING_Yf BIT(5)
#define INTEL_PLANE_CAP_TILING_4 BIT(6)
+bool intel_fb_is_tiled_modifier(u64 modifier);
bool intel_fb_is_ccs_modifier(u64 modifier);
bool intel_fb_is_rc_ccs_cc_modifier(u64 modifier);
bool intel_fb_is_mc_ccs_modifier(u64 modifier);