Re: [PATCH] drm/i915/display: On plane capability check rely on display version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"On" in the commit title seems to be wrong... and also it doesn't
correspond with what the patch is doing.

On Thu, Sep 12, 2024 at 06:24:32PM GMT, 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@xxxxxxxxx>
---
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 I understood correctly, this is relying on the first check in this
function, right?

IS_DISPLAY_VER(i915, md->display_ver.from, md->display_ver.until)


if so, with commit message rewording,

	Reviewed-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>

Lucas De Marchi


-	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;

	return true;
--
2.45.2




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux