drm/i915/vdsc: Add a check for dsc split cases
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 28 Aug 2023 05:42:55 +0000 (11:12 +0530)
committerAnimesh Manna <animesh.manna@intel.com>
Tue, 5 Sep 2023 09:10:07 +0000 (14:40 +0530)
commit611977c3e4048a7cda42a8e87dec1672f15f763b
treea429afaa9d9668c5e62323c47ea2521e75a16f56
parent76342fce58a58e3c8326a870adfb6b435ecd9abb
drm/i915/vdsc: Add a check for dsc split cases

In intel_vdsc_get_config we only read the primary dsc engine register
and not take into account if the other dsc engine is in use and if
both registers have the same value or not this patche fixes that by
adding a check.

--v3
-Remove superfluos new line [Jani]
-Fix register naming [Jani]

--v5
-pps_temp0/pps_temp1 can be assigned where they are used [Ankit]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230828054300.560559-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c