OSDN Git Service

drm/i915/fbdev: Use the PLANE_HAS_FENCE flags from the time of pinning
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 13:42:07 +0000 (13:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 19:03:59 +0000 (19:03 +0000)
commite3c017f15f7ee4c088697d41ee4260986c42a885
tree190927a79af53ef399ce39f1129d2e601e6626c1
parent5935485f8eee356f6bb7b2b1cfb43d69e5c03662
drm/i915/fbdev: Use the PLANE_HAS_FENCE flags from the time of pinning

Use the information about the fence state from the time of pinning to
determine if the fbdev writes are going through a fence. This avoids any
confusion in cases where the fence may appear or disappear unconnected
to the use by fbdev.

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