drm/i915: Fix rotation setup during plane HW readout
authorImre Deak <imre.deak@intel.com>
Thu, 25 Mar 2021 21:47:44 +0000 (23:47 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 29 Mar 2021 19:54:49 +0000 (22:54 +0300)
commitcc41b0fddb8c2e790255981d140a5297a283be2a
tree733ed980f5d888ad0f08ba9fe4d265d5faa937c7
parent8cef45e2d37e65403a5d169d7be91928705e5a4e
drm/i915: Fix rotation setup during plane HW readout

The HW plane state is cleared and inited after we store the rotation to
it, so store it instead to the uapi state to match what we do with all
other plane state until intel_plane_copy_uapi_to_hw_state() is called.

Rotation for initial FBs is not supported atm, but let's still fix the
plane state setup here.

While at it remove the redundant intel_state->uapi.src/dst init, which
will be done in intel_plane_copy_uapi_to_hw_state().

v2: Remove redundant intel_state->uapi.src/dst init. (Ville)

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-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display.c