drm/i915/dsc: Refactor dsc gen checks
authorSwati Sharma <swati2.sharma@intel.com>
Thu, 10 Nov 2022 09:33:12 +0000 (15:03 +0530)
committerUma Shankar <uma.shankar@intel.com>
Wed, 30 Nov 2022 10:42:19 +0000 (16:12 +0530)
commit8f5c2f6eda4fc7d078a9a1cfddda46ef686c502b
tree4b8f05d598d3c34ef69f2a92cb3a42a27503d6fe
parent8d58bb7991c45f6b60710cc04c9498c6ea96db90
drm/i915/dsc: Refactor dsc gen checks

Use HAS_DSC(__i915) wrapper containing runtime info of has_dsc
member. Platforms supporting dsc has this flag enabled; no need of
DISPLAY_VER() check.

Also, simplified intel_dsc_source_support() based on above changes.

Suggested-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221110093312.13932-1-swati2.sharma@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_vdsc.c
drivers/gpu/drm/i915/i915_drv.h