[PATCH] drm/i915/vdsc: Use the DSC config tables for DSI panels
Suraj Kandpal
suraj.kandpal at intel.com
Thu Feb 27 11:26:54 UTC 2025
Some DSI panel vendors end up hardcoding PPS params because of which
it does not listen to the params sent from the source. We use the
default config tables for DSI panels when using DSC 1.1 rather than
calculate our own rc parameters.
--v2
-Use intel_crtc_has_type [Jani]
--v3
-Add Signed-off-by from William too [Ankit]
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13719
Signed-off-by: Suraj Kandpal <suraj.kandpal at intel.com>
Signed-off-by: William Tseng <william.tseng at intel.com>
---
drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.c b/drivers/gpu/drm/i915/display/intel_vdsc.c
index 6e7151346382..affe9913f1ee 100644
--- a/drivers/gpu/drm/i915/display/intel_vdsc.c
+++ b/drivers/gpu/drm/i915/display/intel_vdsc.c
@@ -320,7 +320,9 @@ 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) >= 13 &&
+ (vdsc_cfg->dsc_version_minor != 1 ||
+ intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DSI))) {
calculate_rc_params(vdsc_cfg);
} else {
if ((compressed_bpp == 8 ||
--
2.34.1
More information about the Intel-gfx
mailing list