Re: [PATCH] drm/i915: Fix crtc_y assignment in intel_find_initial_plane_obj()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 13, 2015 at 07:36:08PM +0200, Jani Nikula wrote:
> On Fri, 13 Nov 2015, ville.syrjala@xxxxxxxxxxxxxxx wrote:
> > From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> >
> > Let's set crtc_y to 0 instead of setting src_y twice.
> >
> > Multiple assignments in one statement is a good way to hide bugs.
> > Please don't do that.
> >
> > Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>
> > Fixes: be5651f2d581 ("drm/i915: Update missing properties in find_initial_plane_obj")
> 
> Cc: stable@xxxxxxxxxxxxxxx # v4.3+
> 
> right?

I think the state is kzalloc()ed, so there's probably no real bug here.
Should have mentioned that in the commit message I suppose.

> 
> 
> > Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> > ---
> >  drivers/gpu/drm/i915/intel_display.c | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index d7c8a0f..e3db46d 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -2640,11 +2640,13 @@ intel_find_initial_plane_obj(struct intel_crtc *intel_crtc,
> >  	return;
> >  
> >  valid_fb:
> > -	plane_state->src_x = plane_state->src_y = 0;
> > +	plane_state->src_x = 0;
> > +	plane_state->src_y = 0;
> >  	plane_state->src_w = fb->width << 16;
> >  	plane_state->src_h = fb->height << 16;
> >  
> > -	plane_state->crtc_x = plane_state->src_y = 0;
> > +	plane_state->crtc_x = 0;
> > +	plane_state->crtc_y = 0;
> >  	plane_state->crtc_w = fb->width;
> >  	plane_state->crtc_h = fb->height;
> 
> -- 
> Jani Nikula, Intel Open Source Technology Center

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux