Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/vdsc: Correct the conditions of DSC1.1 and DSC 1.2 for rc params calculation
@ 2025-02-21  4:14 gareth.yu
  2025-02-21  4:08 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: gareth.yu @ 2025-02-21  4:14 UTC (permalink / raw)
  To: intel-gfx
  Cc: intel-xe, shawn.c.lee.intel.om, william.tseng, ankit.k.nautiyal,
	Gareth Yu, Suraj Kandpal, Juha-Pekka Heikkil

From: Gareth Yu <gareth.yu@intel.com>

The condition change is because Gen 14 begins to support DSC 1.2
and need to check if the sink supports DSC1.2

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13719

Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: Juha-Pekka Heikkil <juha-pekka.heikkila@intel.com>
Signed-off-by: Gareth Yu <gareth.yu@intel.com>
---
 drivers/gpu/drm/i915/display/intel_vdsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c
index b355c479eda3..555180e40b72 100644
--- a/drivers/gpu/drm/i915/display/intel_vdsc.c
+++ b/drivers/gpu/drm/i915/display/intel_vdsc.c
@@ -320,7 +320,7 @@ int intel_dsc_compute_params(struct intel_crtc_state *pipe_config)
 	 * upto uncompressed bpp-1, hence add calculations for all the rc
 	 * parameters
 	 */
-	if (DISPLAY_VER(dev_priv) >= 13) {
+	if ((DISPLAY_VER(dev_priv) >= 14) && (vdsc_cfg->dsc_version_minor >= 2)) {
 		calculate_rc_params(vdsc_cfg);
 	} else {
 		if ((compressed_bpp == 8 ||
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-02-24 13:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21  4:14 [PATCH] drm/i915/vdsc: Correct the conditions of DSC1.1 and DSC 1.2 for rc params calculation gareth.yu
2025-02-21  4:08 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-21  4:08 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-21  4:10 ` ✓ CI.KUnit: success " Patchwork
2025-02-21  4:26 ` ✓ CI.Build: " Patchwork
2025-02-21  4:29 ` ✓ CI.Hooks: " Patchwork
2025-02-21  4:30 ` ✓ CI.checksparse: " Patchwork
2025-02-21  4:43 ` [PATCH] " Kandpal, Suraj
2025-02-21  5:05   ` Yu, Gareth
2025-02-21  5:12     ` Kandpal, Suraj
2025-02-21  5:26     ` Kandpal, Suraj
2025-02-21  4:50 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-02-21 19:15 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-24  9:06 ` [PATCH] " Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox