]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/dsc: Fix pic_width readout
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 11 Sep 2023 19:37:43 +0000 (01:07 +0530)
committerAnimesh Manna <animesh.manna@intel.com>
Thu, 14 Sep 2023 09:30:19 +0000 (15:00 +0530)
commit3106c34df6ace8a123027b9afdc73bb05d530052
treee95c15c42f2592188e12cb8bd9daa9694d957dd8
parent3072a24c778a7102d70692af5556e47363114c67
drm/i915/dsc: Fix pic_width readout

pic_width when written into the PPS register is divided by the no.
of vdsc instances first but the actual variable that we compare it
to does not change i.e vdsc_cfg->pic_width hence when reading the
register back for pic_width it needs to be multiplied by
num_vdsc_instances rather than being divided.

Fixes: 8b70b5691704 ("drm/i915/vdsc: Fill the intel_dsc_get_pps_config function")
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230911193742.836063-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c