diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-09-13 22:31:54 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-09-16 14:44:03 +0300 |
commit | d1d23d7f4be6a619af4ab729a12856e9cbded985 (patch) | |
tree | 653d01e67bc9a2ca193d0358dd257f04752f5c4b /drivers/gpu/drm/i915/display/intel_sprite.h | |
parent | a2b69ea4d26d1077b00924ff34e46b28d997aae2 (diff) | |
download | linux-d1d23d7f4be6a619af4ab729a12856e9cbded985.tar.gz linux-d1d23d7f4be6a619af4ab729a12856e9cbded985.tar.bz2 linux-d1d23d7f4be6a619af4ab729a12856e9cbded985.zip |
drm/i915: Replace is_planar_yuv_format() with drm_format_info_is_yuv_semiplanar()
There's a helper in drm_fourcc.h these days to check of we're dealing
with a two plane YUV format. Make use if it.
Also s/plane/color_plane/ in skl_plane_relative_data_rate() to reduce
the confusion.
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190913193157.9556-2-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_sprite.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_sprite.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_sprite.h b/drivers/gpu/drm/i915/display/intel_sprite.h index 093a2d156f1e..229336214f68 100644 --- a/drivers/gpu/drm/i915/display/intel_sprite.h +++ b/drivers/gpu/drm/i915/display/intel_sprite.h @@ -17,7 +17,6 @@ struct drm_i915_private; struct intel_crtc_state; struct intel_plane_state; -bool is_planar_yuv_format(u32 pixelformat); int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode, int usecs); struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv, |