[PATCH 00/19] drm/atomic: Use less confusing iterator names.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Oct 17 12:36:59 UTC 2016


Add for_each_(old,new)_(crtc,connector,plane)_in_state iterators, and
re-use for_each_*_in_state to be a iterator with the old and the new
state.

This will be less confusing than the previous case, in which
for_each_*_in_state could refer to the old or the new state.

The oldnew macro names are temporary in this series, until
all drivers are converted to use the old, new or both states.

This series applies to the topic/drm-misc branch, and will probably
conflict with a lot of other stuff. This is why I post this right
after the merge window.

Compile tested on arm and tested for i915 on x86.

Maarten Lankhorst (19):
  drm/atomic: Add new iterators over all state
  drm/atmel-hlcdc: Use new atomic iterator macros.
  drm/exynos: Use new atomic iterator macros.
  drm/blend: Use new atomic iterator macros.
  drm/atomic: Make add_affected_connectors look at crtc_state.
  drm/atomic: Use new atomic iterator macros.
  drm/atomic: Fix atomic helpers to use the new iterator macros.
  drm/vc4: Use new atomic iterator macros.
  drm/rockchip: Use new atomic iterator macros.
  drm/rcar-du: Use new atomic iterator macros.
  drm/omap: Use new atomic iterator macros
  drm/msm: Use new atomic iterator macros
  drm/imx: Use new atomic iterator macros
  drm/mediatek: Use new atomic iterator macros
  drm/i915: Use new atomic iterator macros in ddi
  drm/i915: Use new atomic iterator macros in fbc
  drm/i915: Use new atomic iterator macros in wm code
  drm/i915: Use new atomic iterator macros in display code
  drm/atomic: Rename atomic oldnew iterator

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |   2 +-
 drivers/gpu/drm/drm_atomic.c                   |  27 +-
 drivers/gpu/drm/drm_atomic_helper.c            | 354 ++++++++++++++-----------
 drivers/gpu/drm/drm_blend.c                    |  22 +-
 drivers/gpu/drm/exynos/exynos_drm_drv.c        |   2 +-
 drivers/gpu/drm/i915/intel_ddi.c               |   4 +-
 drivers/gpu/drm/i915/intel_display.c           | 167 ++++++------
 drivers/gpu/drm/i915/intel_drv.h               |   2 -
 drivers/gpu/drm/i915/intel_fbc.c               |   6 +-
 drivers/gpu/drm/i915/intel_pm.c                |  12 +-
 drivers/gpu/drm/imx/imx-drm-core.c             |  10 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c         |   4 +-
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c        |   4 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c        |   6 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h        |   3 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c      |   4 +-
 drivers/gpu/drm/msm/msm_atomic.c               |  16 +-
 drivers/gpu/drm/omapdrm/omap_drv.c             |   8 +-
 drivers/gpu/drm/rcar-du/rcar_du_kms.c          |   2 +-
 drivers/gpu/drm/rcar-du/rcar_du_plane.c        |   4 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c    |   6 +-
 drivers/gpu/drm/vc4/vc4_kms.c                  |   6 +-
 include/drm/drm_atomic.h                       |  83 ++++--
 include/drm/drm_atomic_helper.h                |   3 +
 24 files changed, 442 insertions(+), 315 deletions(-)

-- 
2.7.4



More information about the dri-devel mailing list