OSDN Git Service

intel: Support passing of explicit fencing from execbuf
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 20 Aug 2016 11:38:46 +0000 (12:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jan 2017 20:00:38 +0000 (20:00 +0000)
commitc4b00767a7f3b2d00c7b1bc61e2b4d13f90c10ca
treee5b6d78efad05971890b5df9f937ba7a2055f225
parent1bd35da961312aeb33fc7af586fa0d1f207a2d5f
intel: Support passing of explicit fencing from execbuf

Allow the caller to pass in an fd to an array of fences to control
serialisation of the execbuf in the kernel and on the GPU, and in return
allow creation of a fence fd for signaling the completion (and flushing)
of the batch. When the returned fence is signaled, all writes to the
buffers inside the batch will be complete and coherent from the cpu, or
other consumers. The return fence is a sync_file object and can be
passed to other users (such as atomic modesetting, or other drivers).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c