intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/3] drm/i915: Expose the IN_FORMATS_ASYNC blob for all planes
Date: Thu, 27 Nov 2025 07:26:43 +0000	[thread overview]
Message-ID: <3d19cee37e2af9b6310b23660d41b81ed15e55da.camel@intel.com> (raw)
In-Reply-To: <20251112233030.24117-3-ville.syrjala@linux.intel.com>

On Thu, 2025-11-13 at 01:30 +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Since old kernel versions wouldn't expose the IN_FORMATS_ASYNC blob,
> userspace can't really use the absence of the blob to determine
> that async flips aren't supported. Thus it seems better to always
> expose the blob on all planes, whether they support async flips
> or not. The blob will simply not indicate any format+modifier
> combinations as supported on planes that aren't async flip capable.
> 
> Currently we expose the blob for all skl+ universal planes (even
> though we implement async flips only for the first plane on each
> pipe), and i9xx primary planes (for ilk+ we have async flips support,
> for pre-ilk we do not). Complete the full set by also expsosing
> the blob on pre-skl sprite planes, and cursors.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_cursor.c | 1 +
>  drivers/gpu/drm/i915/display/intel_sprite.c | 3 +++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c
> b/drivers/gpu/drm/i915/display/intel_cursor.c
> index a10b2425b94d..63e6a4767aa9 100644
> --- a/drivers/gpu/drm/i915/display/intel_cursor.c
> +++ b/drivers/gpu/drm/i915/display/intel_cursor.c
> @@ -974,6 +974,7 @@ static const struct drm_plane_funcs
> intel_cursor_plane_funcs = {
>  	.atomic_duplicate_state = intel_plane_duplicate_state,
>  	.atomic_destroy_state = intel_plane_destroy_state,
>  	.format_mod_supported = intel_cursor_format_mod_supported,
> +	.format_mod_supported_async =
> intel_plane_format_mod_supported_async,
>  };
>  
>  static void intel_cursor_add_size_hints_property(struct intel_plane
> *plane)
> diff --git a/drivers/gpu/drm/i915/display/intel_sprite.c
> b/drivers/gpu/drm/i915/display/intel_sprite.c
> index 69b6873a6044..9888a2a43fc5 100644
> --- a/drivers/gpu/drm/i915/display/intel_sprite.c
> +++ b/drivers/gpu/drm/i915/display/intel_sprite.c
> @@ -1567,6 +1567,7 @@ static const struct drm_plane_funcs
> g4x_sprite_funcs = {
>  	.atomic_duplicate_state = intel_plane_duplicate_state,
>  	.atomic_destroy_state = intel_plane_destroy_state,
>  	.format_mod_supported = g4x_sprite_format_mod_supported,
> +	.format_mod_supported_async =
> intel_plane_format_mod_supported_async,
>  };
>  
>  static const struct drm_plane_funcs snb_sprite_funcs = {
> @@ -1576,6 +1577,7 @@ static const struct drm_plane_funcs
> snb_sprite_funcs = {
>  	.atomic_duplicate_state = intel_plane_duplicate_state,
>  	.atomic_destroy_state = intel_plane_destroy_state,
>  	.format_mod_supported = snb_sprite_format_mod_supported,
> +	.format_mod_supported_async =
> intel_plane_format_mod_supported_async,
>  };
>  
>  static const struct drm_plane_funcs vlv_sprite_funcs = {
> @@ -1585,6 +1587,7 @@ static const struct drm_plane_funcs
> vlv_sprite_funcs = {
>  	.atomic_duplicate_state = intel_plane_duplicate_state,
>  	.atomic_destroy_state = intel_plane_destroy_state,
>  	.format_mod_supported = vlv_sprite_format_mod_supported,
> +	.format_mod_supported_async =
> intel_plane_format_mod_supported_async,
>  };
>  
>  struct intel_plane *


  reply	other threads:[~2025-11-27  7:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12 23:30 [PATCH 0/3] drm/i915: Async flip stuff Ville Syrjala
2025-11-12 23:30 ` [PATCH 1/3] drm/plane: Fix create_in_format_blob() return value Ville Syrjala
2025-11-13  3:43   ` Murthy, Arun R
2025-11-12 23:30 ` [PATCH 2/3] drm/i915: Expose the IN_FORMATS_ASYNC blob for all planes Ville Syrjala
2025-11-27  7:26   ` Hogander, Jouni [this message]
2025-11-12 23:30 ` [PATCH 3/3] drm/i915: Eliminate one more frequent drm_format_info() Ville Syrjala
2025-11-27  7:27   ` Hogander, Jouni
2025-11-13  0:37 ` ✓ i915.CI.BAT: success for drm/i915: Async flip stuff Patchwork
2025-11-13  4:39 ` ✗ i915.CI.Full: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d19cee37e2af9b6310b23660d41b81ed15e55da.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).