[RFC PATCH 17/37] DRM: Atomic: Use pointer for mode in CRTC state

2015-03-20 Thread Daniel Vetter
On Thu, Mar 19, 2015 at 04:33:16AM +, Daniel Stone wrote: > Holding a pointer to the mode, rather than an embed, allows us to get > towards sharing refcounted modes. > > XXX: atomic_destroy_state does _not_ seem to be optional - so we should > remove any fallback paths which compensate

[RFC PATCH 17/37] DRM: Atomic: Use pointer for mode in CRTC state

2015-03-19 Thread Daniel Stone
Holding a pointer to the mode, rather than an embed, allows us to get towards sharing refcounted modes. XXX: atomic_destroy_state does _not_ seem to be optional - so we should remove any fallback paths which compensate for its lack! the crtc_state->mode handling is particularly ugly