From: Jani Nikula <jani.nikula@linux.intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Subject: Re: [PATCH] drm/i915/display: Don't allow odd ypan or ysize with semiplanar format
Date: Thu, 21 Nov 2024 15:59:15 +0200 [thread overview]
Message-ID: <87v7wgzo0c.fsf@intel.com> (raw)
In-Reply-To: <20241119172544.861424-1-juhapekka.heikkila@gmail.com>
On Tue, 19 Nov 2024, Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> wrote:
> Disable support for odd panning and size in y direction when running
> on display version 3x and using semiplanar formats.
>
> Bspec: 68903
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> drivers/gpu/drm/i915/display/intel_atomic_plane.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
> index d89630b2d5c1..a61eeaa7640c 100644
> --- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
> +++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
> @@ -1030,6 +1030,11 @@ int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state)
> DISPLAY_VERx100(i915) == 3000) &&
> src_x % 2 != 0)
> hsub = 2;
> +
> + if (DISPLAY_VERx100(i915) >= 3000 &&
> + DISPLAY_VERx100(i915) <= 3500)
x100 is only needed if the last two digits are non-zero, right?
IS_DISPLAY_VER()?
BR,
Jani.
> + vsub = 2;
> +
> } else {
> hsub = fb->format->hsub;
> vsub = fb->format->vsub;
--
Jani Nikula, Intel
prev parent reply other threads:[~2024-11-21 13:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 17:25 [PATCH] drm/i915/display: Don't allow odd ypan or ysize with semiplanar format Juha-Pekka Heikkila
2024-11-19 17:27 ` ✓ CI.Patch_applied: success for " Patchwork
2024-11-19 17:27 ` ✓ CI.checkpatch: " Patchwork
2024-11-19 17:28 ` ✓ CI.KUnit: " Patchwork
2024-11-19 17:46 ` ✓ CI.Build: " Patchwork
2024-11-19 17:49 ` ✓ CI.Hooks: " Patchwork
2024-11-19 17:50 ` ✗ CI.checksparse: warning " Patchwork
2024-11-19 18:10 ` ✓ CI.BAT: success " Patchwork
2024-11-19 18:41 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-11-20 4:19 ` ✗ CI.FULL: " Patchwork
2024-11-21 13:59 ` Jani Nikula [this message]
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=87v7wgzo0c.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.