[Intel-gfx] [PATCH] drm/i915/gen11: Expose planar format support on gen11, v2.
Ville Syrjälä
ville.syrjala at linux.intel.com
Mon Oct 22 15:55:19 UTC 2018
On Mon, Oct 22, 2018 at 03:45:14PM +0200, Maarten Lankhorst wrote:
> Now that we implemented support for planar formats on gen11, we can
> finally advertise it.
>
> Changes since v1:
> - Re-add change to skl_plane_has_planar(), was lost in rebase noise.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 2 +-
> drivers/gpu/drm/i915/intel_sprite.c | 6 +-----
> 2 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index d035b04cd654..50b7ae99d0dd 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -14524,7 +14524,7 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
> break;
> case DRM_FORMAT_NV12:
> if (INTEL_GEN(dev_priv) < 9 || IS_SKYLAKE(dev_priv) ||
> - IS_BROXTON(dev_priv) || INTEL_GEN(dev_priv) >= 11) {
> + IS_BROXTON(dev_priv)) {
> DRM_DEBUG_KMS("unsupported pixel format: %s\n",
> drm_get_format_name(mode_cmd->pixel_format,
> &format_name));
> diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
> index 5d04983a28ec..93f4b243b814 100644
> --- a/drivers/gpu/drm/i915/intel_sprite.c
> +++ b/drivers/gpu/drm/i915/intel_sprite.c
> @@ -1838,12 +1838,8 @@ static bool skl_plane_has_fbc(struct drm_i915_private *dev_priv,
> static bool skl_plane_has_planar(struct drm_i915_private *dev_priv,
> enum pipe pipe, enum plane_id plane_id)
> {
> - /*
> - * FIXME: ICL requires two hardware planes for scanning out NV12
> - * framebuffers. Do not advertize support until this is implemented.
> - */
> if (INTEL_GEN(dev_priv) >= 11)
> - return false;
> + return plane_id <= PLANE_SPRITE3;
!is_y_plane() ?
Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> if (IS_SKYLAKE(dev_priv) || IS_BROXTON(dev_priv))
> return false;
> --
> 2.19.1
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list