From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH 74/89 v4] drm/i915/skl: Implement queue_flip Date: Tue, 30 Sep 2014 13:19:20 +0100 Message-ID: <20140930121920.GG16626@strange.ger.corp.intel.com> References: <1412010826-15197-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 98E7C6FB66 for ; Tue, 30 Sep 2014 05:19:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Paulo Zanoni Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Tue, Sep 30, 2014 at 09:08:35AM -0300, Paulo Zanoni wrote: > > +static int intel_gen9_queue_flip(struct drm_device *dev, > > + struct drm_crtc *crtc, > > + struct drm_framebuffer *fb, > > + struct drm_i915_gem_object *obj, > > + struct intel_engine_cs *ring, > > + uint32_t flags) > > +{ > > + struct intel_crtc *intel_crtc = to_intel_crtc(crtc); > > + uint32_t plane = 0, stride; > > + int ret; > > + > > + switch(intel_crtc->pipe) { > > I just noticed that the gen7 function checks for intel_crtc->plane > instead of ->pipe. This shouldn't be a problem on Gen 9, right? > > If that's not a problem: Reviewed-by: Paulo Zanoni Indeed, not a problem for all the platforms where crtc->plane == crtc->pipe (and I used pipe because I wanted to forget about that dark past). AFAICS, the only case where crtc->plane != crtc->pipe is when: (HAS_FBC(dev) && INTEL_INFO(dev)->gen < 4) is true (see intel_primary_plane_create()) Thanks for the review! -- Damien