]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64e2ce42be6cb79d6d440e79110c1c9bbe6b3ca8
tree395a42791c8de2e1faa03e934d8aa7998d124e01
parent5dd982608995b43169f0abc2baecd3922e194390
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