]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear crtc atomic flags at beginning of transaction
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 9 Apr 2015 17:48:38 +0000 (10:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 07:37:01 +0000 (09:37 +0200)
commitd5df5a5ac274b56bd8e8c597fca6590cbf248482
tree074be95504e4d9b9a5f7d7752db8c51ac0283ccd
parent60bb9d919c85d5617759886196dab429ad5dd1e5
drm/i915: Clear crtc atomic flags at beginning of transaction

Once we have full atomic modeset, these kind of flags should be in a
real intel_crtc_state that's tracked properly.  In the meantime, make
sure we clear out any old flags at the beginning of a transaction so
that we don't wind up seeing leftover flags from old transactions that
were checked, but never went to the commit step.  At the moment, a
failed check or prepare could leave stale flags behind that interfere
with the next atomic transaction.

v2: Just do a memset; the series this patch was originally part of
    placed additional fields into the structure that shouldn't be
    cleared, but that's no longer the case.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_atomic.c