drm/i915: factor out compute_config from __intel_set_mode v3
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 5 Nov 2014 22:26:06 +0000 (14:26 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:29:21 +0000 (10:29 +0100)
commit7f27126ea3db6ade886f18fd39caf0ff0cd1d37f
tree3a712edf12b6865c16f6aa4c5ed74d572865e73b
parent260d8f98ef9deb71bee4d88f72cd90afe023b08a
drm/i915: factor out compute_config from __intel_set_mode v3

This allows us to calculate the full pipe config before we do any mode
setting work.

v2:
  - clarify comments about global vs. per-crtc mode set (Ander)
  - clean up unnecessary pipe_config = NULL setting (Ander)
v3:
  - fix pipe_config handling (alloc in compute_config, free in set_mode) (Jesse)
  - fix arg order in set_mode (Jesse)
  - fix failure path of set_config (Ander)

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c