[Intel-gfx] [PATCH 02/26] drm/i915: Use drm_atomic_get_existing_plane_state

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon May 30 13:10:18 UTC 2016


Op 29-05-16 om 20:34 schreef Daniel Vetter:
> We want to encapsulate the drm_atomic_state internals.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> ---
>  drivers/gpu/drm/i915/intel_atomic.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c
> index 50ff90aea721..3e6d9ff8840a 100644
> --- a/drivers/gpu/drm/i915/intel_atomic.c
> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> @@ -223,7 +223,9 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
>  				continue;
>  			}
>  
> -			plane_state = to_intel_plane_state(drm_state->plane_states[i]);
> +			plane_state = to_intel_plane_state(
> +				drm_atomic_get_existing_plane_state(drm_state,
> +								    plane));
>  			scaler_id = &plane_state->scaler_id;
>  		}
>  

Use intel_atomic_get_existing_plane_state with intel_plane. :)



More information about the dri-devel mailing list