drm/i915/dp: Fix DSC enable code to use cpu_transcoder instead of encoder->type
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 21 Aug 2019 21:59:50 +0000 (14:59 -0700)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 22 Aug 2019 21:15:47 +0000 (14:15 -0700)
commitd4c61c4a16decd8ace8660f22c81609a539fccba
tree778df2c20d76c588ab476a6c8c836fd1abad6be8
parentcee508a0bddba1627575de2e41fb8e321fa380a8
drm/i915/dp: Fix DSC enable code to use cpu_transcoder instead of encoder->type

This patch fixes the intel_configure_pps_for_dsc_encoder() function to use
cpu_transcoder instead of encoder->type to select the correct DSC registers
that was wrongly used in the original patch for one DSC register isntance.

Fixes: 7182414e2530 ("drm/i915/dp: Configure i915 Picture parameter Set registers during DSC enabling")
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v5.0+
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190821215950.24223-1-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c