OSDN Git Service

drm/i915: Stop looking at plane->state in intel_prepare_plane_fb()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Jan 2020 18:32:25 +0000 (20:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jan 2020 18:22:04 +0000 (20:22 +0200)
commitb2faf669866e715231fc2a43ea69adf97a13ca01
tree8123039f98618cf9983578b423dd4415f0d9f535
parent7d8d2cbce5af5ed5a80d5857f0d01d03aaacef71
drm/i915: Stop looking at plane->state in intel_prepare_plane_fb()

Switch over to using explicit old/new planes states instead of
digging the old state out via plane->state. The main issue is that
plane->state will point to the uapi state which we generally don't
even want to look at.

Also it sets a bad example as using plane->state during commit_tail()
would be a bug. Here we're still holding the modeset locks so it's
actually safe, but best not give people bad ideas.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200110183228.8199-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/display/intel_display.c