drm/i915: Add helper function for getting number of VDSC engines
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Tue, 4 Jul 2023 13:17:57 +0000 (16:17 +0300)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Mon, 10 Jul 2023 11:20:40 +0000 (14:20 +0300)
commit08a3a79ef83f84a60f262b6fb32e45d416629e33
tree00743dc9cf0d4f242b249ea4ba7bac9cc8748323
parent021a62a52fd22c23a2d01cfe816739b5fca10d28
drm/i915: Add helper function for getting number of VDSC engines

Currently we are using dsc_split and bigjoiner variables for determining
amount of VDSC instances, however that might change in future, if we happen
to have more of those.
So lets pack all that logic into single function for convenience, so that
at least this isn't hardcoded throughout the whole VDSC code.

v2: - s/u8/int/ (Jani Nikula)

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230704131758.14024-2-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c
drivers/gpu/drm/i915/display/intel_vdsc.h