Re: [PATCH v2] drm: Use state helper instead of CRTC state pointer

2020-11-10 Thread Maxime Ripard
On Thu, Nov 05, 2020 at 08:07:57PM +0100, Thomas Zimmermann wrote: > Hi > > Am 05.11.20 um 17:45 schrieb Maxime Ripard: > > Many drivers reference the crtc->pointer in order to get the current CRTC > > state in their atomic_begin or atomic_flush hooks, which would be the new > > CRTC state in the

Re: [PATCH v2] drm: Use state helper instead of CRTC state pointer

2020-11-10 Thread Liviu Dudau
On Thu, Nov 05, 2020 at 05:45:18PM +0100, Maxime Ripard wrote: > Many drivers reference the crtc->pointer in order to get the current CRTC > state in their atomic_begin or atomic_flush hooks, which would be the new > CRTC state in the global atomic state since _swap_state happened when those > hook

[PATCH v2] drm: Use state helper instead of CRTC state pointer

2020-11-06 Thread Maxime Ripard
Many drivers reference the crtc->pointer in order to get the current CRTC state in their atomic_begin or atomic_flush hooks, which would be the new CRTC state in the global atomic state since _swap_state happened when those hooks are run. Use the drm_atomic_get_new_crtc_state helper to get that st

Re: [PATCH v2] drm: Use state helper instead of CRTC state pointer

2020-11-05 Thread Thomas Zimmermann
Hi Am 05.11.20 um 17:45 schrieb Maxime Ripard: > Many drivers reference the crtc->pointer in order to get the current CRTC > state in their atomic_begin or atomic_flush hooks, which would be the new > CRTC state in the global atomic state since _swap_state happened when those > hooks are run. > >