From: Imre Deak <imre.deak@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/display: On plane capability check rely on display version
Date: Fri, 13 Sep 2024 09:57:07 +0300 [thread overview]
Message-ID: <ZuPiQ7B5jNtqXrhn@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20240912152432.867593-1-juhapekka.heikkila@gmail.com>
On Thu, Sep 12, 2024 at 06:24:32PM +0300, Juha-Pekka Heikkila wrote:
> When check in display code for Xe2 ccs modifiers rely on display version
> along with separation of dgpu and igpu
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> drivers/gpu/drm/i915/display/intel_fb.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
> index c9038d239eb2..25de4ce356bb 100644
> --- a/drivers/gpu/drm/i915/display/intel_fb.c
> +++ b/drivers/gpu/drm/i915/display/intel_fb.c
> @@ -477,12 +477,10 @@ static bool plane_has_modifier(struct drm_i915_private *i915,
> HAS_FLAT_CCS(i915) != !md->ccs.packed_aux_planes)
> return false;
>
> - if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS &&
> - (GRAPHICS_VER(i915) < 20 || !IS_DGFX(i915)))
> + if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS && !IS_DGFX(i915))
> return false;
>
> - if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS &&
> - (GRAPHICS_VER(i915) < 20 || IS_DGFX(i915)))
> + if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS && IS_DGFX(i915))
> return false;
Instead of the above platform checks, the required page size for all planes
could be explicitly specified by adding INTEL_PLANE_CAP_NEED4K_PHYS and
requiring this plane cap for the LNL_CCS modifier.
>
> return true;
> --
> 2.45.2
>
prev parent reply other threads:[~2024-09-13 6:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 15:24 [PATCH] drm/i915/display: On plane capability check rely on display version Juha-Pekka Heikkila
2024-09-12 16:33 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-12 16:33 ` ✓ CI.checkpatch: " Patchwork
2024-09-12 16:35 ` ✓ CI.KUnit: " Patchwork
2024-09-12 16:49 ` ✓ CI.Build: " Patchwork
2024-09-12 16:51 ` ✓ CI.Hooks: " Patchwork
2024-09-12 16:53 ` ✗ CI.checksparse: warning " Patchwork
2024-09-12 17:18 ` ✓ CI.BAT: success " Patchwork
2024-09-12 17:25 ` [PATCH] " Lucas De Marchi
2024-09-13 6:13 ` ✗ CI.FULL: failure for " Patchwork
2024-09-13 6:57 ` Imre Deak [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=ZuPiQ7B5jNtqXrhn@ideak-desk.fi.intel.com \
--to=imre.deak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox