drm/i915/display/psr: Calculate selective fetch plane registers
authorJosé Roberto de Souza <jose.souza@intel.com>
Mon, 30 Nov 2020 12:57:50 +0000 (04:57 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 1 Dec 2020 17:14:58 +0000 (09:14 -0800)
commitefab47658a6c0fee7add0e5263e1fbc9a62cfa55
tree395a42791c8de2e1faa03e934d8aa7998d124e01
parent2939eb068289be2d14802deb4db6143bc84cc689
drm/i915/display/psr: Calculate selective fetch plane registers

Add the calculations to set plane selective fetch registers depending
in the value of the area damaged.
It is still using the whole plane area as damaged but that will change
in next patches.

v2:
- fixed new_plane_state->uapi.dst.y2 typo in
intel_psr2_sel_fetch_update()
- do not shifthing new_plane_state->uapi.dst only src is in 16.16 format

BSpec: 55229
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Tested-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201130125750.17820-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c