OSDN Git Service

drm/i915/vdsc: Check slice design requirement
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 9 Mar 2023 06:28:54 +0000 (11:58 +0530)
committerUma Shankar <uma.shankar@intel.com>
Mon, 3 Apr 2023 07:11:12 +0000 (12:41 +0530)
commit16e7a0db6ec9426fea36313b95c36624d983258b
tree9b8e7778bec6bc909609630c8180346c88dfb48c
parent9aeabe1988551f797f6e0cba0e7c2d4549cc3a4b
drm/i915/vdsc: Check slice design requirement

Add function to check if slice design requirements are being
met as defined in Bspec: 49259 in the section
Slice Design Requirement

--v7
-remove full bspec link [Jani]
-rename intel_dsc_check_slice_design_req to
intel_dsc_slice_dimensions_valid [Jani]

--v8
-fix condition to check if slice width and height are
of two
-fix minimum pixel in slice condition

--v10
-condition should be < rather then >= [Uma]

Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309062855.393087-7-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c