From: Jesse Barnes Subject: Updated fence patches Date: Tue, 2 Sep 2014 14:32:39 -0700 Message-ID: <1409693561-1669-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from gproxy1-pub.mail.unifiedlayer.com (gproxy1-pub.mail.unifiedlayer.com [69.89.25.95]) by gabe.freedesktop.org (Postfix) with SMTP id 2842E89E69 for ; Tue, 2 Sep 2014 14:39:54 -0700 (PDT) Received: from [67.161.37.189] (port=33524 helo=jbarnes-t420.intel.com) by box514.bluehost.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1XOvhM-0005gs-6p for intel-gfx@lists.freedesktop.org; Tue, 02 Sep 2014 15:33:08 -0600 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This set includes a sketch of how we might allow fences to be emitted directly within a batch buffer. This gets rid of the need for flushing around fence operations, which can be a win, and lets userspace more finely control things. If it looks reasonable, we could drop the separate ioctl and just use this instead... Alternately, I could still add the "return a fence from execbuf" behavior to the main execbuf ioctl, to represent completion for the whole thing. And per the last comments, we still want a way to pass an array of fences in with a given operation, so it can be properly ordered by the scheduler. Jesse