]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Store the normal view FB pitch in FB's intel_fb_view
authorImre Deak <imre.deak@intel.com>
Thu, 25 Mar 2021 21:48:00 +0000 (23:48 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 29 Mar 2021 19:58:12 +0000 (22:58 +0300)
commite72fbdf5c9859b275391e334560969b9be8f2dba
tree5d6b9d97e7ee28543ed11efa625ce202afd47ae8
parent4642fef26d40fd5457f7984100192b179389d6ee
drm/i915: Store the normal view FB pitch in FB's intel_fb_view

Instead of special casing getting the pitch for the normal view, store
it during FB creation to the FB normal view struct and retrieve it from
there during atomic check, as it's done for the rotated view. A
follow-up patch does the same for a new FB remapped view.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325214808.2071517-18-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c