From: Konrad Rzeszutek Wilk Subject: Re: [PATCH 06/25] vmwgfx: Some comments and BUG_ON Date: Thu, 29 Sep 2011 17:42:19 -0400 Message-ID: <20110929214219.GA9091@phenom.oracle.com> References: <1317219021-4155-1-git-send-email-thellstrom@vmware.com> <1317219021-4155-7-git-send-email-thellstrom@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by gabe.freedesktop.org (Postfix) with ESMTP id 958839F5EB for ; Thu, 29 Sep 2011 14:42:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1317219021-4155-7-git-send-email-thellstrom@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Thomas Hellstrom Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Wed, Sep 28, 2011 at 04:10:02PM +0200, Thomas Hellstrom wrote: > From: Jakob Bornecrantz > > Signed-off-by: Jakob Bornecrantz > Reviewed-by: Thomas Hellstrom > --- > drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c > index df1c7c5..207f595 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c > @@ -680,6 +680,9 @@ static int vmw_resize_cmd_bounce(struct vmw_sw_context *sw_context, > * Creates a fence object and submits a command stream marker. > * If this fails for some reason, We sync the fifo and return NULL. > * It is then safe to fence buffers with a NULL pointer. > + * > + * If @p_handle is not NULL @file_priv must also not be not NULL. Creates not be not? I think you meant: "must also not be NULL" > + * a userspace handle if @p_handle is not NULL, does not if otherwise. "does not if otherwise".. how about ", otherwise not." > */ > > int vmw_execbuf_fence_commands(struct drm_file *file_priv, > @@ -691,6 +694,8 @@ int vmw_execbuf_fence_commands(struct drm_file *file_priv, > int ret; > bool synced = false; > > + /* p_handle implies file_priv. */ > + BUG_ON(p_handle != NULL && file_priv == NULL); > > ret = vmw_fifo_send_fence(dev_priv, &sequence); > if (unlikely(ret != 0)) { > -- > 1.7.4.4 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel